Update manual for wmbiff and wmbiffrc.
[dockapps.git] / wmbiff / wmbiff / wmbiffrc.5.in
blob0443bc519a44a27e6ff7cb911c8feae1346354de
1 .\" Hey, Emacs!  This is an -*- nroff -*- source file.
2 .\" $Id: wmbiffrc.5.in,v 1.18 2004/12/12 00:01:53 bluehal Exp $
3 .\"
4 .\" @configure_input@
5 .\"
6 .\" wmbiff.1 and wmbiffrc.5 are copyright 1999-2002 by 
7 .\" Jordi Mallach <jordi@debian.org>
8 .\"
9 .\" This is free documentation, see the latest version of the GNU
10 .\" General Public License for copying conditions. There is NO warranty.
11 .TH WMBIFFRC 5 "November 11, 2002" "wmbiff"
13 .SH NAME
14 wmbiffrc \- configuration file for
15 .BR wmbiff (1)
17 .SH DESCRIPTION
18 \fBWMbiff\fP is a mail notification tool for the WindowMaker and AfterStep
19 window managers. It can handle up to 5 mailboxes, more when run using other
20 window managers. You can define actions
21 on mouse clicks for the different mailboxes. This manpage explains the
22 different options which can be specified in a user's wmbiffrc.
24 .SH OPTIONS
25 Each option takes the form
26 .IR option[.mbox] " = " value .
27 Comments must be preceeded by pound signs (#).
29 The supported configuration options are:
31 .TP 3
32 \fBcertfile\fP
33 File that holds TLS (SSL) certificates.  If specified,
34 wmbiff will check certificates and exit on a failure, so
35 your password is secure.  If not present, wmbiff will trust
36 all certificates and may be vulnerable to a
37 man-in-the-middle attack.  WMbiff's will not prompt if you
38 want to accept new certificates.  Instead, wmbiff expects
39 your mail client to keep certificates in a file.  For
40 example, if mutt is your mailreader, you may add:
42 .RS
43 certfile=/home/<me>/.muttsslcerts
44 .RE
45 .TP
46 \fBinterval\fP
47 Global interval between mailbox checking. Value is the number of seconds, 5
48 is the default.
49 .TP 
50 \fBaskpass\fP
51 Program run to ask for IMAP passwords, if left empty in the configuration file.
52 The default is @DEFAULT_ASKPASS@.  Can be specified on a per-mailbox basis.
53 .TP 
54 \fBskinfile\fP
55 XPM pixmap file to load for the background.  If not a full
56 path, wmbiff will search @SKINDIR@, /usr/share/wmbiff,
57 /usr/local/share/wmbiff, and the current directory for the
58 pixmap file.
59 .TP
60 \fBglobalnotify\fP
61 Command to be executed when new mail is recieved in any mailbox. Set
62 notify.n to override this option for mailbox n.
63 .TP
64 \fBlabel.n\fP
65 Specifies the displayed label for a mailbox. It can be up to five characters
66 long.
67 .TP
68 \fBpath.n\fP
69 Path to the mailbox, local or remote one. Path lines start with a prefix,
70 which specifies the type of wmbiff box you're setting up. The following types
71 are supported:
72 .RS
73 .TP
74 .I mbox
75 This is a local mbox mailbox. After the prefix, you only need to put the
76 path to the mailbox wmbiff needs to read.  
77 Local mboxes may be specified using shell commands enclosed
78 in back-ticks. (`s.)
79 .\"This is also the default.
80 .RS
81 mbox:/path/to/mail/debian-devel
82 .RE
83 .\"  let's stop making this available.
84 .\" .RS
85 .\" - or -
86 .\" .RE
87 .\" /path/to/mail/debian-devel
88 .\" .RS
89 .TP
90 .I maildir
91 This works just like \fImbox\fP above.  
92 .RS
93 maildir:[:\fIflags\fP:]/path/to/mail/bugtraq/
94 .TP
95 \fIflags\fP can one or more of:
96 .TP
97 .I F
98 Flush directory caches by creating (then deleting) a temporary file
99 in each maildir prior to checking.  This hack speeds up checking 
100 network-mounted maildirs in cases where directory caching can cause 
101 unwanted delays (eg. SFS-mounted maildirs).
104 .I pop3
105 Using this type, WMBiff will check for mail on a pop3 server using the
106 specified username, password, host and an optional port number (defaulting
107 to 110).  If your password contains a special character, eg. '@' or ':',
108 use the second path format.  See Authentication below for a description of 
109 the auth field. 
111 pop3:user:passwd@server[:port] [auth]
114 pop3:user passwd server[ port] [auth] 
117 .I pop3s
118 Exactly like pop3, only uses TLS (SSL) when built with gnutls and defaults
119 to port 995. @GNUTLS_MAN_STATUS@ 
121 .I imap
122 These are IMAP4 boxes. As with pop3, WMBiff will report the
123 status of an IMAP4 mbox using the given values. This type
124 accepts user, optional password, host and optional path to
125 mailbox and port number.  See Authentication below for a
126 description of the auth field.  The password may be left
127 empty: see askpass above for information on password
128 prompting.  If your password includes a @, use the 
129 space delimited form.  If it contains a space or #, use the
130 askpass option instead.  The mailbox field may be quoted, 
131 e.g., server/"Mail/Eggs and Spam".  Mailboxes in subfolders 
132 may be described as /INBOX.subfolder by some servers and 
133 /Mail/subfolder by others.
135 imap:user:passwd@server[/mailbox][:port] [auth]
138 imap:user:@server[/mailbox][:port] [auth]
141 imap:user passwd server[/mailbox][ port] [auth]
144 imap:user:passwd@server[/"mail box"][:port] [auth]
147 .I imaps
148 These are IMAP4 boxes wrapped in a TLS (SSL)
149 connection. @GNUTLS_MAN_STATUS@ Parameters are the same as
150 those for ordinary IMAP4 boxes.  Port defaults to 993. If
151 143 is specified, WMBiff will attempt to connect unencrypted
152 but negotiate TLS using IMAP's STARTTLS command.  TLS
153 support uses GNUTLS, which is under development and may be
154 insecure.  See the imap format above
155 for additional detail about specifying your password.
157 imaps:user:passwd@server[/mailbox][:port] [auth]
160 imaps:user:@server[/mailbox][:port] [auth]
163 imaps:user passwd server[/mailbox][ port] [auth]
166 .I shell
167 With this keyword, wmbiff will launch the
168 specified shell command and read its output (STDOUT)
169 expecting an integer message count or a three-character
170 string.  If "new" is in the first line, the string or number
171 will be displayed in yellow. The behavior of this
172 experimental keyword is likely to change in future
173 revisions.
175 shell:::/path/to/command
176 shell:::lpq | grep Queue | awk '{print $2}'
180 \fBnotify.n\fP
181 Command to be executed on new mail arrival in the given mailbox. Accepts
182 the special keyword "beep" to use the pc speaker.
184 \fBaction.n\fP
185 Command to be executed on left mouse click on a mailbox label.  
186 Accepts
187 the special keyword "msglst" to pop up a window of recent message headers 
188 from IMAP or POP3 mailboxes when the left mouse button is held.
190 \fBbuttontwo.n\fP
191 Command to be executed on middle mouse click on a mailbox level.
192 Accepts
193 the special keyword "msglst" to pop up a window of 
194 recent message headers from IMAP or POP3 mailboxes when the middle mouse button is held.
196 \fBinterval.n\fP
197 Per mailbox check interval. Value is the amount of seconds between
198 checkings, default is the global interval.
200 \fBfetchinterval.n\fP
201 Interval between mail auto-fetching. Values accept 0 to disable, -1 for
202 autofetching on new mail arrival, and positive values for a given interval
203 in seconds.
205 \fBfetchcmd.n\fP
206 Command to be executed to fetch mail. If not specified, fetching through
207 wmbiff is disabled completely.
208 Accepts
209 the special keyword "msglst" to pop up a window of recent message headers 
210 from IMAP and POP3 mailboxes when the right mouse button is held down,
211 though not when fetchinterval is nonzero.
213 \fBdebug.n\fP 
214 Show debugging messages from this mailbox.  Currently
215 supported values are "all" and "none".  The \-debug option
216 to wmbiff overrides this setting.  Since IMAP uses a single
217 connection per server, per-mailbox debugging may not
219 .SH SIZING
221 WMBiff will automatically size its window to the number of
222 configured mailboxes.  While WindowMaker's Dock and
223 AfterStep's Wharf expect square, 64x64 applets, other window
224 managers, such as Blackbox or Openbox do not have this
225 limitation.  This uncharacteristic "dockapp" behavior is
226 intended to help those users who don't have exactly five
227 mailboxes to watch.
229 To preserve the old-style five-mailbox window even when you
230 have only two, add
231 .IR path.4=<space><space>
232 to configure a blank 5th mailbox.
234 To use the new-style sizing, just configure as many
235 mailboxes as you want.
237 .SH AUTHENTICATION
239 Authentication methods include "cram-md5", "apop" (for
240 Pop3), and "plaintext".  "cram-md5" and "apop" are only
241 available when wmbiff is compiled with libgcrypt.
242 @GCRYPT_MAN_STATUS@
243 Authentication methods are tried in the following order:
244 cram-md5, apop, plaintext.
246 Each authentication method will be tried unless a list is
247 included in the [auth] field.  For example, append "cram-md5
248 apop" if you don't want your password to be sent in
249 cleartext over the network.  Conversely, append "plaintext"
250 if you don't want wmbiff to bother with other authentication
251 methods.  Leaving authentication methods unspecified should
252 be reasonably safe.  The order of entries in the [auth] list
253 is not currently considered.
255 .SH TROUBLESHOOTING
257 For problems authenticating to servers, try specifying the
258 authentication method explicitly as described above:
259 sometimes a failed attempt to authenticate can cause later
260 failures.  Some servers claim to support cram-md5 but fail:
261 telling wmbiff not to try can help.
263 For other problems, run wmbiff with the -debug option.  See
264 wmbiff(1) for details.
266 While editing .wmbiffrc, you may find it useful to restart
267 wmbiff using either control-shift mouse button 1, or killall
268 -USR1 wmbiff.
271 .SH FILES
273 .I ~/.wmbiffrc
274 per-user wmbiff configuration file.
276 .SH AUTHOR
277 This manual page was written by Jordi Mallach <jordi@debian.org>,
278 originally for the Debian system (but may be used by others).
280 .SH SEE ALSO
281 .PD 0
283 \fBwmbiff\fP(1)
285 \fI/usr/share/doc/wmbiff/examples/sample.wmbiffrc\fP
286 (or equivalent on your system)