Skip to content

Commit

Permalink
Spam folder might be named .spam
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jun 17, 2024
1 parent 12743db commit cff31c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailbox/mailbox-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ sub list_folders
if ($file) {
if ($config{'mail_system'} == 4) {
# In IMAP mode, the first folder named spam is marked
my ($sf) = grep { lc($_->{'name'}) eq 'spam' } @rv;
my ($sf) = grep { $_->{'name'} =~ /^\.?spam$/i } @rv;
if ($sf) {
$sf->{'spam'} = 1;
}
Expand Down

0 comments on commit cff31c2

Please sign in to comment.