|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
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 $ |
20 | 20 |
|
21 | 21 | import sys |
22 | 22 | if int(sys.version[0]) < 2: |
|
31 | 31 | instance_home = os.environ.get('ROUNDUP_INSTANCE', '') |
32 | 32 | if not instance_home: |
33 | 33 | 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 | +''' |
34 | 46 | sys.exit(1) |
35 | 47 |
|
36 | 48 | # get the instance |
@@ -73,6 +85,9 @@ fcntl.flock(f.fileno(), FCNTL.LOCK_UN) |
73 | 85 |
|
74 | 86 | # |
75 | 87 | # $Log: not supported by cvs2svn $ |
| 88 | +# Revision 1.10 2001/11/07 05:30:11 richard |
| 89 | +# Nicer usage message. |
| 90 | +# |
76 | 91 | # Revision 1.9 2001/11/07 05:29:26 richard |
77 | 92 | # Modified roundup-mailgw so it can read e-mails from a local mail spool |
78 | 93 | # file. Truncates the spool file after parsing. |
|
0 commit comments