procmail
[Top] [All Lists]

Re: A nice spam service

1997-07-29 14:16:00
Timothy J Luoma <luomat(_at_)peak(_dot_)org> wrote:
I think the suggestion (by Eli?) to put a header in there about whether the  
person is a first-time poster or not is a good one.... in fact I've been  
thinking about grepping addresses out of the 7k message I have here and  
starting my own local list.  New posters would be sent to an 'air-lock'  
mailbox where I could check it before it gets to be in the real mailbox....

Not quite what I suggested. I wanted the header for unsubscribed posters,
not first-time posters.

Now that I have had some time, it looks like the rc.submit file of
SmartList could be modified to do this by adding

  :0
  * 9876543210^0 foreign_submit ?? tagged
  * 2^0 ? formail -X"From " -xFrom: -xReply-To: -xSender: -xResent-From: \
           -xResent-Reply-To: -xResent-Sender: -xReturn-Path: | \
           multigram -b1 -m -l$submit_threshold -L$domain \
            -x$listaddr -x$listreq accept accept2
  {
    # is a subcriber: do nothing
  }
  :0Efhw
  | formail -A"X-List-Notice: sender is not a subscriber to the list"

immediately before the existing test on foreign_submit. Doubtlessly
not the mose efficient way, but I have some confidence it would work
and it is a lot less mucking with the file than arranging for a
single test of that "formail ... | multigram ..." condition.

Elijah
------
Please do not CC me when replying to the list.  It is not my responsibility to
prove to you my mail is not spam, if mail to you bounces it will not be resent.

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