Re: Recipe for Proftpd

LuKreme <[email protected]> Mon, 24 Feb 2014 14:53:34 -0700
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
On 24 Feb 2014, at 06:56 , Danny <[email protected]> wrote:

> Hi Guys,
> 
> I have been trying for a while now to catch Proftpd from incoming mail. However,
> I still miss all of it.
> 
> Here is my recipe
> 
> :0:
> * ^(From|Cc|To|X-Loop|Sender|Bcc|X-BeenThere|Return-Path):.*proftp-user@lists\.sourceforge\.net
> $MAILDIR/incoming/operatimg_systems/linux/networking/ftp/proftp-users 
> 
> Any pointers?

I use this file as an INCLUDERC. It catches just about every list (I would say every list, but I'm not sure of that. It's certainly been a long time since I had a list this didn't match)

$ cat ~kremels/.list_procmail 
# Sean wrote this (any errors are a result of my 
# screwing with it)
# [  ] is space/tab

LISTNAME
:0
* 9876543210^0 ^(List-Post:[  ]*(<mailto:)?|List-Owner:[  ]*(<mailto:)?owner-)\/[-A-Z0-9_+]+
* 9876543210^0 ^(List-Id:.*<|X-Mailing-List:[  ]*)\/[-A-z0-9_+]+
* 9876543210^0 ^(Sender:[  ]*owner-|X-BeenThere:[  ]*|Delivered-To:[  ]*mailing list )\/[-A-Za-z0-9_+]+
* 9876543210^0 ^Sender:.* List"? <(mailto:)?\/[-A-Z0-9_+]+
{ LISTNAME=$MATCH }

# OK, that didn't work, let's try List-Subscribe
:0E
   * ^List-(un)?Subscribe:.*<mailto:\/[-A-Z0-9_+]+-(digest|on|(un)?subscribe)@
   * MATCH ?? ^^\/.+-
   * MATCH ?? ^^\/.+[^-]
   { LISTNAME = $MATCH }

:0
* LISTNAME ?? ()\/[-A-Z0-9_+]+-(users|user)
* MATCH ?? ^^\/.+-
* MATCH ?? ^^\/([^-]|-[^-])+
{
     LISTNAME=$MATCH
}
LOG=$LISTNAME$NL

#Load user-specific rules for known lists
INCLUDERC=$HOME/.list_local

# Some things appear like lists, if they were marked as NO in local, pop back
:0
* LISTNAME ?? NO
{ SWITCHRC }

:0
* ! LISTNAME ?? ^^^^
.$LISTNAME/

## EOF

-- 
In my world there are people in chains and you can ride them like ponies