Skip to content

Commit 3b9c00e

Browse files
author
Richard Jones
committed
More roundup-mailgw usage help.
1 parent c19f7fe commit 3b9c00e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

roundup-mailgw

Lines changed: 16 additions & 1 deletion
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.10 2001-11-07 05:30:11 richard Exp $
19+
# $Id: roundup-mailgw,v 1.11 2001-11-07 05:32:58 richard Exp $
2020

2121
import sys
2222
if int(sys.version[0]) < 2:
@@ -31,6 +31,18 @@ else:
3131
instance_home = os.environ.get('ROUNDUP_INSTANCE', '')
3232
if not instance_home:
3333
print 'Usage: %s <instance home> [mail spool file]'%sys.argv[0]
34+
print '''
35+
The roundup mail gateway may be called in one of two ways:
36+
. with an instance home as the only argument, or
37+
. with both an instance home and a mail spool file.
38+
39+
In the first case, the mail gateway reads a single message from the
40+
standard input and submits the message to the roundup.mailgw module.
41+
42+
In the second case, the gateway reads all messages from the mail spool
43+
file and submits each in turn to the roundup.mailgw module. The file is
44+
emptied once all messages have been successfully handled.
45+
'''
3446
sys.exit(1)
3547

3648
# get the instance
@@ -73,6 +85,9 @@ fcntl.flock(f.fileno(), FCNTL.LOCK_UN)
7385

7486
#
7587
# $Log: not supported by cvs2svn $
88+
# Revision 1.10 2001/11/07 05:30:11 richard
89+
# Nicer usage message.
90+
#
7691
# Revision 1.9 2001/11/07 05:29:26 richard
7792
# Modified roundup-mailgw so it can read e-mails from a local mail spool
7893
# file. Truncates the spool file after parsing.

0 commit comments

Comments
 (0)