Using transport rule to block emails with empty body in Exchange Online?

Joe Grover 566 Reputation points
2024-01-25T13:24:50.3+00:00

Is there a way (using regex or something else) to create a rule that blocks/dumps emails that have an empty body? We get a lot of "feeler" emails from random Yahoo, Gmail, etc addresses that have no subject and no body and I'd rather just toss them.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao 37,746 Reputation points Moderator
    2024-01-26T02:51:20.9233333+00:00

    Hi @Joe Grover

    For message subject you can use regax ^$ to match an empty string.

    Create a transport rule like: 01

    While based on my test it may not work for the message body, as message body may contain other characters or elements although the message body seems to be empty.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.