comparison roundup/configuration.py @ 4424:f1affb6b7a08

Mail gateway fixes and improvements. - new mailgw config item unpack_rfc822 that unpacks message attachments of type message/rfc822 and attaches the individual parts instead of attaching the whole message/rfc822 attachment to the roundup issue. - Fix handling of incoming message/rfc822 attachments. These resulted in a weird mail usage error because the email module threw a TypeError which roundup interprets as a Reject exception. Fixes issue2550667. Added regression tests for message/rfc822 attachments with and without configured unpacking (mailgw unpack_rfc822, see Features above) Thanks to Benni Bärmann for reporting.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Tue, 05 Oct 2010 14:24:25 +0000
parents 3e35233ea93c
children 4f353d71d716
comparison
equal deleted inserted replaced
4423:579802067547 4424:f1affb6b7a08
746 "in the message body."), 746 "in the message body."),
747 (RegExpOption, "eol_re", r"[\r\n]+", 747 (RegExpOption, "eol_re", r"[\r\n]+",
748 "Regular expression matching end of line."), 748 "Regular expression matching end of line."),
749 (RegExpOption, "blankline_re", r"[\r\n]+\s*[\r\n]+", 749 (RegExpOption, "blankline_re", r"[\r\n]+\s*[\r\n]+",
750 "Regular expression matching a blank line."), 750 "Regular expression matching a blank line."),
751 (BooleanOption, "unpack_rfc822", "no",
752 "Unpack attached messages (encoded as message/rfc822 in MIME)\n"
753 "as multiple parts attached as files to the issue, if not\n"
754 "set we handle message/rfc822 attachments as a single file."),
751 (BooleanOption, "ignore_alternatives", "no", 755 (BooleanOption, "ignore_alternatives", "no",
752 "When parsing incoming mails, roundup uses the first\n" 756 "When parsing incoming mails, roundup uses the first\n"
753 "text/plain part it finds. If this part is inside a\n" 757 "text/plain part it finds. If this part is inside a\n"
754 "multipart/alternative, and this option is set, all other\n" 758 "multipart/alternative, and this option is set, all other\n"
755 "parts of the multipart/alternative are ignored. The default\n" 759 "parts of the multipart/alternative are ignored. The default\n"

Roundup Issue Tracker: http://roundup-tracker.org/