title: php imap how to get unread mails of the last 7 days using imap_sort?
body: <p>Is it possible to get the unread messages of the last 7 days. ? I have</p>
  
  <pre><code> $result = imap_sort($imap, SORTDATE, 1,"UNSEEN");
  </code></pre>