Skip to content

Commit

Permalink
Fix Sent folder to be non-editable
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Sep 15, 2023
1 parent 0a0e044 commit d89dea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mailbox/list_folders.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,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->{'drafts'} || $f->{'sent'} || $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->{'drafts'} || $f->{'sent'} || $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 d89dea7

Please sign in to comment.