LuKreme wrote:
On 11-Jan-2008, at 23:58, Markus Edholm wrote:
I cant figure out how to grab first http://blah and run my script
something like this should match the first http in your body, I think
(untested)
:0
* B ?? http://\/[^ ]+
{ URL="http://$MATCH" }
.procmailrc:
:0
* B ?? http://\/[^ ]+
{ URL="http://$MATCH" }
|/root/scripts/dump.sh "$URL" >> /home/markus/dump.txt
Log:
procmail: Skipped "|/root/scripts/dump_annons.sh "$URL" > /home/markus/dump.txt"
From markus(_dot_)edholm(_at_)fro(_dot_)se Sat Jan 12 16:07:47 2008
Subject: (no subject)
Folder: /home/markus/Maildir/new/1200150467.12439_0.surrver 2439
Hi, tnx fer quick reply. then I did not see it until resent
No that will not work, am I doing some else wrong?
my text mail only contained an single url
/Markus
signature.asc
Description: OpenPGP digital signature
____________________________________________________________
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