Skip to content

Commit c19f7fe

Browse files
author
Richard Jones
committed
Nicer usage message.
1 parent 749da9d commit c19f7fe

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

roundup-mailgw

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup-mailgw,v 1.9 2001-11-07 05:29:26 richard Exp $
19+
# $Id: roundup-mailgw,v 1.10 2001-11-07 05:30:11 richard Exp $
2020

2121
import sys
2222
if int(sys.version[0]) < 2:
@@ -30,7 +30,7 @@ if len(sys.argv) > 1:
3030
else:
3131
instance_home = os.environ.get('ROUNDUP_INSTANCE', '')
3232
if not instance_home:
33-
print 'No instance home specified'
33+
print 'Usage: %s <instance home> [mail spool file]'%sys.argv[0]
3434
sys.exit(1)
3535

3636
# get the instance
@@ -73,6 +73,12 @@ fcntl.flock(f.fileno(), FCNTL.LOCK_UN)
7373

7474
#
7575
# $Log: not supported by cvs2svn $
76+
# Revision 1.9 2001/11/07 05:29:26 richard
77+
# Modified roundup-mailgw so it can read e-mails from a local mail spool
78+
# file. Truncates the spool file after parsing.
79+
# Fixed a couple of small bugs introduced in roundup.mailgw when I started
80+
# the popgw.
81+
#
7682
# Revision 1.8 2001/11/01 22:04:37 richard
7783
# Started work on supporting a pop3-fetching server
7884
# Fixed bugs:

0 commit comments

Comments
 (0)