Can I create a rule based on a text in the mail?

digiweb

Member
Mar 6, 2022
70
3
13
42
Can I create a rule based on a text in the mail?
For example: If the content of the mail message says "mailbox storage is almost full", I want to quarantine it.

Sample spam mail is attached.
 

Attachments

Use spamassasin custom config.

Code:
body           CLICK_BAIT      /\bclick here\b/i
describe       CLICK_BAIT      Possible click bait
score          CLICK_BAIT      1.0
 
Where exactly should I write this code?
can you give the file path?

Is it not possible for me to do this through the administration panel?