diff options
| author | bwarsaw | 2005-12-30 18:56:46 +0000 |
|---|---|---|
| committer | bwarsaw | 2005-12-30 18:56:46 +0000 |
| commit | 991f57220ddfdc34c9bab88f6241ecc486abdbcc (patch) | |
| tree | 4a913b66e7e9e5d7b5a77f57d56236330a164019 /Mailman/MailList.py | |
| parent | 0589a8a58e94ec29644c9d665055b4a1be9953b5 (diff) | |
| download | mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.tar.gz mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.tar.zst mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.zip | |
Diffstat (limited to 'Mailman/MailList.py')
| -rw-r--r-- | Mailman/MailList.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index cf07c842d..a8484e413 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -12,7 +12,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """The class representing a Mailman mailing list. @@ -1469,13 +1470,13 @@ bad regexp in bounce_matching_header line: %s """Returns matched entry in ban_list if email matches. Otherwise returns None. """ - ban = 0 + ban = False for pattern in self.ban_list: if pattern.startswith('^'): # This is a regular expression match try: if re.search(pattern, email, re.IGNORECASE): - ban = 1 + ban = True break except re.error: # BAW: we should probably remove this pattern @@ -1483,7 +1484,7 @@ bad regexp in bounce_matching_header line: %s else: # Do the comparison case insensitively if pattern.lower() == email.lower(): - ban = 1 + ban = True break if ban: return pattern |
