mirror of
https://github.com/chatmail/relay.git
synced 2026-06-14 07:31:08 +00:00
feat: Extend IMAP METADATA to have a unixtimestamp key
This commit is contained in:
@@ -125,6 +125,8 @@ class MetadataDictProxy(DictProxy):
|
|||||||
case "maxsmtprecipients":
|
case "maxsmtprecipients":
|
||||||
# postfix default (see "postconf smtpd_recipient_limit")
|
# postfix default (see "postconf smtpd_recipient_limit")
|
||||||
return "O1000\n"
|
return "O1000\n"
|
||||||
|
case "unixtimestamp":
|
||||||
|
return f"O{int(time.time())}\n"
|
||||||
|
|
||||||
logging.warning(f"lookup ignored: {parts!r}")
|
logging.warning(f"lookup ignored: {parts!r}")
|
||||||
return "N\n"
|
return "N\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user