네오머트 다중 계정

네오머트 다중 계정

나는 한동안 mutt를 사용해 왔으며 2개의 Gmail 계정에서 훌륭하게 작동합니다. 한 매크로에서 다른 매크로로 전환하도록 2개의 매크로를 설정했습니다.

네오머트로 이동하려고 하면 정확한 구성이 더 이상 작동하지 않습니다.

내 계정에 개별적으로 액세스할 수 있지만 한 계정에서 다른 계정으로 전환할 수는 없습니다.

뉴 뮤텍:

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를 혼란스럽게 합니다.

관련 정보