kopia lustrzana https://github.com/newroco/mail2deck
Change recicipient delimiter to +
rodzic
4ef1ac90c3
commit
c3adf6018a
|
@ -70,7 +70,7 @@ if ($emails)
|
||||||
|
|
||||||
$overview = imap_headerinfo($inbox, $emails[$j]);
|
$overview = imap_headerinfo($inbox, $emails[$j]);
|
||||||
$toAddress = strrev($overview->toaddress);
|
$toAddress = strrev($overview->toaddress);
|
||||||
if(preg_match('/@([^.]+)/', $toAddress, $m)) {
|
if(preg_match('/@([^+]+)/', $toAddress, $m)) {
|
||||||
global $boardName;
|
global $boardName;
|
||||||
$boardName = strrev($m[1]);
|
$boardName = strrev($m[1]);
|
||||||
}
|
}
|
||||||
|
@ -96,5 +96,10 @@ if ($emails)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// function deleteOldMessages() {
|
||||||
|
// $emails = imap_search($inbox, "SEEN");
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
imap_close($inbox);
|
imap_close($inbox);
|
||||||
?>
|
?>
|
Ładowanie…
Reference in New Issue