1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
.\" $Header: /nfs/papaya/u2/rsalz/src/newsgate/RCS/mkmailpost.1,v 1.6 91/07/18 20:13:26 rsalz Exp Locker: rsalz $
.TH MKMAILPOST 1 LOCAL
.SH NAME
mkmailpost \- make a set of mailpost commands for a gag file
.SH SYNOPSIS
.B mkmailpost
[
.B activefile
[
.B mail2news_path
] ]
.SH DESCRIPTION
.I mkmailpost
reads the news active file and generates a a set of ``mailpost'' commands
for feeding into
.IR gag (1L).
Output is sent to the standard output.
.PP
The first argument is the path to the news active file; the default is
.IR /var/lib/news .
The second argument is the path to the
.I mail2news
program; if specified, then a ``default mail2news
.IR path ''
is output.
.PP
.I Mkmailpost
ignores moderated groups, as well as ``junk,'' ``general,'' and those
of the form
.RI ``to. site .''
It also ignores groups with the word ``test'' in them; such groups usually
have mail reflectors attached to them, so that the poster gets a copy of
their message.
It is assumed that this is not appropriate if someone is mailing into a site.
.I Mkmailpost
also ignores groups with with the words ``announce'' in them under the
assumption that they are moderated groups and mail should be sent to
the moderator, instead.
(It is agreed that finding the moderator for non-Usenet sites can be
problematic.)
.PP
Assume the main
.I gag
input is named
.IR main.gag .
The following command line can be useful:
.RS
.nf
( echo '#include "main.gag"' ; mkmailpost ) \e
| /lib/cpp | gag
.fi
.RE
(On some systems you may have to use ``cc \-E'' or ``cc \-P'' instead
of ``/lib/cpp.'')
.SH BUGS
Since the name and number of Usenet groups changes very frequently,
a better method is to define a more general way of feeding mail into
newsgroups.
.SH "SEE ALSO"
gag(1L).
.SH AUTHOR
Rich $alz <rsalz@bbn.com>, after an idea by
.br
Erik E. Fair <fair@apple.com>.
|