Skip to content

Commit

Permalink
Fix detection of sent folder in IMAP mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 10, 2023
1 parent 70b54d3 commit 0a0e044
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mailbox/mailbox-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,12 @@ sub list_folders
my $sf;
my $sent;
if ($userconfig{'sent_name'}) {
$sf = $userconfig{'sent_name'};
($sent) = grep { lc($_->{'name'}) eq lc($sf) } @rv;
}
else {
($sent) = grep { lc($_->{'name'}) eq 'sent' } @rv;
$sf = "sent";
($sent) = grep { lc($_->{'name'}) eq $sf } @rv;
if (!$sent) {
($sent) = grep { $_->{'name'} =~ /sent/i } @rv;
}
Expand Down

0 comments on commit 0a0e044

Please sign in to comment.