procmail
[Top] [All Lists]

RE: How do I extract an e-mail address from a message body and store it to a list to allow filter bypass?

2003-05-21 03:02:46
True -- however, the 'trigger' e-mail that I receive in this fashion is
very formatted, and shouldn't contain anything other than the e-mail
address.  I will need to look into a long-term solution, but this kluge
at least gets me started with avoiding needless bounces and mis-pitched
mail.  I know that there's a way to strip out certain special characters
using sed, but it's been a long time since I've used it and will need to
review the lingo before trying it.

Cheers,

Bard Polley 
Polley Computer Solutions
http://www.bardwareonline.com
sales(_at_)bardwareonline(_dot_)com
 


On Tuesday, May 20, 2003, at 18:24 Canada/Mountain, Bardwareonline 
wrote:
Ross,

Thanks -- you gave me all the information I needed.  Here's what I
went
with (I left out the [^       ] because there's no white space in
between the mailto: and the address.  Instead, I used .*, because 
there should be nothing else after the mailto: except for the e-mail 
address:

this will break as son as you get something like this:

Buyer: <mailto:Fred(_at_)company(_dot_)com>

or, say Fred has requested than any mail about your toner sales be sent 
with the subject "TONER SALES" then your mailto might look like this:

Buyer: <mailto:fred(_at_)company(_dot_)com?Subject=TONER%20SALES>

I would try to deal with at least the FIRST example above, since that 
sort of mailto is quite common

-- 
"In the beginning the Universe was created. This has made a lot of 
people very angry and been widely regarded as a bad move." --Douglas 
Adams


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail