procmail
[Top] [All Lists]

Re: Mailing List Issues

1997-09-03 21:54:26
        Author:         "Alan V. Shackelford" 
<alan_s(_at_)shaknet(_dot_)clark(_dot_)net>
        Original-Date:  Wed, 3 Sep 1997 18:50:20 -0400 (EDT)
        Message-ID:      
<Pine(_dot_)LNX(_dot_)3(_dot_)96(_dot_)970903182604(_dot_)1518A-100000(_at_)shaknet(_dot_)shaknet(_dot_)priv>

Fellow Procmailers:
I have an interesting problem. My ISP will not allow Majordomo or
Listserv for normal customers, so I have installed a small procmail script
that simply re-sends mails that come from a certain host to all the
addresses in a file.

My guess is they wouldn't approve of their either, but...

1). Messages handled by the list should be numbered sequentially
as they are processed. Number should be added at the
beginning of the Subject: line .

Not sure how to handle this one, but....


2). Posting should be limited to members of the list.

FROM=`formail -rtzxTo:`

* ? fgrep -siw "$FROM" ${HOME}/.memberlist

assuming that the valid members are listed in the file ${HOME}/.memberlist

3). The body and header of each message should be exported to a
file in a certain directory (owned by the list owner), and
the file should be named with the number from 1)., above.

This might work...

:0c
| cat - > ${HOME}/archive/$NUMBER

assuming that $NUMBER is the variable

TjL


<Prev in Thread] Current Thread [Next in Thread>