summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7dc0c80)
raw | patch | inline | side by side (parent: 7dc0c80)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 25 Oct 2003 12:03:41 +0000 (12:03 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 25 Oct 2003 12:03:41 +0000 (12:03 +0000) |
signature, it upsets the tests.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1939 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1939 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index c4a6780d44b3e589bac5351b6154aeb0a5abf42e..544ef29b16bc329f49ec8cd3ed0e16dc26ecc339 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
an exception, the original message is bounced back to the sender with the
explanatory message given in the exception.
-$Id: mailgw.py,v 1.134 2003-10-24 14:59:38 jlgijsbers Exp $
+$Id: mailgw.py,v 1.135 2003-10-25 12:03:41 jlgijsbers Exp $
"""
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
def parseContent(content, keep_citations, keep_body,
blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
eol=re.compile(r'[\r\n]+'),
- signature=re.compile(r'^[>|\s]*-- $'),
+ signature=re.compile(r'^[>|\s]*-- ?$'),
original_msg=re.compile(r'^[>|\s]*-----\s?Original Message\s?-----$')):
''' The message body is divided into sections by blank lines.
Sections where the second and all subsequent lines begin with a ">"