Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#517 2.16-5: imap connection open

2.16
closed
5
2012-09-17
2006-12-17
Johan Schurer
No

After adding a new email account (imap), no folders where displayed. After some debugging I found that the IMAP connection opened in the top of folders.inc (before the switch) never was closed before a second open in the function synchronize_folders.

in modules/email/folders.inc (arround line 73):

    $edit_name = isset($_REQUEST['edit_name']) ?
                                    smart_stripslashes($_REQUEST['edit_name']) : '';
  • // Close connection opened above or an IMAP auth error will occur
  • $mail->close();
    //synchronise Group-Office with the IMAP server
    $email->synchronize_folders($account);

    //get all the Group-Office folders as an array
    

Discussion