House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / Regular Expressions (RegEx)

Finding name and email in forwarded mailmessage

Author:
Bart Buijze
02/11/2009 08:40 AM

Hi Peter, Thanks very much for your reply. Couple of questions. I'll be using CFPOP to retrieve the mail. I guess that would mean that I could use query.textBody to do the parsing in and that would be the "clean" data to rematch? Can you tell me what you do here? <cfset EmailHeaderData = rematch( '(?si)(^[a-z-]+: ).*?(?=^[a-z-]+: )' , EmailHeaderData )/> Somehow EmailHeaderData is an empty array..., maybe/probably because of the different Input? If I use the TextBody of the message, the first lines of a forwarded message would read something like: _____ From: Bart Buis [mailt0:buis[at ]domain.com] Sent: dinsdag 10 februari 2009 23:16 To: Bart Buijze Subject: SubjectText I guess if this part could be parsed, returning the mailaddress buis[at ]domain.com, name: Bart Buijs and for example the Subject (SubjectText), that would be great. thanks again, Bart


Search regex

February 12, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29