procmail
[Top] [All Lists]

Re: Recipe for Proftpd

2014-02-24 15:53:57

On 24 Feb 2014, at 06:56 , Danny <dannydebont(_at_)gmail(_dot_)com> 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


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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