diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-04-11 18:36:40 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-04-11 18:36:40 +0900 |
commit | 4adcb27774066835546919d127c0ee341bb00208 (patch) | |
tree | 30011132a9664c343e05108de05413fefae2914b /Mailman/Queue/RetryRunner.py | |
parent | 21794803f456989ecdcafbe9cb395885ee24becb (diff) | |
parent | a942e159e5c738072efa8fa8c4d7c76cc35a7db5 (diff) | |
download | mailman2-4adcb27774066835546919d127c0ee341bb00208.tar.gz mailman2-4adcb27774066835546919d127c0ee341bb00208.tar.xz mailman2-4adcb27774066835546919d127c0ee341bb00208.zip |
merge lp:mailman/2.1 up to rev 1750
Diffstat (limited to 'Mailman/Queue/RetryRunner.py')
-rw-r--r-- | Mailman/Queue/RetryRunner.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Queue/RetryRunner.py b/Mailman/Queue/RetryRunner.py index 66244253..49aa484d 100644 --- a/Mailman/Queue/RetryRunner.py +++ b/Mailman/Queue/RetryRunner.py @@ -1,4 +1,4 @@ -# Copyright (C) 2003 by the Free Software Foundation, Inc. +# Copyright (C) 2003-2018 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -37,7 +37,10 @@ class RetryRunner(Runner): self.__outq = Switchboard(mm_cfg.OUTQUEUE_DIR) def _dispose(self, mlist, msg, msgdata): - # Move it to the out queue for another retry + # Move it to the out queue for another retry if it's time. + deliver_after = msgdata.get('deliver_after', 0) + if time.time() < deliver_after: + return True self.__outq.enqueue(msg, msgdata) return False |