Penghui Wang wrote:
>
>>

> I have tested via the sendmail command:
>
> #sendmail wangph < none-subject
> #sendmail wangph < have-subject
>
> #cat none-subject
> This is the message body.
>
> #cat have-subject
> Subject: This is the message subject
>
> This is the message body.
>
> Both of them marked with MISSING_SUBJECT.
>
> So, that's not the condition you have mentained. But thanks any way.
>


What happens if you leave sendmail out, and feed them directly to
spamassassin?

spamassassin -t < none-subject

spamassassin -t < have-subject


I'm suspect sendmail choked on the absurdly bad input and decided that
your subject was really body text, and inserted a blank line before it
and after the headers it added to fix the broken message...