Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 391:399340646765
handle the case where there is no file attached
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 15 Nov 2001 10:24:27 +0000 |
| parents | 7d7cb5319fc0 |
| children | bdc2ea127ae9 |
comparison
equal
deleted
inserted
replaced
| 390:a74ea8489896 | 391:399340646765 |
|---|---|
| 70 set() method to add the message to the item's spool; in the second case we | 70 set() method to add the message to the item's spool; in the second case we |
| 71 are calling the create() method to create a new node). If an auditor raises | 71 are calling the create() method to create a new node). If an auditor raises |
| 72 an exception, the original message is bounced back to the sender with the | 72 an exception, the original message is bounced back to the sender with the |
| 73 explanatory message given in the exception. | 73 explanatory message given in the exception. |
| 74 | 74 |
| 75 $Id: mailgw.py,v 1.33 2001-11-13 21:44:44 richard Exp $ | 75 $Id: mailgw.py,v 1.34 2001-11-15 10:24:27 richard Exp $ |
| 76 ''' | 76 ''' |
| 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 traceback | 80 import traceback |
| 124 self.handle_Message(Message(fp)) | 124 self.handle_Message(Message(fp)) |
| 125 | 125 |
| 126 def handle_Message(self, message): | 126 def handle_Message(self, message): |
| 127 '''Handle an RFC822 Message | 127 '''Handle an RFC822 Message |
| 128 | 128 |
| 129 Hanle the Message object by calling handle_message() and then cope | 129 Handle the Message object by calling handle_message() and then cope |
| 130 with any errors raised by handle_message. | 130 with any errors raised by handle_message. |
| 131 This method's job is to make that call and handle any | 131 This method's job is to make that call and handle any |
| 132 errors in a sane manner. It should be replaced if you wish to | 132 errors in a sane manner. It should be replaced if you wish to |
| 133 handle errors in a different manner. | 133 handle errors in a different manner. |
| 134 ''' | 134 ''' |
| 519 l.append(section) | 519 l.append(section) |
| 520 return summary, '\n\n'.join(l) | 520 return summary, '\n\n'.join(l) |
| 521 | 521 |
| 522 # | 522 # |
| 523 # $Log: not supported by cvs2svn $ | 523 # $Log: not supported by cvs2svn $ |
| 524 # Revision 1.33 2001/11/13 21:44:44 richard | |
| 525 # . re-open the database as the author in mail handling | |
| 526 # | |
| 524 # Revision 1.32 2001/11/12 22:04:29 richard | 527 # Revision 1.32 2001/11/12 22:04:29 richard |
| 525 # oops, left debug in there | 528 # oops, left debug in there |
| 526 # | 529 # |
| 527 # Revision 1.31 2001/11/12 22:01:06 richard | 530 # Revision 1.31 2001/11/12 22:01:06 richard |
| 528 # Fixed issues with nosy reaction and author copies. | 531 # Fixed issues with nosy reaction and author copies. |
