diff options
| author | bwarsaw | 2001-05-01 06:08:30 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-05-01 06:08:30 +0000 |
| commit | 3272afe4571cc0c3c8cf01eafba0d0bd238983a2 (patch) | |
| tree | 561ee2e09e1c4f0ec995bf55c22d61ae78cc47f6 /scripts/post | |
| parent | b400fab9c9a028dd67f082b4b1bfdab18b620955 (diff) | |
| download | mailman-3272afe4571cc0c3c8cf01eafba0d0bd238983a2.tar.gz mailman-3272afe4571cc0c3c8cf01eafba0d0bd238983a2.tar.zst mailman-3272afe4571cc0c3c8cf01eafba0d0bd238983a2.zip | |
main(): Set the message metadata `received_time' to the current time.
Note that ToArchive.py will set this if it isn't present in the
metadata already, however that might incur hold and other delays.
Diffstat (limited to 'scripts/post')
| -rwxr-xr-x | scripts/post | 6 |
1 files changed, 5 insertions, 1 deletions
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()) |
