* warning: imap_open(): Couldn't open stream {:110/pop3/notls}INBOX in /var/aegir/platforms/archimedes/profiles/archimedes_server_profile/modules/custom/archimedes_server/archimedes_server.mail.inc on line 12.
* warning: imap_num_msg() expects parameter 1 to be resource, boolean given in /var/aegir/platforms/archimedes/profiles/archimedes_server_profile/modules/custom/archimedes_server/archimedes_server.mail.inc on line 33.
* warning: imap_expunge() expects parameter 1 to be resource, boolean given in /var/aegir/platforms/archimedes/profiles/archimedes_server_profile/modules/custom/archimedes_server/archimedes_server.mail.inc on line 91.
* warning: imap_close() expects parameter 1 to be resource, boolean given in /var/aegir/platforms/archimedes/profiles/archimedes_server_profile/modules/custom/archimedes_server/archimedes_server.mail.inc on line 93.

Comments

xurizaemon’s picture

Project: Archimedes Server Profile ☒ » Archimedes Server
Status: Active » Needs review
StatusFileSize
new975 bytes

If the POP3 account is not configured, three PHP errors are logged as the Archimedes server attempts to get email without connection details.

Added a check to see if the username / password were both blank in archimedes_server_check_inbox(). Returns early if not configured.

xurizaemon’s picture

I don't know if we really need to watchdog a note about this every time. It could get boring seeing this appear for every cron run.

josh waihi’s picture

I've commited it. For now, its nice to show logging that the intended behaviour didn't work.

Thanks!

xurizaemon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.