man mkmailpost (Commandes) - make a set of mailpost commands for a gag file

NAME

mkmailpost - make a set of mailpost commands for a gag file

SYNOPSIS

mkmailpost [ activefile [ mail2news_path ] ]

DESCRIPTION

mkmailpost reads the news active file and generates a a set of ``mailpost'' commands for feeding into gag(1L). Output is sent to the standard output.

The first argument is the path to the news active file; the default is /var/lib/news. The second argument is the path to the mail2news program; if specified, then a ``default mail2news path'' is output.

Mkmailpost ignores moderated groups, as well as ``junk,'' ``general,'' and those of the form ``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. 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.)

Assume the main gag input is named main.gag. The following command line can be useful:

( echo '#include "main.gag"' ; mkmailpost ) \
    | /lib/cpp | gag
(On some systems you may have to use ``cc -E'' or ``cc -P'' instead of ``/lib/cpp.'')

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.

SEE ALSO

gag(1).

AUTHOR

Rich $alz <rsalz@bbn.com>, after an idea by

Erik E. Fair <fair@apple.com>.