[Mutt] #3030: hook patterns don't match against full header addresses
#3030: hook patterns don't match against full header addresses
Patterns in hooks do not match against the full header addresses. They
ignore
the "personal" part of the address. For example, if the header contains
"To: Joe User <juser@xxxxxxxxxxx>", hook patterns only match against
"juser@xxxxxxxxxxx". A save-hook of "~C joe" doesn't match against this
message.
This differs from the behavior of patterns when used when performing
limiting,
searching, and coloring. (For example, "color index black white '~C joe'"
does match against the above message.)
This can be easily fixed by changing the two calls to mutt_pattern_exec()
in
hook.c to use the M_MATCH_FULL_ADDRESS flag. (However, this would change
the
behavior and possibly break configuration files if there are any users who
actually expect the current behavior. If necessary, a new configuration
variable could be added to turn on the M_MATCH_FULL_ADDRESS flag in
hooks.)
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3030>