Limiting matches on SMTP template rules

Limiting matches on SMTP template rules by limiting it to headers.
This is part of issue #32