![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | Hi, I'm emailing out to my opt-in list, and getting quite a few bounces. Rather than run a 3rd party application, I just wrote a script myself. Now I'm trying to get my server to log into my POP3 box, collect the bounced emails and remove them from the database. Okay, I've done all of it, up to stripping the email address from the mail delivery failure message. I guess I need a regular expression to go through the text of the reply, so I can then remove from the database. However, what command can I use to strip all emails and put into an array? I want to ignore the rest of the text. Thanks Nick |
|
| | #2 (permalink) |
| Civilians | On 2004-12-09, elyob <newsprofile@gmail.com> wrote: > > Hi, > > I'm emailing out to my opt-in list, and getting quite a few bounces. Rather > than run a 3rd party application, I just wrote a script myself. Now I'm > trying to get my server to log into my POP3 box, collect the bounced emails > and remove them from the database. > > Okay, I've done all of it, up to stripping the email address from the mail > delivery failure message. I guess I need a regular expression to go through > the text of the reply, so I can then remove from the database. However, what > command can I use to strip all emails and put into an array? I want to > ignore the rest of the text. > > Thanks > > Nick > > Won't work that way. Usually, failed returned messages will have a number of email addies included. You might consider searching for the TO: address in the orginal email which is usually attached to the failure notification. However, that said, this is a question best suited for a php usenet group. Maybe alt.php and there's another in the comp group...I think. ken |
|
| | #3 (permalink) |
| Civilians | "Kenneth" <kennneth@nowhere.special> wrote in message news:10rh8p16up6r565@corp.supernews.com... > On 2004-12-09, elyob <newsprofile@gmail.com> wrote: > > Won't work that way. Usually, failed returned messages will have a number > of > email addies included. You might consider searching for the TO: address in > the orginal email which is usually attached to the failure notification. > > However, that said, this is a question best suited for a php usenet group. > > Maybe alt.php and there's another in the comp group...I think. > > ken Thanks Ken, hmm, probably why I was getting stuck. I don't mind pulling out all the email addresses, at least for testing, so I can see what comes out. In one message I am testing with, it has 9 email addresses. 5 are the one I want to remove and the other duplicates are mine and another in the text, which I will ignore. I guess a php group would be best, but I prefer this one generally ![]() Thanks Nick |
|
| | #4 (permalink) |
| Civilians | On 2004-12-09, elyob <newsprofile@gmail.com> wrote: > > "Kenneth" <kennneth@nowhere.special> wrote in message > news:10rh8p16up6r565@corp.supernews.com... >> On 2004-12-09, elyob <newsprofile@gmail.com> wrote: >> >> Won't work that way. Usually, failed returned messages will have a number >> of >> email addies included. You might consider searching for the TO: address in >> the orginal email which is usually attached to the failure notification. >> >> However, that said, this is a question best suited for a php usenet group. >> >> Maybe alt.php and there's another in the comp group...I think. >> >> ken > > Thanks Ken, hmm, probably why I was getting stuck. I don't mind pulling out > all the email addresses, at least for testing, so I can see what comes out. > In one message I am testing with, it has 9 email addresses. 5 are the one I > want to remove and the other duplicates are mine and another in the text, > which I will ignore. Assuming your email is kept in one file, then just look for the to: field. The email addie should be either your email addie, which you can exclude or the email of a mailing list memeber that you will want to delete. $fp=file("yourmailbox"); for ($x=i,$x <count($fp); $x++){ if(strcasecomp(substr($fp[$i],0,3),"TO:")==0) then extract the email and see if its yours, if not then it belongs to someone to delete. Keep in mind email addies come in several flavors, noone@nowhere.special ken <noone@nowhere.special> } Try it might work for your needs ken |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [News Feed] Byrd Replies to GOP Ad With Own Spot (AP) | Forum Mouse | News Articles | 0 | 08-03-2005 22:00 |
| Advice on ordinance safety (UK replies only please) | Kitten | Hobbies | 0 | 05-08-2005 12:00 |
| How do I send and receive email from a public folder email addres. | =?Utf-8?B?TWlrZQ==?= | Microsoft Applications | 1 | 12-07-2004 16:00 |
| [MV] Changed email, how do I subscribe to my new email andunsubscribe from my old??? | Jeffrey Cerniglia | MV List | 0 | 11-13-2004 14:50 |
| Excell VB error message replies to advice | Lee Tideswell | Microsoft Applications | 1 | 06-16-2004 00:04 |
![]() | ![]() | ![]() |