Blocking emails with blank subject line and blank message body
search cancel

Blocking emails with blank subject line and blank message body

book

Article ID: 177681

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

Emails are being delivered with a blank subject and blank message body

Resolution

To block email with no subject and no body with a content rule:

  1. Log in to the Control Center
  2. Click on Content
  3. Now click on Add to create new rule
  4. Select blank rule
  5. Give the rule a name; ex. "Block messages with no subject and no body".
  6. Now Select to Apply to "Inbound"
  7. Leave the "Which of the following conditions must be met:" to "All"
  8. Now click on Add for the conditions
  9. Now you should have the "Content Compliance Policy Condition" screen showing.
  10. Now select the "Message contains" and change it to "Message does not contain".
  11. Then select "Subject"
  12. Now click on Add Condition button below.
  13. Repeat steps 8 - 12 using "Body" in place of "Subject".
  14. Now select what action you want to take for these messages.
  15. Now check the groups for which you want the rule to apply.
  16. Now click on save.


To block messages with blank subjects and blank body you can add this additional condition to the rule.

  1. Now click on Add for the conditions
  2. Now select the "Text in this specific part of the message:" and then pull down the scroll arrow off to the right and select "Subject"
  3. Now select the "matches regular expression" and then in the box to the right enter the regular expression "^\s*$". (NOTE: Any regular expressions suggested in this document should be tested by the user before implementation and their function should be verified. Use of any regular expression is the responsibility of the user.)
  4. Now click on Add Condition button below.
  5. You can repeat steps 1 - 4 to add the same condition for the body of the message.

You would need to group the first two conditions and the last two conditions with the (X & Y) button. And change "Which of the following conditions must be met" to "Any".