I'm getting a mess of these bogus warnings in my log file, and I’d like to suppress them without suppressing legitimate messages:
PHP Notice: Unknown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0
(I’m connecting to an IMAP service that is only listening to localhost on a server with no third-party users.)
One thing you can do is use the imap_errors and imap_alerts functions, place this code before your imap_close.
imap_errors();
imap_alerts();
What these functions do is return all errors and alerts that have occured and then flushes them. If you do not call these functions they are issued as notices when imap_close() is called, or the page dies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With