_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.5.3'
+__version__ = '0.5.4'
# =============================================================================
# -------------------------------------------------------------------------
def eval_postfix_entry(
- self, postfix_id, timestamp=None, host=None, command=None, pid=None,
- message=None, smtpd_done=False):
+ self, postfix_id, timestamp=None, host=None, command=None,
+ pid=None, message=None, smtpd_done=False):
"""Evaluate a log line with a given Postfix-Id."""
# Eval Postfix entry from smtpd ...
if command == 'postfix/smtpd' and pid:
return
if command == 'postfix/pickup':
- if self._eval_pickup(postfix_id, message, timestamp, pid):
+ if self._eval_pickup(host, postfix_id, message, timestamp, pid):
return
if command == 'opendkim':
return True
# -------------------------------------------------------------------------
- def _eval_pickup(self, postfix_id, message, timestamp, pid):
+ def _eval_pickup(self, host, postfix_id, message, timestamp, pid):
m = self.re_pickup.search(message)
if not m:
smtpd_pid=pid,
pickup_from=m['from'],
pickup_uid=m['uid'],
+ mailhost=host,
)
self.chain[postfix_id] = chain