Change recicipient delimiter to +

pull/7/head
a11exandru 2019-12-16 20:21:42 +02:00
rodzic 4ef1ac90c3
commit c3adf6018a
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -70,7 +70,7 @@ if ($emails)
$overview = imap_headerinfo($inbox, $emails[$j]);
$toAddress = strrev($overview->toaddress);
if(preg_match('/@([^.]+)/', $toAddress, $m)) {
if(preg_match('/@([^+]+)/', $toAddress, $m)) {
global $boardName;
$boardName = strrev($m[1]);
}
@ -96,5 +96,10 @@ if ($emails)
}
}
// function deleteOldMessages() {
// $emails = imap_search($inbox, "SEEN");
// }
imap_close($inbox);
?>