On Tuesday 07/12/11 07:53:50 CST, Marcelo Luiz de Laia wrote: > I have fcc-hook in one of my 3 profile, like this: > > ~/.mutt/profile.mymail3 > fcc-hook . "+MyMail3/Sent" > > In my muttrc, I have: > unhook send-hook > send-hook . "source ~/.mutt/profile.mymail1\n" > send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward > signature=''" > send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n" > > When I sent a e-mail to friend1 or friend2, the message is salved at > MyMail3/Sent, what is very nice. > > However, after this action, all other messages that I sent is salved > at this mailbox! > > I have googled and found a lot of issues like me. Here is 2 out many messages > I found: > > http://tech.groups.yahoo.com/group/mutt-users/message/49010 > http://www.davep.org/mutt/muttrc/fcc-hooks.html > > and manual's section 3.15. > > Have you a way to unset fcc-hook? Or I will need to write it to > /dev/null? If this the way, how I could do that? In muttrc or in > profile.mymail1? > > ~/.mutt/profile.mymail1 don't have fcc-hook seted. > > Thank you very much! > > Marcelo
Hi, I think you have to set a fcc-hook in each of you profiles if you don't want to save all mails to "+MyMail3/Sent". Because the hooks will never be changed itself only it was set to a new value, and there is only one place for fcc-hook setting in your profiles, so mutt will use it to forever. if you just care mails to friend1 and friend2, you could try this 2 lines, fcc-hook .* "=Sent" fcc-hook "~t (friend1|friend2)" "+MyMail3/Sent" then the first line is the default fcc-hook action on sent mails. the second is a specific action on mails to friend2 and friend2. if you don't want to save mails, you can set the first line to, fcc-hook .* "/dev/null" Hope this could help you. PS, you could also combine fcc-hook with other hooks(like folder-hook, send-hook...) to get fcc-hook dynamically changed. - du yang -- 临江仙·滚滚长江东逝水--杨慎 滚滚长江东逝水,浪花淘尽英雄。 是非成败转头空。青山依旧在,几度夕阳红。 白发渔樵江渚上,惯看秋月春风。 一壶浊酒喜相逢。古今多少事,都付笑谈中。