Operating System: CentOS Linux 7 (Core)
Kernel: Linux 3.10.0-1127.13.1.el7.x86_64
Architecture: x86-64
When parameter attach_message_primary = True in inputs.conf the following error is thrown:
Traceback (most recent call last):
File "/opt/splunk/etc/apps/TA-mailclient/bin/mail.py", line 381, in stream_events
self._stream_events(inputs, ew)
File "/opt/splunk/etc/apps/TA-mailclient/bin/mail.py", line 438, in _stream_events
self.stream_imap_emails()
File "/opt/splunk/etc/apps/TA-mailclient/bin/mail.py", line 289, in stream_imap_emails
self.attach_message_primary,
File "/opt/splunk/etc/apps/TA-mailclient/bin/../lib/file_parser/email_mime.py", line 45, in parse_email
mailheaders = Parser().parsestr(message.as_string(), True)
AttributeError: 'NoneType' object has no attribute 'as_string'
OS details
When parameter
attach_message_primary = True
ininputs.conf
the following error is thrown: