Jump to content

Get e-mail's arrival date instead of the sending date


janise

Recommended Posts

Hello!

 

Is there a way (and I do hope there is!) to find out the arrival date of an e-mail message in PHP?

 

imap_sort function allows to sort e-mails by both sent and arrival dates: http://www.php.net/manual/en/function.imap-sort.php (see criteria SORTDATE and SORTARRIVAL). And it is suggested that the arrival date or even message number be used to improve the execution speed considerably (which is important in my case).

 

Now, the problem is that the arrival and sent dates do not match in too many cases, so I cannot sort by the arrival date but display the sent date of the message instead: it confuses the users and rises questions. As I need to sort by arrival date (performance considerations), it leaves me with also displaying the arrival dates of the messages rather than the sending dates (at least on the message list). But how can this be accomplished? imap_fetch_overview apparently returns only the sent date.

 

I would be thankful for any ideas on the issue!

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.