The manager argument, if given, is used for the Approved: field.
If the distribution argment is given, it is used for the Distribution: field, which default value is determined at compile time.
Mailtonews reads the conversion tables from its configuration file, which default value is /usr/local/share/mailtonews/mailtonews.conf. You can specify alternate file with -f option. For information of the format of the configuration file, see below.
Next, mailtonews reads unix mail form from stdin and creates news file and original mail copy in the temporary directory. These temporary files are unlinked when news server accepts the post. If post fails, mailtonews leave original mail file, converted newsfile and error output from inews in the temporary directory.
If the environment variable TMPDIR is set, mailtonews uses it as the directory in which to put temporary files instead of the default, /tmp.
The mailtonews utility exits 0 on success, 75 when temporary fail, and 1 if other error occurs.
The following headers, if present, are removed:
``Resent-From:'', ``Resent-To:'', ``Resent-Message-Id'', ``From'' (Unix_from), ``Errors-To:'', ``Received:'', ``Return-Path:'', ``Status:'', ``Posted'', ``Distribution:'', ``Newsgroups:'', ``Organization:'', ``NNTP-Posting-Host:'' and ``Xref:''.
Following headers treated specially.
In-Reply-To:: This field sometimes contains Message-Id to which the poster replied. So,if it contains some message-id, mailtonews converts it to Reference: field.
To: and CC:: These headers are expected contain mailing-list name, so mailtonews tries to convert them to newsgroup name.
Subject:: Some mailing-list programs modify the subject of the article, such as adding [mlname,archive_number]. Some newsreader can not trace the thread with such subjects, so mailtonews will remove text enclosed in `[' and ']' at the beginning of the subject. Message-Id:: Some mailers and/or mailing list programs create message-id which is not appropriate for news, such as message-id contains white space, ended with ".", or null hostname ( no string between @ and > ). Mailtonews converts such message-id by replacing white space with dot, removing dot before ">" and adding sender's hostname respectively.
All other headers, unless not duplicate, will be copied to news file. And mailtonews add X-MN-Version: headers.
# Mailing List Name Newsgroup Name
current-users netbsd.current
gnats-bugs netbsd.bugs
netbsd-announce netbsd.announce
netbsd-bugs netbsd.bugs
netbsd-help netbsd.help
netbsd-ports netbsd.ports
netbsd-questions netbsd.help
netbsd-users netbsd.users
port-i386 netbsd.ports.i386
port-alpha netbsd.ports.alpha
source netbsd.source
Return to OLNS Software Project home