openbsd-ports/mail/dspam/patches/patch-man_dspam_train_1
schwarze 76bb801b7e Minimally fix up the manual pages, which are equally broken with groff
and mandoc, such that they become readable.  Sending patches upstream
is probably pointless because todd@ tells me the last upstream commit
was in 2015.  But as long as we keep the port alive, we should provide
readable manuals.  Discussed with todd@ (MAINTAINER).

While here, also fix the HOMEPAGE as recommended by todd@.
2018-09-01 10:08:40 +00:00

71 lines
1.5 KiB
Plaintext

$OpenBSD: patch-man_dspam_train_1,v 1.1 2018/09/01 10:08:40 schwarze Exp $
Index: man/dspam_train.1
--- man/dspam_train.1.orig
+++ man/dspam_train.1
@@ -17,20 +17,12 @@ dspam_train \- train a corpus of mail
.SH SYNOPSIS
.na
.B dspam_train
+.RI [ username ]
[\c
-.BI username\fR\c
-]
-[\c
.BI \--client\fR\c
]
-[\c
-.BI \-i\ \fR\c
-index|\c
-.BI spam_corpus\fR\c
-\ \c
-.BI nonspam_corpus\fR\c
-]
-
+.RB [ \-i
+.IR index | "spam_corpus nonspam_corpus" ]
.ad
.SH DESCRIPTION
.LP
@@ -51,34 +43,34 @@ of a particular corpus against DSPAM in a given config
.ne 3
.TP
-.BI \--client\c
+.B \--client
If specified, DSPAM is used in client\-server mode.
.ne 3
.TP
-.BI username\c
+.I username
Specifies the user to train, if omitted the current user name is used.
.ne 3
.TP
-.BI \-i\fR\ index\c
+.BI \-i\ index
Use a index file instead of the usual spam_corpus and nonspam_corpus.
-.B index
+.I index
: Path to the index file having the following format per line:
.br
[class] [path to message]
.ne 3
.TP
-.BI spam_corpus\c
+.I spam_corpus
Specifies either the pathname to the directory containing the corpus of spam,
with each in a separate file (e.g. maildir format) or a path to the mailbox in
the traditional Unix MBOX format.
.ne 3
.TP
-.BI nonspam_corpus\c
+.I nonspam_corpus
Specifies either the pathname to the directory containing the corpus of
nonspam with each message in a separate file or a path to the mailbox in the
traditional Unix MBOX format.