mutt에서 OAuth2 토큰에 대한 gpg 비밀번호 프롬프트를 활성화하는 방법

mutt에서 OAuth2 토큰에 대한 gpg 비밀번호 프롬프트를 활성화하는 방법

OAuth2를 지원하는 Outlook365에서 mutt를 사용하고 있습니다. 내 muttrc에서 다음 줄로 확인되는 액세스 토큰을 생성했습니다.

set imap_authenticators = "xoauth2"
set imap_oauth_refresh_command = "~/.config/neomutt/mutt_oauth2.py ~/.config/neomutt/mytoken.token"
set smtp_authenticators = ${imap_authenticators}
set smtp_oauth_refresh_command = ${imap_oauth_refresh_command}

어디에mutt_oauth2.pymutt에서 제공하는 스크립트mytoken.token생성된 해당 GPG 암호화 토큰입니다.

내 문제는 gpg-agent.conf보안상의 이유로 gpg 비밀번호에 대해 시간 제한 캐시 설정이 있다는 것입니다. 시간이 초과되어 이메일을 보내려고 하면 Authenticating (XOAUTH2)...다음 메시지가 표시되고 No authenticators available이메일이 전송되지 않습니다.

다른 목적으로 시스템의 다른 곳에 GPG 비밀번호를 입력한 pinentry-curses다음 다시 보내려고 하면 비밀번호가 현재 (일시적으로) 캐시에 있기 때문에 인증이 제대로 작동합니다.

그래서 내 질문은 왜 mutt가 전송하려고 할 때 gpg 비밀번호를 묻는 메시지를 표시하지 않는 것이며 어떻게 할 수 있습니까?

미리 감사드립니다.

ベストアンサー1

おすすめ記事