summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b05bf66)
raw | patch | inline | side by side (parent: b05bf66)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 11 Jan 2002 22:59:01 +0000 (22:59 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 11 Jan 2002 22:59:01 +0000 (22:59 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@533 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index adc5a0aec27ff60da12e77f523aa20d8371b8ace..02a98e9f3d196f4b1eccceff9f83484398d4654b 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
This file contains the changes to the Roundup system over time. The entries
are given with the most recent entry first.
-2002-01-11 - 0.4.0b2
+2002-01-?? - 0.4.0b2
Fixed:
. #495392 ] empty nosy -patch
. #500574 ] messageid must have format <part1@part2>
text
. missed a "from i18n import _" in date.py
. #501690 ] MIGRATION.txt incomplete
+ . #502342 ] pipe interface
2002-01-08 - 0.4.0b1
Feature:
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 186b0690c5690ad2a5b279332fe7c7206b09f5b2..ec6e1761a5a32bda8335257f823627cfa41f9613 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.49 2002-01-10 06:19:18 richard Exp $
+$Id: mailgw.py,v 1.50 2002-01-11 22:59:01 richard Exp $
'''
w.addheader(header_name, message.getheader(header_name))
# now attach the message body
body = w.startbody(content_type)
- message.rewindbody()
- body.write(message.fp.read())
+ try:
+ message.rewindbody()
+ except IOError:
+ body.write("*** couldn't include message body: read from pipe ***")
+ else:
+ body.write(message.fp.read())
# attach the original message to the returned message
part = writer.nextpart()
#
# $Log: not supported by cvs2svn $
+# Revision 1.49 2002/01/10 06:19:18 richard
+# followup lines directly after a quoted section were being eaten.
+#
# Revision 1.48 2002/01/08 04:12:05 richard
# Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822
#