On Sun, 05 Feb 2012, E. Prom wrote: > Hello, > > How can I make mutt to save outgoing mail to the currently opened > mailbox? > > I tried several hooks, but none accepted the sequence "%b" (while > others, like "%a", worked fine). > > Any idea?
There is an ideia in the previous message. But, I see that you are using gmail. If you use gmail smtp, you could get outgoing messages duplicated. So, I sugget you to put this in a separate muttrc, like this: ~.mutt/gmail.muttrc ### # gmail specific options ### color status green default set from = "[email protected]" set sendmail = "/usr/bin/msmtp -a gmail" # if you use msmtp #set sendmail = "~/bin/mysendmail" # if you use sendmail set mbox = "+GMail/Inbox" unset record # in an account that you need to set it, do #set record = "+MailBox/Sent" set postponed = "+GMail/Draft" #set trash = "+GMail/Lixeira" # isn't necessary in gmail macro index E "<change-folder>+GMail/Inbox<enter><limit>~B " "search everything" macro index,pager D "<save-message>+GMail/Trash<enter>" "move message to the trash" macro index S "<save-message>+GMail/[Gmail].Spam<enter>" "mark message as spam" So, you put this in your muttrc: source ~/.mutt/gmail.muttrc folder-hook GMail/* source ~/.mutt/gmail.muttrc -- O___ - Marcelo Luiz de Laia c/ /'_ - Diamantina (*) \(*)- Minas Gerais ~~~~~~~~~- Brazil ^^^^^^^^^- Linux user number 487797
