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://[email protected]@imap-mail.outlook.com/'
"set [email protected] smtp_url =
smtp://[email protected]@smtp-mail.outlook.com:587
imap_pass=$my_passjoshb"
account-hook
'smtp://[email protected]@smtp-mail.outlook.com:587' "set
smtp_pass = $my_passjoshb"
account-hook 'imaps://[email protected]/' "set
[email protected] imap_pass=$my_passnbm smtp_url =
smtp://[email protected]:587"
account-hook 'smtp://[email protected]:587' "set smtp_pass =
$my_passnbm"
account-hook 'imaps://[email protected]/' "set
[email protected] imap_pass=$my_passnv smtp_url =
smtp://[email protected]:587"
account-hook 'smtp://[email protected]:587' "set smtp_pass = $my_passnv"
account-hook 'imaps://[email protected]/' "set
[email protected] imap_pass=$my_pass21 smtp_url =
smtp://[email protected]:587" #account-hook
'imaps://[email protected]/' "set
[email protected] imap_pass=$my_pass21"
account-hook 'smtp://[email protected]:587' "set smtp_pass =
$my_pass21"
folder-hook 'imaps://[email protected]@imap-mail.outlook.com/'
'source "~/.mutt/.joshb.uhemisferios"'
folder-hook 'imaps://[email protected]/' "source
'~/.mutt/.joshov.gmail'"
folder-hook 'imaps://[email protected]/' "source
'~/.mutt/.josh.stern.gmail'"
folder-hook 'imaps://[email protected]/' '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://[email protected]@imap-mail.outlook.com/"
set spoolfile =
"imaps://[email protected]@imap-mail.outlook.com/INBOX"
set postponed =
"imaps://[email protected]@imap-mail.outlook.com/Drafts"
set trash = "imaps://[email protected]@imap-mail.outlook.com/Trash"
set realname = 'josh stern' set from = [email protected]
>>>>and
set folder = "imaps://[email protected]/" set spoolfile =
"imaps://[email protected]/INBOX"
set postponed = "imaps://[email protected]/[Gmail]/Drafts"
set trash = "imaps://[email protected]/[Gmail]/Trash"
set realname = 'blue' set from = [email protected]