Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 1960:ca2dca3db172
fixed mailgw handling of subject-line errors
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 19 Dec 2003 01:50:19 +0000 |
| parents | 7e4058dfb29b |
| children | 30a444b7b212 |
comparison
equal
deleted
inserted
replaced
| 1959:f4b7d4a3e057 | 1960:ca2dca3db172 |
|---|---|
| 71 set() method to add the message to the item's spool; in the second case we | 71 set() method to add the message to the item's spool; in the second case we |
| 72 are calling the create() method to create a new node). If an auditor raises | 72 are calling the create() method to create a new node). If an auditor raises |
| 73 an exception, the original message is bounced back to the sender with the | 73 an exception, the original message is bounced back to the sender with the |
| 74 explanatory message given in the exception. | 74 explanatory message given in the exception. |
| 75 | 75 |
| 76 $Id: mailgw.py,v 1.139 2003-12-04 23:34:25 richard Exp $ | 76 $Id: mailgw.py,v 1.140 2003-12-19 01:50:19 richard Exp $ |
| 77 """ | 77 """ |
| 78 | 78 |
| 79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri | 79 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri |
| 80 import time, random, sys | 80 import time, random, sys |
| 81 import traceback, MimeWriter, rfc822 | 81 import traceback, MimeWriter, rfc822 |
| 659 args = m.group('args') | 659 args = m.group('args') |
| 660 if args: | 660 if args: |
| 661 errors, props = setPropArrayFromString(self, cl, args, nodeid) | 661 errors, props = setPropArrayFromString(self, cl, args, nodeid) |
| 662 # handle any errors parsing the argument list | 662 # handle any errors parsing the argument list |
| 663 if errors: | 663 if errors: |
| 664 errors = '\n- '.join(errors) | 664 errors = '\n- '.join(map(str, errors)) |
| 665 raise MailUsageError, ''' | 665 raise MailUsageError, ''' |
| 666 There were problems handling your subject line argument list: | 666 There were problems handling your subject line argument list: |
| 667 - %s | 667 - %s |
| 668 | 668 |
| 669 Subject was: "%s" | 669 Subject was: "%s" |
