On Sun, Mar 29, 2026 at 12:45:13PM +0200, Sébastien Hinderer wrote:
In my configuration I have hooks likesave-hook '~f amazon.fr' '=amazon/' As such, I am assuming that a mail sent from any address *ocntaining* amazon.fr, like for instance [email protected], would match. Is there a way to make the regexp more restrictive and to match those messages where amazon.fr appears at the end of the address?
Yes, see the example at http://www.mutt.org/doc/manual/#pattern-hook for an example. It shows send-hook, but this also works for save-hook.
Also notice in the example how "." is backslashed, because that matches any character.
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature
