我已經使用 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"
我還嘗試僅設定宏,這允許我選擇要載入的帳戶。但是一旦我加載了一個,我就無法加載另一個。
感謝您的協助。