diff options
author | Jim Popovitch <jimpop@gmail.com> | 2013-11-17 01:56:29 +0000 |
---|---|---|
committer | Jim Popovitch <jimpop@gmail.com> | 2013-11-17 01:56:29 +0000 |
commit | 06d15b0a9949652f696d19903cef2a235ff3a428 (patch) | |
tree | 55a9c12de799cc056da986aafe3b8e66d0cbf94b /Mailman/Handlers/ToDigest.py | |
parent | bc05ad4e81bd2ce9ec0f36e5112eadf607a49195 (diff) | |
parent | ded18dda2b2f9ba00f8780b4eba6c398c5bff838 (diff) | |
download | mailman2-06d15b0a9949652f696d19903cef2a235ff3a428.tar.gz mailman2-06d15b0a9949652f696d19903cef2a235ff3a428.tar.xz mailman2-06d15b0a9949652f696d19903cef2a235ff3a428.zip |
Upstream changes
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
-rw-r--r-- | Mailman/Handlers/ToDigest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index edbf40dc..2027a46c 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2013 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 @@ -86,7 +86,8 @@ def process(mlist, msg, msgdata): # whether the size threshold has been reached. mboxfp.flush() size = os.path.getsize(mboxfile) - if size / 1024.0 >= mlist.digest_size_threshhold: + if (mlist.digest_size_threshhold > 0 and + size / 1024.0 >= mlist.digest_size_threshhold): # This is a bit of a kludge to get the mbox file moved to the digest # queue directory. try: |