[PREVIOUS CHAPTER]
[NEXT CHAPTER]
2 Mail2news (ML -> News)
This is beta test phase. You require perl 5 if you use this function.
mail2news injects mail (distributed in a mailing list) to NetNews.
We use NNTPClient.pm as NNTP engine to implement it. Please see
contrib/mail2news/.
2.1 How to set up mail2news
Install contrib/mail2news/libnntp.pl to the search path of perl
include path or FML installed directory (e.g. fml.pl lib*pl).
2.2 Mail2news configurations
Configure $FML_EXIT_HOOK in config.ph like
Example:
$FML_EXIT_HOOK .= q#;
&use('nntp');
&NntpPost(*Envelope);
#;
Please define following variables:
$NEWS_SERVER
news server to post
$DEFAULT_NEWS_GROUP
default newsgroup to post. It is used if Newsgroup: field does
not exist in the input mail. If this variable is not defined and
Newsgroup: field does not exist, mail2news routine returns an error.
@NEWS_HDR_FIELDS_ORDER
Header fields mail2news use when posted to $NEWS_SERVER.
("from", "newsgroups", "subject", "supersedes", "references")
Please use small characters "subject" if you use the original
fields in a posted article, whereas Capital "Subject" if you
use a Net news article is the same content of a ML article.
%NEWS_FIELD_DEFAULT
Hash of contents of Non-usual fields in the header of a
mail. e.g. Organization?
%NEWS_FIELD_TO_OVERWRITE
Hash of contents of overwritten fields. e.g. Organization?
[PREVIOUS CHAPTER]
[NEXT CHAPTER]