IMail - Rule to filter messages with no Subject

Product: Version: Platform:
IMail 7.0+ NT,Win2000,XP,Win2003

Question/Problem: I'm getting messages with no subject. How can I delete these messages?

Answer/Solution: You can use the Inbound Rules engine to trap messages that have no subject. To do this, setup two rules.

The first rule will look for messages that do not have the 'Subject' header field.

Header does not contain subject\: (\w|\S) then filter the message.

Here is how this rule would be written in the rules file (rules.ima):
H!~subject\: (\w|\S):junk

The second rule will look for messages that have a blank Subject header.

Subject does not contain (\w|\S) then filter the message.

Here is how this rule would be written in the rules file (rules.ima):
S!~(\w|\S):junk

Note that the \w and \S parameters are case sensitive.

Document #:   Revision Date:
IM-20011030-DM01   10/20/05

Return To KnowledgeBase Search Page