Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Mail Account has empty password, it's still regarded as imap #8

Merged
merged 2 commits into from
Feb 28, 2017

Conversation

filkaris
Copy link

Right now, if a mail account has no password, it fails to be recognized as a valid imap account.

This creates issues if one tries to edit this account later. Since it's not recognized as a imap account, the wizard prompts the user to create a new account, and not edit the existing one.

@@ -397,7 +397,7 @@ public function imapServer($_adminConnection=false, $_timeout=null)
*/
public function is_imap($try_connect=true)
{
if (empty($this->acc_imap_host) || empty($this->acc_imap_username) || empty($this->acc_imap_password))
if (empty($this->acc_imap_host) && empty($this->acc_imap_username) && empty($this->acc_imap_password))
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That goes to far, empty host makes not sense!

if (empty($this->acc_imap_host) || empty($this->acc_imap_username) && empty($this->acc_imap_password))

Thought these kind of changes tend to break working installations ...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants