mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-05 08:16:22 +00:00
The reader toolbar tests now find the quick reply box by either
placeholder: since the box names its recipients ("quick_reply_to"), the
old placeholder assertion failed and the Spam test passed vacuously.
9 lines
351 B
TypeScript
9 lines
351 B
TypeScript
/**
|
|
* Whether "Report spam" makes sense for mail in a folder of this role. Not on
|
|
* your own outgoing mail (Sent, Drafts, Scheduled), and not in Trash, where
|
|
* the mail is already thrown out.
|
|
*/
|
|
export function spamApplicableIn(role: string | null | undefined): boolean {
|
|
return !["sent", "drafts", "scheduled", "trash"].includes(role || "");
|
|
}
|