On Mon, 01 Dec 2003 14:02:35 -0500 Matt Kettler <[EMAIL PROTECTED]> wrote:
> At 04:59 AM 12/1/2003, Korchmenuk Nickolay wrote: > >I want mark e-mails with empty body as spam. > >Ho can I do this? > > That would be pretty difficult to do in SA using a rule. > > The big problem is that SA's "body" ruletype also includes the subject > line text (this avoids massive duplication of rules). Would it be possible to detect the existence or otherwise of a message body by treating the whole message as a single line and matching non-whitespace characters after the subject line's end? something like /Subject:[ \S]+\n\S/s or maybe by counting the number of \n in the body? I don't have time to test now, but maybe it's worth a try. -- Dave ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk