I am attempting to write a php script the will read the email box of my newsletter's account for any unsubscribe and rejected. I currently do this by hand but as the list grows, I want to automate it.
I have the Regular Expression to extract the email address from the email header.
eregi( "From\: ([^\n\"]+)", $qryHeaders, $email);
This works if the From line is:
but it doesn't work for:
From: John Doe firstname.lastname@example.org
From: John Doe <email@example.com>