| 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
|