Mercurial > p > roundup > code
comparison roundup/mailgw.py @ 202:d702ac2ceedb
removed some print statements
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 05 Aug 2001 07:06:25 +0000 |
| parents | eda506860b32 |
| children | d45384bc6420 |
comparison
equal
deleted
inserted
replaced
| 201:609a9d82218f | 202:d702ac2ceedb |
|---|---|
| 53 set() method to add the message to the item's spool; in the second case we | 53 set() method to add the message to the item's spool; in the second case we |
| 54 are calling the create() method to create a new node). If an auditor raises | 54 are calling the create() method to create a new node). If an auditor raises |
| 55 an exception, the original message is bounced back to the sender with the | 55 an exception, the original message is bounced back to the sender with the |
| 56 explanatory message given in the exception. | 56 explanatory message given in the exception. |
| 57 | 57 |
| 58 $Id: mailgw.py,v 1.7 2001-08-03 07:18:22 richard Exp $ | 58 $Id: mailgw.py,v 1.8 2001-08-05 07:06:07 richard Exp $ |
| 59 ''' | 59 ''' |
| 60 | 60 |
| 61 | 61 |
| 62 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri | 62 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri |
| 63 import traceback | 63 import traceback |
| 295 ''' | 295 ''' |
| 296 sections = blank_line.split(content) | 296 sections = blank_line.split(content) |
| 297 # extract out the summary from the message | 297 # extract out the summary from the message |
| 298 summary = '' | 298 summary = '' |
| 299 l = [] | 299 l = [] |
| 300 print sections | |
| 301 for section in sections: | 300 for section in sections: |
| 302 section = section.strip() | 301 section = section.strip() |
| 303 if not section: | 302 if not section: |
| 304 continue | 303 continue |
| 305 lines = eol.split(section) | 304 lines = eol.split(section) |
| 316 l.append(section) | 315 l.append(section) |
| 317 return summary, '\n'.join(l) | 316 return summary, '\n'.join(l) |
| 318 | 317 |
| 319 # | 318 # |
| 320 # $Log: not supported by cvs2svn $ | 319 # $Log: not supported by cvs2svn $ |
| 320 # Revision 1.7 2001/08/03 07:18:22 richard | |
| 321 # Implemented correct mail splitting (was taking a shortcut). Added unit | |
| 322 # tests. Also snips signatures now too. | |
| 323 # | |
| 321 # Revision 1.6 2001/08/01 04:24:21 richard | 324 # Revision 1.6 2001/08/01 04:24:21 richard |
| 322 # mailgw was assuming certain properties existed on the issues being created. | 325 # mailgw was assuming certain properties existed on the issues being created. |
| 323 # | 326 # |
| 324 # Revision 1.5 2001/07/29 07:01:39 richard | 327 # Revision 1.5 2001/07/29 07:01:39 richard |
| 325 # Added vim command to all source so that we don't get no steenkin' tabs :) | 328 # Added vim command to all source so that we don't get no steenkin' tabs :) |
