On Tue, 9 Mar 2004, Andy Spiegl wrote: > Back in February Adam Lopresto asked the same question, but as far as I can > see noone responded. He wrote: > > |Using MISSING_DATE as a reference, I can check for an empty subject > | > |header NO_SUBJECT Subject =~ /^UNSET$/ [if-unset: UNSET] > | > |But what is the best way to check for a completely empty body? > > I'm interested in that too and thought this might work, but probably not: > body /^\n*$/s > > Any suggestions? Thanks for any hint or pointer,
The response I got, and I'm sorry for not posting summaries to the list (we really need to set reply-to, or I need to just set the reply-to in my procmailrc and be done with it) is header __TO_HEADER_EXISTS To =~ /./ body __MSG_BODY_EXISTS /./ meta BLANK_MSG (! __TO_HEADER_EXISTS && ! __MSG_BODY_EXISTS) score BLANK_MSG 3.7 so check whether there's any contents, and if not go ahead with your score. -- Adam Lopresto http://cec.wustl.edu/~adam/ Linux isn't perfect, but we're working on it. --Alan Cox
