diff options
| -rw-r--r-- | contrib/auto | 6 | ||||
| -rw-r--r-- | scripts/auto | 6 | ||||
| -rwxr-xr-x | scripts/post | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/contrib/auto b/contrib/auto index cb0c8d461..602547c21 100644 --- a/contrib/auto +++ b/contrib/auto @@ -27,6 +27,7 @@ import sys import os +import time import paths from Mailman import mm_cfg @@ -101,7 +102,10 @@ def main(): return EX_NOUSER inq = get_switchboard(mm_cfg.INQUEUE_DIR) - inq.enqueue(sys.stdin.read(), listname=listname, **{subdest: 1}) + inq.enqueue(sys.stdin.read(), + listname=listname, + received_time=time.time(), + **{subdest: 1}) return 0 diff --git a/scripts/auto b/scripts/auto index cb0c8d461..602547c21 100644 --- a/scripts/auto +++ b/scripts/auto @@ -27,6 +27,7 @@ import sys import os +import time import paths from Mailman import mm_cfg @@ -101,7 +102,10 @@ def main(): return EX_NOUSER inq = get_switchboard(mm_cfg.INQUEUE_DIR) - inq.enqueue(sys.stdin.read(), listname=listname, **{subdest: 1}) + inq.enqueue(sys.stdin.read(), + listname=listname, + received_time=time.time(), + **{subdest: 1}) return 0 diff --git a/scripts/post b/scripts/post index fb0ae4c78..89678a9be 100755 --- a/scripts/post +++ b/scripts/post @@ -27,6 +27,7 @@ Stdin is the mail message, and argv[1] is the name of the target mailing list. """ import sys +import time import paths from Mailman import mm_cfg @@ -59,7 +60,10 @@ def main(): # is a good example; if the limit is hit, the proc is SIGKILL'd giving us # no chance to save the message. inq = get_switchboard(mm_cfg.INQUEUE_DIR) - inq.enqueue(sys.stdin.read(), listname=listname, tolist=1) + inq.enqueue(sys.stdin.read(), + listname=listname, + tolist=1, + received_time=time.time()) |
