The first argument is the path to the news active file; the default is /usr/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