On Nov 12, 2007, at 1:26 PM, Derick Rethans wrote:

> On Fri, 9 Nov 2007, d3lt49 wrote:
>
>> I have script running by CRON which is responsilble for receiving
>> email from pop|imap server and then inserting this email to my  
>> database.
>>
>> When my server is down, CRON is not working, and no emails are  
>> recieved.
>>
>> And when server gets up, CRON launch my script, but all waiting  
>> emails
>> gets current datetime as receive time. (what is not true, cause  
>> emails
>> come earliel and only because server-down I was unable get them
>> immediately)
>>
>> So my question is - how with ezcMail get SERVER received time ?
>>
>> Currently I'm using 'timestamp' field from ezcMail.
>
> How are you parsing the emails after the CRON script has downloaded
> them?

CRON doesn't download them cause he can be down.

Let's say I get on my inbox email at 2:00 AM. My home server, whih is  
responsible for getting my emails, is down at 1:50 AM and up at 2:30  
AM. Between 1:50AM and 2:30AM no emails are recieved from my inbox.  
CRON start to recieve mails when server is running again at 2:30AM,  
and this one mail (whih arrived at 2:00AM, when server was down) after  
fetch by ezcMail gets current script timestamp (2:30 AM instead of  
1:50 AM).

So my question is how to get real server arrive time of email (2:00AM)  
instead of time when script fetch this mail (2:30AM)

Greetings,
Delta9

-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to