Hello everyone,
I'm having a weird issue with mutt and I hope someone here can help with
an advice on how to fix it.
I have multiple accounts configured in muttrc, the first account being
an outlook account and then 3 gmail accounts. When I send an email from
the outlook account, the email is sometimes saved in the correct sent
folder, i.e in the outlook account's sent folder, but other times, and
completely randomly, the sent mail gets saved in the sent folder of the
last account on the list. It happens completely randomly. When sending
from the second account however (a gmail account) this does not happen.
I checked my config extensively and did not see any issues. See below.
Your help is much appreciated.
(Thanks in advance for your help)
### passwords
set my_passnv = gpg2 -dq ~/.mutt/.passnv.gpg
set my_passnbm = `gpg2 -dq ~/.mutt/.passnbm.gpg`
set my_pass21 = gpg2 -dq ~/.mutt/.pass21.gpg
set my_passjoshb = "gpg2 -dq ~/.mutt/.joshb.gpg"
#------------------------------------------#
# Hooks, Folders, mailboxes & cache #
#------------------------------------------#
account-hook . "unset imap_user imap_pass"
account-hook . "unset smtp_url smtp_pass"
account-hook 'imaps://jo...@uhemisferios.edu.ec@imap-mail.outlook.com/'
"set imap_user=jo...@uhemisferios.edu.ec smtp_url =
smtp://jo...@uhemisferios.edu.ec@smtp-mail.outlook.com:587
imap_pass=$my_passjoshb"
account-hook
'smtp://jo...@uhemisferios.edu.ec@smtp-mail.outlook.com:587' "set
smtp_pass = $my_passjoshb"
account-hook 'imaps://josh.st...@imap.gmail.com/' "set
imap_user=josh.st...@gmail.com imap_pass=$my_passnbm smtp_url =
smtp://josh.st...@smtp.gmail.com:587"
account-hook 'smtp://josh.st...@smtp.gmail.com:587' "set smtp_pass =
$my_passnbm"
account-hook 'imaps://jos...@imap.gmail.com/' "set
imap_user=jos...@gmail.com imap_pass=$my_passnv smtp_url =
smtp://jos...@smtp.gmail.com:587"
account-hook 'smtp://jos...@smtp.gmail.com:587' "set smtp_pass = $my_passnv"
account-hook 'imaps://bluemisa...@imap.gmail.com/' "set
imap_user=bluemisa...@gmail.com imap_pass=$my_pass21 smtp_url =
smtp://bluemisa...@smtp.gmail.com:587" #account-hook
'imaps://bluemisa...@imap.gmail.com/' "set
imap_user=bluemisa...@gmail.com imap_pass=$my_pass21"
account-hook 'smtp://bluemisa...@smtp.gmail.com:587' "set smtp_pass =
$my_pass21"
folder-hook 'imaps://jo...@uhemisferios.edu.ec@imap-mail.outlook.com/'
'source "~/.mutt/.joshb.uhemisferios"'
folder-hook 'imaps://jos...@imap.gmail.com/' "source
'~/.mutt/.joshov.gmail'"
folder-hook 'imaps://josh.st...@imap.gmail.com/' "source
'~/.mutt/.josh.stern.gmail'"
folder-hook 'imaps://bluemisa...@imap.gmail.com/' 'source
"~/.mutt/.bluemisan21.gmail"'
### cache
set header_cache = ~/.mutt/.cache
set message_cachedir = ~/.mutt/.cache/bodies
>>>>That's muttrc. Now the sources for the folder hooks are mainly as
follows:
set folder = "imaps://jo...@uhemisferios.edu.ec@imap-mail.outlook.com/"
set spoolfile =
"imaps://jo...@uhemisferios.edu.ec@imap-mail.outlook.com/INBOX"
set postponed =
"imaps://jo...@uhemisferios.edu.ec@imap-mail.outlook.com/Drafts"
set trash = "imaps://jo...@uhemisferios.edu.ec@imap-mail.outlook.com/Trash"
set realname = 'josh stern' set from = jo...@uhemisferios.edu.ec
>>>>and
set folder = "imaps://bluemisa...@imap.gmail.com/" set spoolfile =
"imaps://bluemisa...@imap.gmail.com/INBOX"
set postponed = "imaps://bluemisa...@imap.gmail.com/[Gmail]/Drafts"
set trash = "imaps://bluemisa...@imap.gmail.com/[Gmail]/Trash"
set realname = 'blue' set from = bluemisa...@gmail.com