Skip to content

Commit

Permalink
Merge branch 'master' of github.com:webmin/usermin
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Oct 8, 2023
2 parents 483b17c + 84a5eb1 commit 9b55eba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions mailbox/list_folders.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ print &ui_columns_start([ "",
$text{'folders_type'},
$text{'folders_size'},
$text{'folders_action'} ], undef, 0, \@tds);
# var_dump(\@folders);
foreach my $f (@folders) {
my @cols;
my $deletable = 0;
if ($f->{'inbox'} || $f->{'drafts'} || $f->{'spam'}) {
# Inbox, drafs or spam folder which cannot be edited
if ($f->{'inbox'} || $f->{'sent'} || $f->{'drafts'} || $f->{'spam'}) {
# Inbox, drafs, sent or spam folder which cannot be edited
push(@cols, &html_escape($f->{'name'}));
}
elsif ($f->{'type'} == 2) {
Expand Down
4 changes: 2 additions & 2 deletions mailbox/list_ifolders.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ print &ui_columns_start([ "",
foreach my $f (@folders) {
my @cols;
my $deletable = 0;
if ($f->{'inbox'} || $f->{'drafts'} || $f->{'spam'}) {
# Inbox, drafs or spam folder which cannot be edited
if ($f->{'inbox'} || $f->{'sent'} || $f->{'drafts'} || $f->{'spam'}) {
# Inbox, drafs, sent or spam folder which cannot be edited
push(@cols, &html_escape($f->{'name'}));
push(@cols, "IMAP");
push(@cols, &nice_size(&folder_size($f)));
Expand Down

0 comments on commit 9b55eba

Please sign in to comment.