Skip to content

Commit 73c00b2

Browse files
closed issue2550884 roundup-mailgw --help text improved to explain the allowed parameters better. Suggested by by Karl-Philipp Richter.
1 parent de22c68 commit 73c00b2

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ Fixed:
160160
always work. (Ralf Schlatterbeck)
161161
- issue2550881 demo.py: Add pointer how to access demo from remote host.
162162
Suggested by Karl-Philipp Richter. (Bernhard Reiter)
163+
- issue2550884 roundup-mailgw --help text improved to explain the allowed
164+
parameters better. Suggested by by Karl-Philipp Richter. (Bernhard Reiter)
163165

164166

165167
2013-07-06: 1.5.0

roundup/scripts/roundup_mailgw.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ def usage(args, message=None):
4545
if message is not None:
4646
print message
4747
print _(
48-
"""Usage: %(program)s [-v] [-c class] [[-C class] -S field=value]* <instance home> [method]
48+
"""Usage: %(program)s [-v] [-c class] [[-C class] -S field=value]* [instance home] [mail source [specification]]
4949
5050
Options:
5151
-v: print version and exit
5252
-c: default class of item to create (else the tracker's MAIL_DEFAULT_CLASS)
5353
-C / -S: see below
5454
55-
The roundup mail gateway may be called in one of four ways:
55+
The roundup mail gateway may be called in one of the following ways:
56+
. without arguments. Then the env var ROUNDUP_INSTANCE will be tried.
5657
. with an instance home as the only argument,
5758
. with both an instance home and a mail spool file,
58-
. with both an instance home and a POP/APOP server account, or
59-
. with both an instance home and a IMAP/IMAPS server account.
59+
. with an instance home, a mail source type and its specification.
6060
6161
It also supports optional -C and -S arguments that allows you to set a
6262
fields for a class created by the roundup-mailgw. The default class if
@@ -69,25 +69,26 @@ def usage(args, message=None):
6969
It can let you set the type of the message on a per email address basis.
7070
7171
PIPE:
72-
In the first case, the mail gateway reads a single message from the
73-
standard input and submits the message to the roundup.mailgw module.
72+
If there is no mail source specified,
73+
the mail gateway reads a single message from the standard input
74+
and submits the message to the roundup.mailgw module.
7475
75-
UNIX mailbox:
76-
In the second case, the gateway reads all messages from the mail spool
76+
Mail source "mailbox":
77+
In this case, the gateway reads all messages from the UNIX mail spool
7778
file and submits each in turn to the roundup.mailgw module. The file is
7879
emptied once all messages have been successfully handled. The file is
7980
specified as:
8081
mailbox /path/to/mailbox
8182
82-
In all of the following the username and password can be stored in a
83-
~/.netrc file. In this case only the server name need be specified on
84-
the command-line.
83+
In all of the following mail source type the username and password
84+
can be stored in a ~/.netrc file. If done so case only the server name
85+
need to be specified on the command-line.
8586
8687
The username and/or password will be prompted for if not supplied on
8788
the command-line or in ~/.netrc.
8889
8990
POP:
90-
In the third case, the gateway reads all messages from the POP server
91+
For the mail source "pop", the gateway reads all messages from the POP server
9192
specified and submits each in turn to the roundup.mailgw module. The
9293
server is specified as:
9394
pop username:password@server

0 commit comments

Comments
 (0)