comparison roundup-mailgw @ 426:fe89e341816b

Fixed bug. Mail gateway was not using the extended Message class... ...resulting in failed submissions when mails were processed from a Unix mailbox
author Roche Compaan <rochecompaan@users.sourceforge.net>
date Fri, 30 Nov 2001 13:16:37 +0000
parents 7d7cb5319fc0
children 5164f3141159
comparison
equal deleted inserted replaced
425:fc907b6ef135 426:fe89e341816b
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: roundup-mailgw,v 1.14 2001-11-13 21:44:44 richard Exp $ 19 # $Id: roundup-mailgw,v 1.15 2001-11-30 13:16:37 rochecompaan Exp $
20 20
21 import sys, os, re, cStringIO 21 import sys, os, re, cStringIO
22 if int(sys.version[0]) < 2: 22 if int(sys.version[0]) < 2:
23 print "Roundup requires Python 2.0 or newer." 23 print "Roundup requires Python 2.0 or newer."
24 sys.exit(1) 24 sys.exit(1)
25 25
26 from mimetools import Message 26 from roundup import mailgw
27 Message = mailgw.Message
27 28
28 def do_pipe(handler): 29 def do_pipe(handler):
29 '''Read a message from standard input and pass it to the mail handler. 30 '''Read a message from standard input and pass it to the mail handler.
30 ''' 31 '''
31 handler.main(sys.stdin) 32 handler.main(sys.stdin)
166 if __name__ == '__main__': 167 if __name__ == '__main__':
167 sys.exit(main(sys.argv)) 168 sys.exit(main(sys.argv))
168 169
169 # 170 #
170 # $Log: not supported by cvs2svn $ 171 # $Log: not supported by cvs2svn $
172 # Revision 1.14 2001/11/13 21:44:44 richard
173 # . re-open the database as the author in mail handling
174 #
171 # Revision 1.13 2001/11/09 01:05:55 richard 175 # Revision 1.13 2001/11/09 01:05:55 richard
172 # Fixed bug #479511 ] mailgw to pop once engelbert gruber tested the POP 176 # Fixed bug #479511 ] mailgw to pop once engelbert gruber tested the POP
173 # gateway. 177 # gateway.
174 # 178 #
175 # Revision 1.12 2001/11/08 05:16:55 richard 179 # Revision 1.12 2001/11/08 05:16:55 richard

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