Mercurial > p > roundup > code
changeset 310:0ec8a9f1cbe6
[SF#473125]: Paragraph in e-mails
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 21 Oct 2001 03:35:30 +0000 |
| parents | f193e0a1b9a5 |
| children | 895a1c09f4ae |
| files | CHANGES.txt roundup/mailgw.py test/test_mailsplit.py |
| diffstat | 3 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Sun Oct 21 00:53:42 2001 +0000 +++ b/CHANGES.txt Sun Oct 21 03:35:30 2001 +0000 @@ -22,6 +22,7 @@ as numbers now. . bug #473126: Sender unknown . bug #473130: Nosy list not set correctly + . bug #473125: Paragraph in e-mails 2001-10-11 - 0.3.0 pre 2 Fixed:
--- a/roundup/mailgw.py Sun Oct 21 00:53:42 2001 +0000 +++ b/roundup/mailgw.py Sun Oct 21 03:35:30 2001 +0000 @@ -72,7 +72,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.21 2001-10-21 00:53:42 richard Exp $ +$Id: mailgw.py,v 1.22 2001-10-21 03:35:13 richard Exp $ ''' @@ -414,10 +414,13 @@ if signature.match(lines[0]): break l.append(section) - return summary, '\n'.join(l) + return summary, '\n\n'.join(l) # # $Log: not supported by cvs2svn $ +# Revision 1.21 2001/10/21 00:53:42 richard +# bug #473130: Nosy list not set correctly +# # Revision 1.20 2001/10/17 23:13:19 richard # Did a fair bit of work on the admin tool. Now has an extra command "table" # which displays node information in a tabular format. Also fixed import and
--- a/test/test_mailsplit.py Sun Oct 21 00:53:42 2001 +0000 +++ b/test/test_mailsplit.py Sun Oct 21 03:35:30 2001 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_mailsplit.py,v 1.5 2001-08-07 00:24:43 richard Exp $ +# $Id: test_mailsplit.py,v 1.6 2001-10-21 03:35:13 richard Exp $ import unittest, cStringIO @@ -83,6 +83,13 @@ self.assertEqual(summary, 'testing') self.assertEqual(content, 'testing') + def testParagraphs(self): + s = '''testing\n\ntesting\n\ntesting''' + summary, content = parseContent(s) + print `summary`, `content` + self.assertEqual(summary, 'testing') + self.assertEqual(content, 'testing\n\ntesting\n\ntesting') + def testEmpty(self): s = '' summary, content = parseContent(s) @@ -95,6 +102,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.5 2001/08/07 00:24:43 richard +# stupid typo +# # Revision 1.4 2001/08/07 00:15:51 richard # Added the copyright/license notice to (nearly) all files at request of # Bizar Software.
