Accounts do not work
| Project: | Pontomail Webmail Client |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Souvent22@drupal.org |
| Status: | active |
Jump to:
This module is the reason I decided to use Drupal, but I'm afraid I can't get it working.
It seemed to install OK but when I come to add an account I first get this message:
query: INSERT INTO pontomail_servers (uid, server_name, server_address, server_port, server_type, user, password, secure, con_ssl, no_tls, validate_cert) VALUES(1, 'Username', 'mail.myurl.co.uk', '143', 'IMAP', 'mail@myurl.co.uk', 'password', '0', '0', '0', '0')
error:
..and I then have to use the back button to get back to the 'my account/email accounts' page. The email account I just created is listed, but above this there is this error message:
warning: Cannot modify header information - headers already sent by (output started at /drupal/includes/database.mysql.inc:114) in /drupal/includes/common.inc on line 267.
...so then I click 'edit' to edit the account, and I get this error message:
warning: imap_open() [function.imap-open]: Couldn't open stream {85.13.195.210:143/notls/novalidate-cert} in /drupal/modules/pontomail/IMAPService.inc on line 51.
The email account Username was disabled because there was an error connecting to it. Please check your settings.
warning: imap_getmailboxes(): supplied argument is not a valid imap resource in /drupal/modules/pontomail/IMAPService.inc on line 93.
warning: imap_getsubscribed(): supplied argument is not a valid imap resource in /drupal/modules/pontomail/IMAPService.inc on line 110.
warning: Invalid argument supplied for foreach() in /drupal/modules/pontomail/pontomail.module on line 1152.
warning: Invalid argument supplied for foreach() in /drupal/modules/pontomail/pontomail.module on line 1212.
warning: Invalid argument supplied for foreach() in /drupal/modules/pontomail/pontomail.module on line 1247.
warning: Invalid argument supplied for foreach() in /drupal/includes/form.inc on line 671.
Drupal is not the first content management I've used, the reason I came to Drupal is because I could never get a webmail module working on any of the others. Please don't let it be the same with Drupal!
I'm using Drupal 4.7.7, MySQL 4.1.22-standard, and PHP 4.4.6

#1
I'll take a look, I know what it is, it's a table issue. I'll release a patch this week.
#2
You sir, are a gentleman.
#3
Hello,
I am getting exactly the same error:
query: INSERT INTO pontomail_servers (uid, server_name, server_address, server_port, server_type, user, password, secure, con_ssl, no_tls, validate_cert) VALUES(1, 'Username', 'mail.myurl.co.uk', '143', 'IMAP', 'mail@myurl.co.uk', 'password', '0', '0', '0', '0')
error:
Any news on this?
#4
There are two functions in the pontomail.module file that are calling debug versions rather than production versions. On lines 1011 and 1074, change the function being called from "db_queryd" to "db_query", and that message will go away (along with the side effects).