I noticed that after adding the subject line to the postfix maillog output, it was not being picked up by the parser. I followed the instructions in the wiki to enable it.
The parser regex code is expecting a space after Subject: but this is not included in the postfix logging output, after removing the space from the regex, it matches and returns the subject line.
https://github.com/drlight17/mta-log-parser/blob/0103f2cf145055374792ca5196dced83052104be/mlp/parser.py#L29C1-L29C64
Fix: postf_subject = re.compile(r'.*header\sSubject:(.*)\sfrom\s')
I noticed that after adding the subject line to the postfix maillog output, it was not being picked up by the parser. I followed the instructions in the wiki to enable it.
The parser regex code is expecting a space after Subject: but this is not included in the postfix logging output, after removing the space from the regex, it matches and returns the subject line.
https://github.com/drlight17/mta-log-parser/blob/0103f2cf145055374792ca5196dced83052104be/mlp/parser.py#L29C1-L29C64
Fix:
postf_subject = re.compile(r'.*header\sSubject:(.*)\sfrom\s')