Condition flags modify the behavior of a recipe's regular expressions. For example,
procmail
performs a case-insensitive
search of an email's header by default. You would use condition flags to modify this behavior.
Examples of condition flags include the following:
H
flags: These match the email's header against the recipe's conditions. This is the default behavior.
B
flags: These match the email's body against the recipe's condition. Because an email can be any size, searching the body of a
message can significantly impact email processing time.
Question: How would you modify the example above so that procmail continues processing the email once it is matched?
Answer: Change the first line to :0 HBc:
Explanation: Because you want procmail to continue processing after the email's action has taken place, you must specify the
c flag
in the first of the recipe.
In the next lesson, you'll learn to identify recipe conditions.