Hi
I want to grab a url in body of mail and pass it to a bin/bash script
as example in FAQ
SUBJECT=`formail -zxSubject:`
:0w:
| our-script -s "$SUBJECT" >>output
:0w:
* ^Subject:[ ]*\/[^ ].*
| our-script -s "$MATCH" >>output
But my mail contains url´s (http://blah) are in mailbody
I cant figure out how to grab first http://blah and run my script
What I try to achieve is that I got mail from an sales site with links to items
for sale. I have a script that vistit the website and grab som data (prize,
model and so)
myscript "$MATCH" >> file
Any Ideas?
/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