PHP IMAP до даты субъекта
$emails = imap_search($inbox,'SUBJECT "Undelivered Mail Returned to Sender" SINCE "'.$dateMonth.'" BEFORE "'.$date.'"');
Erkan
$emails = imap_search($inbox,'SUBJECT "Undelivered Mail Returned to Sender" SINCE "'.$dateMonth.'" BEFORE "'.$date.'"');