Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 12-09-2004, 16:00   #1 (permalink)
elyob
Civilians

 
Default PHP email replies


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


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 12-09-2004, 16:00   #2 (permalink)
Kenneth
Civilians

 
Default Re: PHP email replies

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-09-2004, 16:00   #3 (permalink)
elyob
Civilians

 
Default Re: PHP email replies


"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


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-09-2004, 19:00   #4 (permalink)
Kenneth
Civilians

 
Default Re: PHP email replies

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


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 09:47.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.73027 seconds with 19 queries