Re: Rule for: Subject contains email address from To: header?
Andrew C Aitchison <[email protected]> Tue, 12 May 2026 10:12:49 +0100 (BST)
| Newsgroups | gmane.mail.spam.spamassassin.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 12 May 2026, Benoit Panizzon wrote:
> MIMEdefang directly loads the Mail::SpamAssassin perl module.
>
> As far as I know, there is exactly one additional config file passed to
> SpamAssassin when invoked from MIMEdefang.
>
> And I can't make out differences, this is what is puzzling me.
>
> If I put rules in /etc/mail/spamassassin/local.cf they are run in both
> cases (as root from command line with spamassassin -D -t) and from
> MIMEdefang.
>
> Any rules in /usr/share/spamassassin (debian default path) are also run
> in both cases.
>
> So what could make the specific rule TO_IN_SUBJ never reporting a hit
> when run from MIMEdefang but perfectly matching when I save that exact
> same email as rfc/822 and then run spamassassin -D -t on that file?
>
> I'm trying to find a way to run spamassassin in debug mode from
> MIMEdefang to maybe get more hints what is going wrong.
How does the message reach MIMEdefang ?
Does it get the Envelope To and From, or just the headers and body ?
--
Andrew C. Aitchison Kendal, UK
[email protected]