summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4478232)
raw | patch | inline | side by side (parent: 4478232)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 28 Oct 2001 23:22:28 +0000 (23:22 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 28 Oct 2001 23:22:28 +0000 (23:22 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@345 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
MIGRATION.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history | |
test/test_mailsplit.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 7036c9fa8fbb68c757f05c0c538c6bdd096a0d42..05af3c8b32cccf788da950c402ed3672127db1bc 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. roundup-server now works on Windows, thanks Juergen Hermann.
. Fixed install documentation, also thanks Juergen Hermann.
. Fixed some URL issues in roundup.cgi, again thanks Juergen Hermann.
+ . bug #474749 ] indentations lost
2001-10-23 - 0.3.0 pre 3
Feature:
. bug #473126: Sender unknown
. bug #473130: Nosy list not set correctly
+
2001-10-11 - 0.3.0 pre 2
Fixed:
. Hyperdatabase was inserting empty strings instead of None for missing
diff --git a/MIGRATION.txt b/MIGRATION.txt
index 251633dd86df4d94746bf6b6e73af6a0bec0218b..15610ca48979fa196b11be1f1a3b7f93310afdeb 100644 (file)
--- a/MIGRATION.txt
+++ b/MIGRATION.txt
roundup-admin -i <instance home> set user1 password=<new password>
+
+Configuration
+-------------
+FILTER_POSITION, ANONYMOUS_ACCESS, ANONYMOUS_REGISTER have been added to
+the instance_config.py. Simplest solution is to copy the default values from
+template in the core source.
+
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index dee933015f6cc092701cfb782d18da35a5cc8c99..76e2638381109fa105b2528b7064566aaa5eb844 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.24 2001-10-23 22:57:52 richard Exp $
+$Id: mailgw.py,v 1.25 2001-10-28 23:22:28 richard Exp $
'''
character are considered "quoting sections". The first line of the first
non-quoting section becomes the summary of the message.
'''
- sections = blank_line.split(content)
+ # strip off leading carriage-returns / newlines
+ i = 0
+ for i in range(len(content)):
+ if content[i] not in '\r\n':
+ break
+ if i > 0:
+ sections = blank_line.split(content[i:])
+ else:
+ sections = blank_line.split(content)
+
# extract out the summary from the message
summary = ''
l = []
for section in sections:
- section = section.strip()
+ #section = section.strip()
if not section:
continue
lines = eol.split(section)
#
# $Log: not supported by cvs2svn $
+# Revision 1.24 2001/10/23 22:57:52 richard
+# Fix unread->chatting auto transition, thanks Roch'e
+#
# Revision 1.23 2001/10/21 04:00:20 richard
# MailGW now moves 'unread' to 'chatting' on receiving e-mail for an issue.
#
diff --git a/test/test_mailsplit.py b/test/test_mailsplit.py
index daec011255860c8c7ecf412f0a849dcf4c32c9a4..3dad533fae5d7a7ad037c001c459fe902e9935f6 100644 (file)
--- a/test/test_mailsplit.py
+++ b/test/test_mailsplit.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_mailsplit.py,v 1.7 2001-10-23 00:57:32 richard Exp $
+# $Id: test_mailsplit.py,v 1.8 2001-10-28 23:22:28 richard Exp $
import unittest, cStringIO
self.assertEqual(summary, '')
self.assertEqual(content, '')
+ def testIndentationSummary(self):
+ s = ' Four space indent.\n\n Four space indent.\nNo indent.'
+ summary, content = parseContent(s)
+ self.assertEqual(summary, ' Four space indent.')
+
+ def testIndentationContent(self):
+ s = ' Four space indent.\n\n Four space indent.\nNo indent.'
+ summary, content = parseContent(s)
+ self.assertEqual(content, s)
+
def suite():
return unittest.makeSuite(MailsplitTestCase, 'test')
#
# $Log: not supported by cvs2svn $
+# Revision 1.7 2001/10/23 00:57:32 richard
+# Removed debug print from mailsplit test.
+#
# Revision 1.6 2001/10/21 03:35:13 richard
# bug #473125: Paragraph in e-mails
#