summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 111fb6d)
raw | patch | inline | side by side (parent: 111fb6d)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 7 Nov 2001 05:32:58 +0000 (05:32 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 7 Nov 2001 05:32:58 +0000 (05:32 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@380 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-mailgw | patch | blob | history |
diff --git a/roundup-mailgw b/roundup-mailgw
index 15f765b493133134ff8f9f60eede6b55cd22e856..2322a25ba62dcb07fd2529f8ad08ccab154f8951 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.10 2001-11-07 05:30:11 richard Exp $
+# $Id: roundup-mailgw,v 1.11 2001-11-07 05:32:58 richard Exp $
import sys
if int(sys.version[0]) < 2:
instance_home = os.environ.get('ROUNDUP_INSTANCE', '')
if not instance_home:
print 'Usage: %s <instance home> [mail spool file]'%sys.argv[0]
+ print '''
+The roundup mail gateway may be called in one of two ways:
+ . with an instance home as the only argument, or
+ . with both an instance home and a mail spool file.
+
+In the first case, the mail gateway reads a single message from the
+standard input and submits the message to the roundup.mailgw module.
+
+In the second case, the gateway reads all messages from the mail spool
+file and submits each in turn to the roundup.mailgw module. The file is
+emptied once all messages have been successfully handled.
+'''
sys.exit(1)
# get the instance
#
# $Log: not supported by cvs2svn $
+# Revision 1.10 2001/11/07 05:30:11 richard
+# Nicer usage message.
+#
# Revision 1.9 2001/11/07 05:29:26 richard
# Modified roundup-mailgw so it can read e-mails from a local mail spool
# file. Truncates the spool file after parsing.