Hi @all,

I want to create a SpamAssassin rule that checks if the subject line of an email contains the local part of the recipient's email address (the part before the @ symbol). For example, if the recipient's email address is |i...@example.com|, I want to check if the subject contains the phrase "info lorem ipsum". If the recipient's email address is |foo...@example.com|, I want to check if the subject contains the phrase "foobar lorem ipsum". The rule should be general and adaptable to different local parts of email addresses.

*Requirements:*

1. Extract the local part of the recipient's email address from the
   |To| header.
2. Use the extracted local part to check if it is present in the
   |Subject| header.
3. The rule should be written in a way that works for any local part of
   the email address, not just a specific one.

Thank you very much for your suggestions

Reply via email to