PHP Classes

Retrieve messages

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Retrieve messages  >  (Un) Subscribe thread alerts  
Subject:Retrieve messages
Summary:Sorting Retrieve messages
Messages:2
Author:Marcin Kozaczuk
Date:2014-07-15 11:09:36
Update:2014-07-15 11:57:36
 

  1. Retrieve messages   Reply   Report abuse  
Picture of Marcin Kozaczuk Marcin Kozaczuk - 2014-07-15 11:09:36
hello

How to get the list of messages sorted after the date descending ?

I greet Martin


  2. Re: Retrieve messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-07-15 11:57:36 - In reply to message 1 from Marcin Kozaczuk
The class retrieves the messages by the order they are returned by the server.

What you can do is to retrieve the messages with headers into an array. Then traverse the array to get the Date: header of each message and put the dates into another array. Then you sort the array by the date values, so you can list them original messages by the order you want.