|
Mailing Lists
|
Home / Groups / Regular Expressions (RegEx)
Finding name and email in forwarded mailmessageHi 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 |
February 12, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||