Re: Body flag doesn't look into attachments in 2.7

Davide Davini <[email protected]> Mon, 23 Jun 2014 16:30:33 +0200
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Sam Varshavchik wrote:
>
> As a workaround in the meantime, you can have maildrop use fgrep:
>
> FOUND=`fgrep -q 999.999.999.999; echo \$?`
>
> Something like that. Might need experimenting, to get the syntax right.

Yep, I did this:
FOUND=`fgrep -m1 999.999.999.999`
if ($FOUND == /999.999.999.999/ && /^To:.*[email protected]/)
{
    <do stuff>
}

So far so good. Thanks a bunch!

Ciao,
Davide
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
iEYEARECAAYFAlOoOgkACgkQYqpk3E5VqXFEHACg8VhBbxh3kRdTBz+nxGJAe1Ad
mqQAnjF20F7+maxrzNAjoF/tm1VauJGH
=cEz9
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems