procmail
[Top] [All Lists]

RE: get email address from the body of the email

2007-05-15 06:09:53
Hello 

The email type I am talking about is a bounceback email. Unfortunately,
these emails do not have any common structure and there is no common
place where you can find email address in the email body. Also, some of
these emails are plain text but some are encoded. The only common thing
about these emails is who sends them. They all come from MAILER-DAEMONs

Thanks,

Alex  

-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of 
Professional
Software Engineering
Sent: Monday, May 14, 2007 4:54 PM
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: get email address from the body of the email

At 14:49 2007-05-14 -0400, Alex Kosach wrote:
I am working on new procmail recipe that should find an email address
in 
the body of the email and assign it to a variable.

I would need to pass the value of this variable to a korn shell for the

following database update (Oracle 10g).

Would it be possible to use procmail s native language to get this
email 
address without using grep or egrep commands?

If so, how the recipe might look like?

What does the email look like?  Is it presumed to be plain text, or
encoded?

Without context, you're asking us to take pot shots into the dark.


If there's some form of a field delimiter (say, the email is issued by a

webform someplace - though yea, you'd expect THAT form to do your db
work), 
then you have some "anchor" text to search on.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the
list.


____________________________________________________________
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




____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>