On page pontomail/settings I get the following if no mailbox is set up:
CVS-version
* warning: imap_open(): Couldn't open stream {:/novalidate-cert}* in /var/www/http/modules/pontomail/IMAPService.inc on line 43.
* Unable to connect to this server.
Can't open mailbox {:/novalidate-cert}*: invalid remote specification
4.7-version
* warning: imap_open(): Couldn't open stream {:/novalidate-cert}* in /var/www/http/modules/pontomail/IMAPService.inc on line 44.
Why does it try to connect, if no servers are specified?
Does it have to connect at all on the settings page?
vg
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | pontomail.module-diff-2006-08-20-19-21-06.patch | 636 bytes | sanduhrs |
Comments
Comment #1
sanduhrsThe message keeps the same after setting up the first mailbox.
Apparently it is trying to connect to an unspecified server, whether or not mailboxes are set up.
Comment #2
mikealpha commentedI'm getting the exact same issue. I'm not familiar enough with IMAP to modify the IMAPService.inc in order to eliminate this issue.
Comment #3
sanduhrsAllright, I think I got it.
See patch.
Comment #4
sanduhrsSetting status ;)
Comment #5
Souvent22 commentedHm,
I'm thinking perhaps this check should be in the _pontomail_get_imap_obj function.
I placed a check in _pontomail_get_imap_obj that if it recieves and emapy $sid, it returns a bare imap object.
I did this because if you do not great the object, then you will get errors of "undefined function" else where. I'm going ot take a look also, and see if there is a better way to control this. Also, this function is the only way to connect to and recieve an imap object, so this will also hand and control erros from other functions interacting with the imap object.
Hm, if there are no servers setup, perhaps I just return a form there, and disregard the rest of the code...i'll take a look at it.
Comment #6
Souvent22 commentedChanging status. I believe this should resolve this issue.
Comment #7
Souvent22 commentedComment #8
Souvent22 commentedComment #9
(not verified) commented