Skip to content

Subject not parsed from postfix log. #25

Description

@johnvk-dev

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.

Image

https://github.com/drlight17/mta-log-parser/blob/0103f2cf145055374792ca5196dced83052104be/mlp/parser.py#L29C1-L29C64

Fix: postf_subject = re.compile(r'.*header\sSubject:(.*)\sfrom\s')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions