comparison roundup/mailgw.py @ 454:eed9359b448d

Oops.
author Roche Compaan <rochecompaan@users.sourceforge.net>
date Sat, 15 Dec 2001 19:39:01 +0000
parents 5b422e3bd05d
children 29f5ac8a0d2b
comparison
equal deleted inserted replaced
453:5b422e3bd05d 454:eed9359b448d
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.42 2001-12-15 19:24:39 rochecompaan Exp $ 76 $Id: mailgw.py,v 1.43 2001-12-15 19:39:01 rochecompaan Exp $
77 ''' 77 '''
78 78
79 79
80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri 80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
81 import traceback, MimeWriter 81 import traceback, MimeWriter
621 for section in sections: 621 for section in sections:
622 #section = section.strip() 622 #section = section.strip()
623 if not section: 623 if not section:
624 continue 624 continue
625 lines = eol.split(section) 625 lines = eol.split(section)
626 if lines[0] and lines[0][0] in '>|':
627 continue
628 if len(lines) > 1 and lines[1] and lines[1][0] in '>|':
629 continue
626 if not summary: 630 if not summary:
627 summary = lines[0] 631 summary = lines[0]
628 l.append(section) 632 l.append(section)
629 continue 633 continue
630 # TODO: write better pattern for matching signature - it 634 if signature.match(lines[0]):
631 # currently truncates messages with dashes in 635 break
632 #if signature.match(lines[0]):
633 # break
634 l.append(section) 636 l.append(section)
635 return summary, '\n\n'.join(l) 637 return summary, '\n\n'.join(l)
636 638
637 # 639 #
638 # $Log: not supported by cvs2svn $ 640 # $Log: not supported by cvs2svn $
639 # Revision 1.27 2001/12/15 06:51:04 roche 641 # Revision 1.42 2001/12/15 19:24:39 rochecompaan
640 # Merge with CVS 642 # . Modified cgi interface to change properties only once all changes are
641 # 643 # collected, files created and messages generated.
642 # Revision 1.1.1.11 2001/12/13 07:05:43 roche 644 # . Moved generation of change note to nosyreactors.
643 # update from cvs 645 # . We now check for changes to "assignedto" to ensure it's added to the
646 # nosy list.
644 # 647 #
645 # Revision 1.41 2001/12/10 00:57:38 richard 648 # Revision 1.41 2001/12/10 00:57:38 richard
646 # From CHANGES: 649 # From CHANGES:
647 # . Added the "display" command to the admin tool - displays a node's values 650 # . Added the "display" command to the admin tool - displays a node's values
648 # . #489760 ] [issue] only subject 651 # . #489760 ] [issue] only subject

Roundup Issue Tracker: http://roundup-tracker.org/