Neomutt 多账户

Neomutt 多账户

我已经使用 mutt 一段时间了,并且它在 2 个 gmail 帐户上运行得很好。我有 2 个宏设置为从一个宏切换到另一个宏。

想要转移到 neomutt,确切的配置不再起作用。

我可以单独访问我的帐户,但无法从一个帐户切换到另一个帐户。

新穆特克:

source ~/.config/neomutt/accounts/account1
folder-hook 'account1' 'source ~/.config/neomutt/accounts/account1'
source ~/.config/neomutt/accounts/account2
folder-hook 'account2' 'source ~/.config/neomutt/accounts/account2'

macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/account1<enter><change-folder>!<enter>'
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/account2<enter><change-folder>!<enter>'

账户1:

set from = "NAME" 
set folder = "imaps://imap.gmail.com"

# Imap
set imap_user = "[email protected]" 
set imap_authenticators = "oauthbearer"
set imap_oauth_refresh_command = " ... "
set imap_check_subscribed  
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Draft"
set header_cache=~/.mutt/cache/headers
set message_cachedir = "~/.mutt/cache/bodies"

# Mailbox definition
mailboxes +GMail/INBOX +GMail/MailingList 

# smtp
set smtp_authenticators = "oauthbearer"
set smtp_oauth_refresh_command = "...."
set smtp_url = "smtp://[email protected]@smtp.gmail.com:587/"
set realname = "NAME"

我还尝试仅设置宏,这允许我选择要加载的帐户。但是一旦我加载了一个,我就无法加载另一个。

感谢您的帮助。

答案1

诀窍是

set folder = "imaps://[email protected]"

邮箱有相同的文件夹让 neomutt 感到困惑。

相关内容