Skip to content

Commit

Permalink
expand imap folders when prefetching mailboxes only when there is onl…
Browse files Browse the repository at this point in the history
…y one mail server defined; otherwise, keep them closed, so users can open whatever they need
  • Loading branch information
kroky committed Sep 3, 2024
1 parent 41bdc98 commit ce67cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/imap/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,9 @@ var prefetch_imap_folders = function() {
function(res) {
$('#imap_prefetch_ids').val(ids.join(','));
prefetch_imap_folders();
expand_imap_mailbox(res);
if ($('.email_folders ul.folders li').length == 1) {
expand_imap_mailbox(res);
}
},
[],
true
Expand Down

0 comments on commit ce67cfe

Please sign in to comment.