summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14033cf)
raw | patch | inline | side by side (parent: 14033cf)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 6 May 2002 23:37:21 +0000 (23:37 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 6 May 2002 23:37:21 +0000 (23:37 +0000) |
Added nuking of the "-----Original Message-----" crap from Outlook.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@719 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@719 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 3246dca21ef1422e3c4c7a859c26c993835221e4..ae9b9faef1cf974506027e5e8b50a2113f9a56df 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.68 2002-05-02 07:56:34 richard Exp $
+$Id: mailgw.py,v 1.69 2002-05-06 23:37:21 richard Exp $
'''
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]*[-_]+\s*$')):
+ signature=re.compile(r'^[>|\s]*[-_]+\s*$'),
+ original_message=re.compile(r'^-----Original Message-----$')):
''' The message body is divided into sections by blank lines.
Sections where the second and all subsequent lines begin with a ">" or "|"
character are considered "quoting sections". The first line of the first
# if we don't have our summary yet use the first line of this
# section
summary = lines[0]
- elif signature.match(lines[0]):
+ elif signature.match(lines[0]) and 2 <= len(lines) <= 10:
+ # lose any signature
+ break
+ elif original_message.match(lines[0]):
+ # ditch the stupid Outlook quoting of the entire original message
break
# and add the section to the output
#
# $Log: not supported by cvs2svn $
+# Revision 1.68 2002/05/02 07:56:34 richard
+# . added option to automatically add the authors and recipients of messages
+# to the nosy lists with the options ADD_AUTHOR_TO_NOSY (default 'new') and
+# ADD_RECIPIENTS_TO_NOSY (default 'new'). These settings emulate the current
+# behaviour. Setting them to 'yes' will add the author/recipients to the nosy
+# on messages that create issues and followup messages.
+# . added missing documentation for a few of the config option values
+#
# Revision 1.67 2002/04/23 15:46:49 rochecompaan
# . stripping of the email message body can now be controlled through
# the config variables EMAIL_KEEP_QUOTED_TEST and