updated layout for webmail

This commit is contained in:
2026-08-15 16:31:27 +01:00
parent f283c90f11
commit 6f0c305367
35 changed files with 2660 additions and 219 deletions
+3 -3
View File
@@ -35,10 +35,10 @@ func (s *Store) ApplyRules(mailboxID int64, headers map[string]string) (FilterAc
case "move_to_folder":
return FilterAction{Folder: r.ActionValue}, nil
case "mark_as_spam":
// Reuses the same Spam folder score-based quarantine already delivers
// Reuses the same Junk folder score-based quarantine already delivers
// into (see smtpserver/session.go) — from the mailbox owner's
// perspective it's the same "goes to Spam" outcome either way.
return FilterAction{Folder: "Spam"}, nil
// perspective it's the same "goes to Junk" outcome either way.
return FilterAction{Folder: "Junk"}, nil
case "delete":
return FilterAction{Drop: true}, nil
case "mark_read":
+1 -1
View File
@@ -79,7 +79,7 @@ func TestApplyRulesMarkAsSpam(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if action.Folder != "Spam" {
if action.Folder != "Junk" {
t.Fatalf("expected mark_as_spam to route into the Spam folder, got %+v", action)
}
}