Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 1711:3c3e44aacdb4
Documentation fixes.
doc/customizing.txt, doc/design.txt
Documented 'db.curuserid'.
doc/design.txt
Reflowed to 72 columns (even the layer cake fits :)
roundup/mailgw.py
Strip '\n' introduced by rfc822.readheaders
| author | Jean Jordaan <neaj@users.sourceforge.net> |
|---|---|
| date | Tue, 24 Jun 2003 12:39:20 +0000 |
| parents | d4e615fcbe04 |
| children | f686c73fc5d1 |
comparison
equal
deleted
inserted
replaced
| 1708:9595eee0c116 | 1711:3c3e44aacdb4 |
|---|---|
| 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.124 2003-06-23 08:37:15 neaj Exp $ | 76 $Id: mailgw.py,v 1.125 2003-06-24 12:39:20 neaj 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 |
| 184 s.seek(0) | 184 s.seek(0) |
| 185 return Message(s) | 185 return Message(s) |
| 186 | 186 |
| 187 def getheader(self, name, default=None): | 187 def getheader(self, name, default=None): |
| 188 hdr = mimetools.Message.getheader(self, name, default) | 188 hdr = mimetools.Message.getheader(self, name, default) |
| 189 hdr = hdr.replace('\n','') # Inserted by rfc822.readheaders | |
| 189 return rfc2822.decode_header(hdr) | 190 return rfc2822.decode_header(hdr) |
| 190 | 191 |
| 191 class MailGW: | 192 class MailGW: |
| 192 | 193 |
| 193 # Matches subjects like: | 194 # Matches subjects like: |
