Mailboxes\n"; $folders = imap_listmailbox($mbox, "{localhost:110/pop3/notls}INBOX", "*"); // echo "

Headers in INBOX

\n"; $headers = imap_headers($mbox) or die ("Failed with error: ".imap_last_error()); $counter = 0; for ($i=0; $i-1) { $dropTheMessage = true; for ($y=0; $y-1) { database("UPDATE subscriber SET sub_dUit='" .date(YmdHis) ."' WHERE sub_cAdr ='" .trim(htmlentities($arrBody[$y])) ."'",0); database("UPDATE mailing SET mai_dRea='" .date(YmdHis) ."' WHERE mai_cAdr ='" .trim(htmlentities($arrBody[$y])) ."'",0); $counter++; } } } } } echo "Er zijn " .$counter ." mail adressen verwijderd.
\n"; $counter = 0; for ($i=0; $i\n"; imap_expunge($mbox); imap_close($mbox); echo "\n"; ?>