................Thu 2.May'13 at 10:30:00 +0200, Suvayu Ali................ > Hi Mutt users, > Now my problem is the default reply-hook above overrides the from > address set by reverse_name=yes. If I comment it out, then the from > address is what was set by the last "my_hdr From: ..." command in the > above hooks. I want it to be my personal address. > > Any ideas how to resolve this conflict between hooks and reverse_name?
My muttrc settings for default from address: set from=m...@myadress.com set reverse_name=yes set use_envelope_from=yes My default folder-hook to remove hooks set having visited other folders: folder-hook .'\ ... send-hook . unmy_hdr From: ;\ send-hook . unmy_hdr Reply-To: \ ' A hook for my main spoolfile - sets various "things" when using my Gmail address: folder-hook '!' ... send-hook "~f mygmailusern...@gmail.com" "my_hdr Reply-To: mygmailusern...@gmail.com; ... " ;\ ... \ , A hook for my Gmail folder/account: folder-hook +gmail '\ ... my_hdr From: mygmailusern...@gmail.com ;\ my_hdr Reply-To: mygmailusern...@gmail.com ;\ ... \ ' A mailing list example, omitting other commands: folder-hook +mutt '\ ... send-hook "!~l !~p" "my_hdr From: mygmailusern...@gmail.com; my_hdr Reply-To: mygmailusern...@gmail.com" ;\ ... \ ' ensure all $alternates are set up correctly. And $subscribe addresses. This works for me, it may be of some use? The main setting is to have a default hook (folder-hook) that undoes the hooks you have set in other folder-hooks. -- James Griffin: jmz at kontrol.kode5.net jmzgriffin at gmail.com A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38