Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
670aaff
commit 70c6387
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
= NNTP Mailing List Bridge = | ||
|
||
Data for scripts is stored in either /etc/nntp-maillist/ (if accesible) or else in <install-dir>/etc/ | ||
|
||
newmail.rb is designed to be used as a Mail Deliver Agent, either directly, or piped from an alias, or piped from procmail, like so: | ||
|
||
{{{ | ||
:0w | ||
| /usr/bin/ruby /usr/share/nntp-maillist/newmail.rb nntp://news.example.com/ news.example.com | ||
EXITCODE=$? | ||
}}} | ||
|
||
sendsubs.rb is designed to be used from a cronjob that runs it once for each group for which there are subscribers, running a command like: | ||
|
||
{{{ | ||
for GROUP in /etc/nntp-maillist/*; do | ||
ruby sendsubs.rb nntp://news.example.com/"$GROUP" news.example.com | ||
done | ||
}}} | ||
|
||
== Dependencies == | ||
|
||
* http://github.com/mikel/mail |