13 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] conditionally bouncin...
FromSent OnAttachments
Payal RathodJul 1, 2005 2:12 am 
Tony EarnshawJul 1, 2005 3:58 am 
Payal RathodJul 1, 2005 4:41 am 
Payal RathodJul 1, 2005 5:07 am 
Tony EarnshawJul 1, 2005 5:12 am 
Sam VarshavchikJul 1, 2005 5:53 am 
Payal RathodJul 1, 2005 6:03 am 
Jasper SlitsJul 1, 2005 6:19 am 
Tony EarnshawJul 1, 2005 6:35 am 
Payal RathodJul 1, 2005 9:17 am 
moussJul 1, 2005 5:33 pm 
moussJul 1, 2005 5:33 pm 
moussJul 1, 2005 5:45 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] conditionally bouncing a mailActions...
From:Tony Earnshaw (ton@billy.demon.nl)
Date:Jul 1, 2005 6:35:50 am
List:net.sourceforge.lists.courier-maildrop

fre, 01.07.2005 kl. 14.05 skrev Payal Rathod:

[...]

I am not able to understand this pattern matching properly especially the ! part. In my rc file I have,

if ( /^From: *.*\@!.*/ && lookup( $MATCH2, "/home/rp/badto.dat" ) && $SIZE >
6000000) { to /dev/null }

The ! bit is to split up the regexp into MATCH subdivisions (MATCH, MATCH2, MATCH3 etc.) It says so in maildropfilter.html, search for "!".

Use (notice I've changed MATCH2 to MATCH?):

if(/^From: .+@.+$/ && lookup( $MATCH, "/home/rp/badto.dat" )) { to /dev/null }

to begin with. Try the "$SIZE bit later, when the first bit works.

$ cat badto.dat @yahoo.de mdk @mdk.local mdk.local

cat badto.dat (should be badfrom.dat, since things should be kepr logical, but anyhow ...)

@yahoo.de @mdk.local @example.com

Still tail -f .maildroplog shows, Date: Fri Jul 1 17:29:43 2005 From: rp@mdk.local Subj: File: /home/rp/Maildir/

Can someone point on what is wrong exactly?

Test it with 'maildrop -V3 < testmail.eml' from the command line, then you'll see things happening realtime.

--Tonni