On 10/17/2011 02:29 PM, Adam Katz wrote:
> I think this would satisfy the original request:
> 
> header   __SUBJ_LACKS_WORDS
>   Subject !~ /(?!^.{0,15}$)(?:^|\s)[a-z]{3,15}(?:\s|$)/
> 
> (I have not checked that in, feel free if you like it.)

Okay, that needed a little work (boo to double-negatives).  Also, I
hadn't noticed the new thread (sorry).

Just checked this in:

header __SUBJ_NOT_SHORT    Subject =~ /^.{16}/
header __SUBJ_HAS_WORDS    Subject =~ /(?:^|\s)[^\W0-9_]{3,15}(?:\s|$)/
meta     SUBJ_LACKS_WORDS  __SUBJ_NOT_SHORT && !__SUBJ_HAS_WORDS &&
!__SUBJECT_ENCODED_B64
describe SUBJ_LACKS_WORDS  Non-short subject lacks words

Even this will hit a fair amount of ham, especially with foreign
languages (I tried to work around this with [^\W0-9_] instead of [a-z]
in the event a locale is in use).

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to