_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.5.4'
+__version__ = '0.5.5'
# =============================================================================
start=entry['timestamp'],
postfix_id=entry['postfix_id'],
smtpd_pid=pid,
- mailhost=entry['host'],
+ host=entry['host'],
)
self.active_smtpd_pid[pid] = chain
smtpd_pid=pid,
pickup_from=m['from'],
pickup_uid=m['uid'],
- mailhost=host,
+ host=host,
)
self.chain[postfix_id] = chain
_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.8.1'
+__version__ = '0.8.2'
LOG = logging.getLogger(__name__)
attributes = (
'client_host', 'client_addr', 'start', 'end', 'message_id', 'postfix_id', 'ehlo',
'starttls', 'sent_quit', 'auth', 'commands', 'rcpt', 'data', 'mail', 'from_address',
- 'smtpd_pid', 'mailhost', 'tls_version', 'tls_cipher', 'size', 'nr_rcpt', 'finished',
+ 'smtpd_pid', 'host', 'tls_version', 'tls_cipher', 'size', 'nr_rcpt', 'finished',
'dkim_selector', 'dkim_domain', 'pickup_uid', 'pickup_from',
)
# -----------------------------------------------------------
@property
- def mailhost(self):
- """Return the name of the mailhost, from where this logchain is originating."""
- return self._mailhost
+ def host(self):
+ """Return the name of the host, from where this logchain is originating."""
+ return self._host
- @mailhost.setter
- def mailhost(self, value):
+ @host.setter
+ def host(self, value):
if value is None:
- self._mailhost = None
+ self._host = None
return
val = str(value).strip()
if val == '':
- self._mailhost = None
+ self._host = None
return
- self._mailhost = val
+ self._host = val
# -----------------------------------------------------------
@property