For something like 2 years, I have received 2 auto-generated work emails each and every day. I have been unable to auto-filter them because the emails have no subject / empty subject / missing subject. Not that I’ve spent much time on it, but over that period I have been unable to figure out how to have the filter recognize the lack of a subject. Today I finally cracked the code.
In SquirrelMail, the filtering options are these:
- contains
- does not contain
- is
- is not
- matches wildcard
- does not match wildcard
- > is greater than
- >= is greater than or equal to
- > is lower than
- >= is lower than or equal to
- = is equal to
- != is not equal to
- matches regexp
- does not match regexp
In the past I had attempted to use “contains” and then leave the field empty. No dice. Same thing for “is”. Specifying that the subject “is” “null” or “is” “empty” didn’t work. Nor did saying the subject “is” “(no subject)” (as the subject is displayed in the folder view) nor the subject “contains” “(no subject)”.
Recently I suspected the key must be to use the regular expression matching. Alas the “^$” filter did not work, I suspect because there are no empty spaces in the subject line because there literally is no subject and it therefore cannot contain any empty spaces.
Finally, after reading up a bit on the subject (no pun intended), I finally figured out that the wildcard was the key. The ultimate winner was “does not match wildcard” “*”.
I love simple solutions. I just hate it when it takes me forever to find it.
UPDATE 2011-12-26: Back to the drawing board. This worked in trial conditions but has been otherwise failing. Dagnabit!