From 911218f006fd86dd78db26b8d4e251be6cf5cfdb Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 22 May 2002 01:24:51 +0000 Subject: [PATCH] Added note to MIGRATION about new config vars. Also made us more resilient for upgraders. Reinstated list header style (oops) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@747 57a73879-2fb5-44c3-a270-3262357dd7e2 --- MIGRATION.txt | 6 ++++++ roundup/mailgw.py | 15 +++++++++++---- roundup/templates/classic/html/style.css | 6 ++++++ roundup/templates/extended/html/style.css | 6 ++++++ 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/MIGRATION.txt b/MIGRATION.txt index 27bd93e..7730c36 100644 --- a/MIGRATION.txt +++ b/MIGRATION.txt @@ -31,6 +31,12 @@ allowing replacement of 'assignedto' with the user's userid. Users must change the None value of 'assignedto' to 'CURRENT USER' (the string, in quotes) for the replacement behaviour to occur now. +The new configuration variables are: + +- EMAIL_KEEP_QUOTED_TEXT +- EMAIL_LEAVE_BODY_UNCHANGED +- ADD_RECIPIENTS_TO_NOSY + Migrating from 0.4.0 to 0.4.1 ============================= diff --git a/roundup/mailgw.py b/roundup/mailgw.py index a4664e1..a114a58 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.71 2002-05-08 02:40:55 richard Exp $ +$Id: mailgw.py,v 1.72 2002-05-22 01:24:51 richard Exp $ ''' @@ -604,8 +604,13 @@ not find a text/plain part to use. else: content = self.get_part_data_decoded(message) - keep_citations = self.instance.EMAIL_KEEP_QUOTED_TEXT == 'yes' - keep_body = self.instance.EMAIL_LEAVE_BODY_UNCHANGED == 'yes' + # figure how much we should muck around with the email body + keep_citations = getattr(self.instance, 'EMAIL_KEEP_QUOTED_TEXT', + 'no') == 'yes' + keep_body = getattr(self.instance, 'EMAIL_LEAVE_BODY_UNCHANGED', + 'no') == 'yes' + + # parse the body of the message, stripping out bits as appropriate summary, content = parseContent(content, keep_citations, keep_body) @@ -823,7 +828,6 @@ def parseContent(content, keep_citations, keep_body, # ditch the stupid Outlook quoting of the entire original message break - # and add the section to the output l.append(section) # we only set content for those who want to delete cruft from the @@ -834,6 +838,9 @@ def parseContent(content, keep_citations, keep_body, # # $Log: not supported by cvs2svn $ +# Revision 1.71 2002/05/08 02:40:55 richard +# grr +# # Revision 1.70 2002/05/06 23:40:07 richard # hrm # diff --git a/roundup/templates/classic/html/style.css b/roundup/templates/classic/html/style.css index b496cab..c4bf768 100644 --- a/roundup/templates/classic/html/style.css +++ b/roundup/templates/classic/html/style.css @@ -59,6 +59,12 @@ th { color: #ffffff; } +.list-header { + background-color: #aaccff; + color: #000000; + border: none; +} + .row-normal { background-color: #ffffff; border: none; diff --git a/roundup/templates/extended/html/style.css b/roundup/templates/extended/html/style.css index 95e8bd4..dbaaf4a 100644 --- a/roundup/templates/extended/html/style.css +++ b/roundup/templates/extended/html/style.css @@ -37,6 +37,12 @@ th { color: #ffffff; } +.list-header { + background-color: #aaccff; + color: #000000; + border: none; +} + .row-normal { background-color: #ffffff; border: none; -- 2.30.2