updated layout for webmail
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user