Skip to content

Commit 6df6bcf

Browse files
author
Richard Jones
committed
[SF#473125]: Paragraph in e-mails
1 parent e7f83c1 commit 6df6bcf

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Fixed:
2222
as numbers now.
2323
. bug #473126: Sender unknown
2424
. bug #473130: Nosy list not set correctly
25+
. bug #473125: Paragraph in e-mails
2526

2627
2001-10-11 - 0.3.0 pre 2
2728
Fixed:

roundup/mailgw.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272
an exception, the original message is bounced back to the sender with the
7373
explanatory message given in the exception.
7474
75-
$Id: mailgw.py,v 1.21 2001-10-21 00:53:42 richard Exp $
75+
$Id: mailgw.py,v 1.22 2001-10-21 03:35:13 richard Exp $
7676
'''
7777

7878

@@ -414,10 +414,13 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
414414
if signature.match(lines[0]):
415415
break
416416
l.append(section)
417-
return summary, '\n'.join(l)
417+
return summary, '\n\n'.join(l)
418418

419419
#
420420
# $Log: not supported by cvs2svn $
421+
# Revision 1.21 2001/10/21 00:53:42 richard
422+
# bug #473130: Nosy list not set correctly
423+
#
421424
# Revision 1.20 2001/10/17 23:13:19 richard
422425
# Did a fair bit of work on the admin tool. Now has an extra command "table"
423426
# which displays node information in a tabular format. Also fixed import and

test/test_mailsplit.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: test_mailsplit.py,v 1.5 2001-08-07 00:24:43 richard Exp $
18+
# $Id: test_mailsplit.py,v 1.6 2001-10-21 03:35:13 richard Exp $
1919

2020
import unittest, cStringIO
2121

@@ -83,6 +83,13 @@ def testSimple(self):
8383
self.assertEqual(summary, 'testing')
8484
self.assertEqual(content, 'testing')
8585

86+
def testParagraphs(self):
87+
s = '''testing\n\ntesting\n\ntesting'''
88+
summary, content = parseContent(s)
89+
print `summary`, `content`
90+
self.assertEqual(summary, 'testing')
91+
self.assertEqual(content, 'testing\n\ntesting\n\ntesting')
92+
8693
def testEmpty(self):
8794
s = ''
8895
summary, content = parseContent(s)
@@ -95,6 +102,9 @@ def suite():
95102

96103
#
97104
# $Log: not supported by cvs2svn $
105+
# Revision 1.5 2001/08/07 00:24:43 richard
106+
# stupid typo
107+
#
98108
# Revision 1.4 2001/08/07 00:15:51 richard
99109
# Added the copyright/license notice to (nearly) all files at request of
100110
# Bizar Software.

0 commit comments

Comments
 (0)