Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 1209:e47d9bb1455b
[SF#614188] Exception in mailgw.py
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 25 Sep 2002 05:13:34 +0000 |
| parents | b862bbf2067a |
| children | 984c498e7deb |
comparison
equal
deleted
inserted
replaced
| 1206:728a0809183e | 1209:e47d9bb1455b |
|---|---|
| 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.89 2002-09-25 02:10:24 richard Exp $ | 76 $Id: mailgw.py,v 1.90 2002-09-25 05:13:34 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 | 81 import traceback, MimeWriter |
| 898 if (lines[0] and lines[0][0] in '>|') or (len(lines) > 1 and | 898 if (lines[0] and lines[0][0] in '>|') or (len(lines) > 1 and |
| 899 lines[1] and lines[1][0] in '>|'): | 899 lines[1] and lines[1][0] in '>|'): |
| 900 # see if there's a response somewhere inside this section (ie. | 900 # see if there's a response somewhere inside this section (ie. |
| 901 # no blank line between quoted message and response) | 901 # no blank line between quoted message and response) |
| 902 for line in lines[1:]: | 902 for line in lines[1:]: |
| 903 if line[0] not in '>|': | 903 if line and line[0] not in '>|': |
| 904 break | 904 break |
| 905 else: | 905 else: |
| 906 # we keep quoted bits if specified in the config | 906 # we keep quoted bits if specified in the config |
| 907 if keep_citations: | 907 if keep_citations: |
| 908 l.append(section) | 908 l.append(section) |
