This patch adds predefined imap server section in the pontomail administration settings. When the predefined server is enabled, pontomail connects to this imap server using drupal user's username and password.

This feature is useful if you have the same authentication backend for the drupal site and for the imap server, for example LDAP. Then user don't have to configure his email account settings in drupal and pontomail automatically authenticates with the imap server using drupal's credentials. To achieve that user's password is stored in drupal session (to authenticate with imap we need a clear text password).

It also has a checkbox in admin settings letting to choose if we want to let users to add other imap servers or no.

CommentFileSizeAuthor
#2 p1.diff13.39 KBmiglius
p.diff14.8 KBmiglius

Comments

sime’s picture

I would like to see some sort of default account. This patch made my mailboxes disappear in the menu, so I'm not quite certain yet whether we are after the same thing.

It also has a checkbox in admin settings letting to choose if we want to let users to add other imap servers or no.

Why do you need this checkbox when there we can use user_access('setup email')?

miglius’s picture

StatusFileSize
new13.39 KB

True, this checkbox is redundant. Thanks, for pointing it out. I have removed it. Now applying the patch shouldn't change mailboxes in the menu.

miglius’s picture

Is it possible to submit this patch to CVS?

Souvent22’s picture

Status: Needs review » Fixed

Commited. THanks. Sorry for the dealy.

Anonymous’s picture

Status: Fixed » Closed (fixed)