procmail
[Top] [All Lists]

Re^2: running mailing lists off of procmail

1997-07-22 20:42:00
Dave/WebMaster <ddave(_at_)ddave(_dot_)com> 24o53 wrote:
        Mon, 21 Jul 1997 21:59:56 -0700 (PDT):
        Re: running mailing lists off of procmail:

Dave/WebMaster>         :0w
Dave/WebMaster>         * ^(To|Cc):.*$LIST_NAME
Dave/WebMaster>         * $!^X-Loop:.*"$LIST_ADDRESS"
Dave/WebMaster>         {
Dave/WebMaster>         :0fw
Dave/WebMaster>         * ? fgrep -is "$WHOM" "$MEMBER_FILE"
Dave/WebMaster>         | ( formail -zk \
Dave/WebMaster>         -I"Date:" -XDate: \
Dave/WebMaster>         -XFrom: \
Dave/WebMaster>         -XSubject: \
Dave/WebMaster>         -I"To: $LIST_NAME <$LIST_ADDRESS>" -XTo: \
Dave/WebMaster>         -I"Reply-To: $from" -XReply-To: \
Dave/WebMaster>         -I"X-Sender: $LIST_NAME <$LIST_ADDRESS>" -XX-Sender: \
Dave/WebMaster>         -I"Errors-To: <$OWNER_ADDRESS>" -XErrors-To: \
Dave/WebMaster>         -I"Precedence: list" -XPrecedence: \
Dave/WebMaster>         -I"X-Loop: $LIST_ADDRESS" -XX-Loop: \
Dave/WebMaster>         ; cat -s $SIG_FILE )
Dave/WebMaster> 
Dave/WebMaster>                 :0aw
Dave/WebMaster>                 {
Dave/WebMaster>                 :0w
Dave/WebMaster>                 * ? egrep -is "$FROM" "$NOACK_FILE"
Dave/WebMaster>                 ! `fgrep -iv "$FROM" "$MEMBER_FILE"`
Dave/WebMaster> #               :0w
Dave/WebMaster> #               ! `cat -s "$MEMBER_FILE"`
Dave/WebMaster>                 }

Dave, thank you for uploading nice recipe.
BTW, could you or anyone explain following points to me?

(1) What -X's such as -XTo: do?
   I understand -X's preserve the field name when extracting,
   but what would be the result of specifying it
   after adding new header with -I?

(2) Reply-To: $from
    Does this header sort of encourage discussions outside of the list?
    Or will cc: header to the list automatically created?

(3) What's in $NOACK_FILE?
    Is it a list of members who do no want own mails delivered to
    themselves and just that an else-if routine is missing?

I know a simple expriment would explain 
but I appreciate for saving energy of mine and mankind in advance:->
_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

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