summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b78384d)
raw | patch | inline | side by side (parent: b78384d)
author | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 11 Jan 2002 07:02:29 +0000 (07:02 +0000) | ||
committer | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 11 Jan 2002 07:02:29 +0000 (07:02 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@532 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-mailgw | patch | blob | history |
diff --git a/roundup-mailgw b/roundup-mailgw
index e6de399d4d35432e21950291d6e32b0d7a5b6adc..a75f4387f9af9814006d47827686a04afe7abecc 100755 (executable)
--- a/roundup-mailgw
+++ b/roundup-mailgw
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup-mailgw,v 1.20 2002-01-07 10:43:48 richard Exp $
+# $Id: roundup-mailgw,v 1.21 2002-01-11 07:02:29 grubert Exp $
# python version check
from roundup import version_check
'''Read a series of messages from the specified POP server.
'''
import getpass, poplib, socket
- if not user:
- user = raw_input(_('User: '))
- if not password:
- password = getpass.getpass()
+ try:
+ if not user:
+ user = raw_input(_('User: '))
+ if not password:
+ password = getpass.getpass()
+ except (KeyboardInterrupt, EOFError):
+ # Ctrl C or D maybe also Ctrl Z under Windows.
+ print "\nAborted by user."
+ return 1
# open a connection to the server and retrieve all messages
try:
#
# $Log: not supported by cvs2svn $
+# Revision 1.20 2002/01/07 10:43:48 richard
+# #500329 ] exception on server not reachable-patch
+#
# Revision 1.19 2002/01/05 02:19:03 richard
# i18n'ification
#