Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 3188:7faae85e1e33
merge from branch
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 15 Feb 2005 23:45:30 +0000 |
| parents | cfe7d8cb9794 |
| children | 3124e578db02 |
comparison
equal
deleted
inserted
replaced
| 3186:30f08255e4c0 | 3188:7faae85e1e33 |
|---|---|
| 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.162 2005-02-14 05:54:41 richard Exp $ | 75 $Id: mailgw.py,v 1.163 2005-02-15 23:45:28 richard Exp $ |
| 76 """ | 76 """ |
| 77 __docformat__ = 'restructuredtext' | 77 __docformat__ = 'restructuredtext' |
| 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, logging | 80 import time, random, sys, logging |
| 317 for option, value in self.arguments: | 317 for option, value in self.arguments: |
| 318 if option == '-c': | 318 if option == '-c': |
| 319 self.default_class = value.strip() | 319 self.default_class = value.strip() |
| 320 | 320 |
| 321 self.mailer = Mailer(instance.config) | 321 self.mailer = Mailer(instance.config) |
| 322 self.logger = getLogger('mailgw') | 322 self.logger = logging.getLogger('mailgw') |
| 323 | 323 |
| 324 # should we trap exceptions (normal usage) or pass them through | 324 # should we trap exceptions (normal usage) or pass them through |
| 325 # (for testing) | 325 # (for testing) |
| 326 self.trapExceptions = 1 | 326 self.trapExceptions = 1 |
| 327 | 327 |
