Mercurial > p > roundup > code
comparison roundup/scripts/roundup_mailgw.py @ 2373:b48fcae8b2ad maint-0.7
couple of bugfixes
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 28 May 2004 01:03:53 +0000 |
| parents | 0b198ed096af |
| children | 1154e7fa2f47 |
comparison
equal
deleted
inserted
replaced
| 2371:65bb0e974f20 | 2373:b48fcae8b2ad |
|---|---|
| 12 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 12 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 13 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 13 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 16 # | 16 # |
| 17 # $Id: roundup_mailgw.py,v 1.15 2004-05-06 01:12:24 richard Exp $ | 17 # $Id: roundup_mailgw.py,v 1.15.2.1 2004-05-28 01:03:53 richard Exp $ |
| 18 | 18 |
| 19 """Command-line script stub that calls the roundup.mailgw. | 19 """Command-line script stub that calls the roundup.mailgw. |
| 20 """ | 20 """ |
| 21 __docformat__ = 'restructuredtext' | 21 __docformat__ = 'restructuredtext' |
| 22 | 22 |
| 172 m.group('pass'), mailbox, ssl) | 172 m.group('pass'), mailbox, ssl) |
| 173 | 173 |
| 174 return usage(argv, _('Error: The source must be either "mailbox",' | 174 return usage(argv, _('Error: The source must be either "mailbox",' |
| 175 ' "pop", "apop", "imap" or "imaps"')) | 175 ' "pop", "apop", "imap" or "imaps"')) |
| 176 finally: | 176 finally: |
| 177 db.close() | 177 handler.db.close() |
| 178 | 178 |
| 179 def run(): | 179 def run(): |
| 180 # time out after a minute if we can | 180 # time out after a minute if we can |
| 181 import socket | 181 import socket |
| 182 if hasattr(socket, 'setdefaulttimeout'): | 182 if hasattr(socket, 'setdefaulttimeout'): |
