UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rating: Thread Rating: 15 votes, 5.00 average. Display Modes
Old 21st January 2003, 02:13 PM   #21 (permalink)
ack
Senior Member
 
Join Date: Dec 2002
Posts: 101
Re:script to check for new mail

My phone just recieves the mail as SMS messages (no xml formatting :'( ) , and if the e-mail is over 100 characters or so it breaks it up into multiple SMS messages. Because of this, one e-mail can easily equal 5 or 6 SMS messages when I just forward them through.

Thank you both. You have really helped me out a lot. I definately have enough to play with now!

ack is offline   Reply With Quote
Old 18th February 2003, 11:07 PM   #22 (permalink)
dwilson
Registered User
 
Join Date: Nov 2002
Location: Kansas City MO
Posts: 549
Send a message via ICQ to dwilson Send a message via AIM to dwilson Send a message via Yahoo to dwilson
Re:script to check for new mail

I didn't notice this until now but pulling mail information from the header in this fasion does not set the $header->Recent and $header->Unseen flags. This means that every time your job executes this script it will pull in the new mail that you saw 10 minutes ago (just an example) plus the new mail. Eventually you will be emailing yourself mail for the entire day.

You may want to modify the above script to set those flags to be read and seen. Not sure what the codes are for that off the top of my head. I think it's spaces.

****a little later******
I just found out that if you actually pull in the body it should be marked as read. However, according to my reference you must pull in the body for it to update the flags. THe header alone won't do it.
__________________
Derik Wilson
dwilson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


All times are GMT. The time now is 07:55 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309