~futatuki/mailman/2.1-listinfo-overview-client-lang

« back to all changes in this revision

Viewing changes to Mailman/Queue/RetryRunner.py

  • Committer: Yasuhito FUTATSUKI at POEM
  • Date: 2018-06-21 07:40:59 UTC
  • mfrom: (1654.3.103 2.1)
  • Revision ID: futatuki@poem.co.jp-20180621074059-qq53235k6748x5yr
merge lp:mailman/2.1 up to rev 1781

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2003 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 2003-2018 by the Free Software Foundation, Inc.
2
2
#
3
3
# This program is free software; you can redistribute it and/or
4
4
# modify it under the terms of the GNU General Public License
37
37
        self.__outq = Switchboard(mm_cfg.OUTQUEUE_DIR)
38
38
 
39
39
    def _dispose(self, mlist, msg, msgdata):
40
 
        # Move it to the out queue for another retry
 
40
        # Move it to the out queue for another retry if it's time.
 
41
        deliver_after = msgdata.get('deliver_after', 0)
 
42
        if time.time() < deliver_after:
 
43
            return True
41
44
        self.__outq.enqueue(msg, msgdata)
42
45
        return False
43
46