Skip to content

Commit 14904e1

Browse files
author
Richard Jones
committed
Added note to MIGRATION about new config vars.
Also made us more resilient for upgraders. Reinstated list header style (oops)
1 parent bfdc43d commit 14904e1

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

MIGRATION.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ allowing replacement of 'assignedto' with the user's userid. Users must change
3131
the None value of 'assignedto' to 'CURRENT USER' (the string, in quotes) for
3232
the replacement behaviour to occur now.
3333

34+
The new configuration variables are:
35+
36+
- EMAIL_KEEP_QUOTED_TEXT
37+
- EMAIL_LEAVE_BODY_UNCHANGED
38+
- ADD_RECIPIENTS_TO_NOSY
39+
3440

3541
Migrating from 0.4.0 to 0.4.1
3642
=============================

roundup/mailgw.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.71 2002-05-08 02:40:55 richard Exp $
76+
$Id: mailgw.py,v 1.72 2002-05-22 01:24:51 richard Exp $
7777
'''
7878

7979

@@ -604,8 +604,13 @@ def handle_message(self, message):
604604
else:
605605
content = self.get_part_data_decoded(message)
606606

607-
keep_citations = self.instance.EMAIL_KEEP_QUOTED_TEXT == 'yes'
608-
keep_body = self.instance.EMAIL_LEAVE_BODY_UNCHANGED == 'yes'
607+
# figure how much we should muck around with the email body
608+
keep_citations = getattr(self.instance, 'EMAIL_KEEP_QUOTED_TEXT',
609+
'no') == 'yes'
610+
keep_body = getattr(self.instance, 'EMAIL_LEAVE_BODY_UNCHANGED',
611+
'no') == 'yes'
612+
613+
# parse the body of the message, stripping out bits as appropriate
609614
summary, content = parseContent(content, keep_citations,
610615
keep_body)
611616

@@ -823,7 +828,6 @@ def parseContent(content, keep_citations, keep_body,
823828
# ditch the stupid Outlook quoting of the entire original message
824829
break
825830

826-
827831
# and add the section to the output
828832
l.append(section)
829833
# we only set content for those who want to delete cruft from the
@@ -834,6 +838,9 @@ def parseContent(content, keep_citations, keep_body,
834838

835839
#
836840
# $Log: not supported by cvs2svn $
841+
# Revision 1.71 2002/05/08 02:40:55 richard
842+
# grr
843+
#
837844
# Revision 1.70 2002/05/06 23:40:07 richard
838845
# hrm
839846
#

roundup/templates/classic/html/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ th {
5959
color: #ffffff;
6060
}
6161

62+
.list-header {
63+
background-color: #aaccff;
64+
color: #000000;
65+
border: none;
66+
}
67+
6268
.row-normal {
6369
background-color: #ffffff;
6470
border: none;

roundup/templates/extended/html/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ th {
3737
color: #ffffff;
3838
}
3939

40+
.list-header {
41+
background-color: #aaccff;
42+
color: #000000;
43+
border: none;
44+
}
45+
4046
.row-normal {
4147
background-color: #ffffff;
4248
border: none;

0 commit comments

Comments
 (0)