Matching message headers in mutt hooks

suvayu ali fatkasuvayu+linux at gmail.com
Sun Jul 8 01:45:14 UTC 2012


Hi mutt using Fedora users,

I am trying to set the from name based on the "Delivered-To:" message
header. In my case, the header has values like this:

  Delivered-To: mygmailid+keyword at gmail.com

This is what I have tried:

  reply-hook "~h 'Delivered-To: mygmailid+keyword at gmail\.com'" \
    	     "set from = 'emailid at otherdomain.com'"

I have also tried the message-hook with no success. Does anyone have any
idea what I'm doing wrong?

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list