- Fixed sorting problem is get_squirrel_sort() function (#1115403).
- Add "Show Only Subscribed Folders" option to allow users to show all
folders instead of only subscribed ones (#1105756, #1105250).
+ - Add workaround for Mercury/32 servers that will subscribe again to
+ an already subscribed folder (#1115409).
Version 1.5.0
--------------------
if ( !sqimap_mailbox_exists($imapConnection, $folder)) {
sqimap_mailbox_create($imapConnection, $folder, '');
} else {
- //if (!sqimap_mailbox_is_subscribed($imapConnection, $folder)) {
- // check for subscription is useless and expensive just
- // surpress the NO response
- sqimap_subscribe($imapConnection, $folder, false);
+ // check for subscription is useless and expensive, just
+ // surpress the NO response. Unless we're on Mecury, which
+ // will just subscribe a folder again if it's already
+ // subscribed.
+ if ( strtolower($imap_server_type) != 'mercury32' ||
+ !sqimap_mailbox_is_subscribed($imapConnection, $folder) ) {
+ sqimap_subscribe($imapConnection, $folder, false);
+ }
}
}
}