Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Imap: Threaded Email Conversations
    text
    copied!<p>I'm new to IMAP functions in PHP and I am tasked to build some ticketing site.<br> I get the basic email fetching part but I kinda stumbled on the "Threaded Conversation View" hurdle.</p> <p>I need to be able to present the emails (both sent and received) in a threaded conversation view much like a smartphone's SMS facility.</p> <p>Most of the algorithms I found all just dealt with threaded inbox excluding the sent items. It would be nice if ya'll can help me with this.</p> <p>My final target result would be, initially, an array of "UNREAD" mails grouped per subject each containing a trail of exchanged emails belonging to that subject.</p> <p>Something like this:</p> <pre><code>array ( [0] =&gt; array ( [0] =&gt; array ( 'date' =&gt; 'some date', 'sender' =&gt; 'some sender', 'message' =&gt; 'yes i am', 'subject' =&gt; 'Re: Fubar', 'status' =&gt; 'unread' ), [1] =&gt; array ( 'date' =&gt; 'some date', 'sender' =&gt; 'some sender', 'message' =&gt; 'are you from america?', 'subject' =&gt; 'Re: Fubar', 'status' =&gt; 'read' [2] =&gt; array ( 'date' =&gt; 'some date', 'sender' =&gt; 'some sender', 'message' =&gt; 'hello', 'subject' =&gt; 'Re: Fubar', 'status' =&gt; 'read' [3] =&gt; array ( 'date' =&gt; 'some date', 'sender' =&gt; 'some sender', 'message' =&gt; 'hi', 'subject' =&gt; 'Fubar', 'status' =&gt; 'read' ), [1] =&gt; array ( [0] =&gt; array ( 'date' =&gt; 'some date', 'sender' =&gt; 'some sender', 'message' =&gt; 'hell yeah!', 'subject' =&gt; 'Re: Skills', 'status' =&gt; 'unread' ), [1] =&gt; array ( 'date' =&gt; 'some date', 'sender' =&gt; 'some sender', 'message' =&gt; 'are you good enough?', 'subject' =&gt; 'Skills', 'status' =&gt; 'read' ) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload