Skip to content

Commit 429d0ca

Browse files
committed
issue2550885: Documentation: update the roundup-mailgw manpage
Updated roundup-mailgw to match help text. The issue also discusses some way to keep these in sync. That is not present in this checkin.
1 parent 11cad1b commit 429d0ca

File tree

1 file changed

+73
-12
lines changed

1 file changed

+73
-12
lines changed

share/man/man1/roundup-mailgw.1

Lines changed: 73 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,41 @@
1-
.TH ROUNDUP-MAILGW 1 "24 January 2003"
1+
.TH ROUNDUP-MAILGW 1 "07 October 2019"
22
.SH NAME
33
roundup-mailgw \- mail gateway for roundup
44
.SH SYNOPSIS
5-
\fBroundup-mailgw\fP \fIinstance_home\fP [\fImethod\fP]
5+
\fBroundup-mailgw\fP [\fI-v\fP] [\fI-c\fP \fIdefault_class\fP]
6+
[[\fI-C\fP \fIclass\fP] \fI-S\fP \fIfield=value\fP]
7+
[\fIinstance_home\fP] [\fImail source [specification]\fP]
68
.SH OPTIONS
79
.TP
810
\fB-v\fP
911
Print version and exit.
1012
.TP
13+
\fB-c\fP \fIhyperdb class\fP
14+
specify the default tracker class - one of issue (the default), msg, file, user etc. Overrides the
15+
tracker's mailgw default_class setting.
16+
.TP
1117
\fB-C\fP \fIhyperdb class\fP
1218
specify a tracker class - one of msg (the default), issue, file, user - to
1319
manipulate with -S options
1420
.TP
1521
\fB-S\fP \fIproperty\fP\fB=\fP\fIvalue\fP[\fB;\fP\fIproperty\fP\fB=\fP\fIvalue\fP] \fIpairs\fP
16-
specify the values to set on the class specified by -C using the same
17-
format as the Subject line property manipulations
22+
specify the values to set on the class specified by \fB-C\fP using the same
23+
format as the Subject line property manipulations. Can also be
24+
specified with \fB--set\fP.
1825
.SH DESCRIPTION
19-
The roundup mail gateway may be called in one of three ways:
26+
The roundup mail gateway may be called in one of four ways:
27+
.IP \(bu
28+
without arguments which will use the env var ROUNDUP_INSTANCE,
2029
.IP \(bu
21-
with an instance home as the only argument,
30+
with an instance_home as the only argument,
2231
.IP \(bu
23-
with both an instance home and a mail spool file, or
32+
with both an instance_home and a mail spool file, or
2433
.IP \(bu
25-
with both an instance home and a pop server account.
34+
with both an instance home and a mail source type and its specification.
2635
.PP
2736
\fBPIPE\fP
2837
.br
29-
In the first case, the mail gateway reads a single message from the
38+
In the first and second cases, the mail gateway reads a single message from the
3039
standard input and submits the message to the roundup.mailgw module.
3140

3241
\fBUNIX mailbox\fP
@@ -55,8 +64,17 @@ The username and password may be omitted:
5564
\fBpop\fP \fIusername\fP\fB@\fP\fIserver\fP
5665
\fBpop\fP \fIserver\fP
5766
.br
58-
are both valid. The username and/or password will be prompted for if
59-
not supplied on the command-line.
67+
are both valid.
68+
69+
\fBPOPS\fP
70+
.br
71+
Connect to the POP server over ssl/tls. This requires python 2.4 or
72+
later. This supports the same notation as POP.
73+
74+
75+
\fBpops\fP \fIusername\fP\fB:\fP\fIpassword\fP\fB@\fP\fIserver\fP
76+
.br
77+
etc.
6078

6179
\fBAPOP\fP
6280
.br
@@ -75,12 +93,55 @@ this format:
7593

7694
\fBIMAPS\fP
7795
.br
78-
Connect to an IMAP server over ssl.
96+
Connect to an IMAP server over ssl/tls.
7997
This supports the same notation as IMAP.
8098
\fBimaps\fP \fIusername\fP\fB:\fP\fIpassword\fP\fB@\fP\fIserver\fP [\fImailbox\fP]
99+
100+
101+
\fBIMAPS_CRAM\fP
102+
.br
103+
Connect to an IMAP server over ssl/tls using CRAM-MD5 authentication.
104+
This supports the same notation as IMAP.
105+
\fBimaps_cram\fP \fIusername\fP\fB:\fP\fIpassword\fP\fB@\fP\fIserver\fP [\fImailbox\fP]
106+
107+
.SH ENVIRONMENT VARIABLES
108+
109+
\fBROUNDUP_INSTANCE\fP
110+
.br
111+
This can be used to set the instance directory. If it is set, the
112+
\fIinstance_home\fP argument is optional.
113+
114+
.SH EXAMPLE
115+
If your msg class has a messsagetype property you can set
116+
up aliases to receive the different types of messages. Setting up
117+
an alias in your MTA Using:
118+
119+
tracker: |/tools/roundup/bin/roundup-mailgw -C msg
120+
-S "messagetype=reply - to all" /var/roundup/sysadmin
121+
122+
(the lines are split for readability. In the alias file they will be
123+
on the same line). Replace /tools/roundup/bin/roundup-mailgw by your
124+
path to the roundup-mailgw. This creates the email alias "tracker". All
125+
messages sent to it have their messagetype property set to "reply -
126+
to all". The roundup tracker instance is located at
127+
/var/roundup/sysadmin.
128+
129+
A comment alias would receive emails at tracker_comment with:
130+
131+
tracker_comment: |/tools/roundup/bin/roundup-mailgw -C msg
132+
-S "messagetype=comment - to technical" /var/roundup/sysadmin
133+
134+
which would be a technical message. These messages can trigger
135+
different workflows based on the messagetype.
136+
137+
Both examples use the default class specified in the tracker's
138+
config.ini (usually the issue class).
139+
81140
.SH AUTHOR
82141
This manpage was written by Bastian Kleineidam
83142
<[email protected]> for the Debian distribution of roundup.
84143

85144
The main author of roundup is Richard Jones
86145
146+
147+
Updates by John Rouillard <[email protected]>.

0 commit comments

Comments
 (0)