User Tools

Site Tools


user:sachy:lakatux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
user:sachy:lakatux [2023/03/23 11:15] – mutt vs. oauth2 sachyuser:sachy:lakatux [2023/03/23 17:03] sachy
Line 991: Line 991:
 Oauth2 protocol is more and more popular auth mechanism, so mutt - as the least wrong mail client - have support too. Yet the support is a bit tricky... Oauth2 protocol is more and more popular auth mechanism, so mutt - as the least wrong mail client - have support too. Yet the support is a bit tricky...
  
-First, download [[https://gitlab.com/muttmua/mutt/-/blob/master/contrib/mutt_oauth2.py|mutt_oauth2.py]] to the .mutt/+First, download [[https://gitlab.com/muttmua/mutt/-/blob/master/contrib/mutt_oauth2.py|mutt_oauth2.py]] to the .mutt/ and read [[https://gitlab.com/muttmua/mutt/-/blob/master/contrib/mutt_oauth2.py.README|official README]].
  
 Then generate new PGP key for encryption of the Oauth secrets. "gpg --gen-key". Set the name/email to something mutty, like "mutt@mutt.mutt" to clearly distinguish it and never use in daily life. Also --edit-key to set neverending validity (default one year). Then generate new PGP key for encryption of the Oauth secrets. "gpg --gen-key". Set the name/email to something mutty, like "mutt@mutt.mutt" to clearly distinguish it and never use in daily life. Also --edit-key to set neverending validity (default one year).
Line 1018: Line 1018:
 </code> </code>
  
-Be sure not to copy newlines for vim/nano. Its one string, no newlines. NO NEWLINES!+Be sure not to copy newlines from vim/nano. Its one string, no newlines. NO NEWLINES!
  
 If done correctly, the script will respond: If done correctly, the script will respond:
Line 1043: Line 1043:
 set smtp_url="smtp://${imap_user}@smtp.office365.com:587/" set smtp_url="smtp://${imap_user}@smtp.office365.com:587/"
 set imap_authenticators="oauthbearer:xoauth2" set imap_authenticators="oauthbearer:xoauth2"
-set imap_oauth_refresh_command="/home/USER/.mutt/mutt_oauth2.py LOGIN_NAME@DOMAIN.tokens"+set imap_oauth_refresh_command="/home/USER/.mutt/mutt_oauth2.py /home/USER/.mutt/LOGIN_NAME@DOMAIN.tokens"
 set smtp_authenticators=${imap_authenticators} set smtp_authenticators=${imap_authenticators}
 set smtp_oauth_refresh_command=${imap_oauth_refresh_command} set smtp_oauth_refresh_command=${imap_oauth_refresh_command}
Line 1057: Line 1057:
 set smtp_oauth_refresh_command="" set smtp_oauth_refresh_command=""
 </code> </code>
 +
 +
  
user/sachy/lakatux.txt · Last modified: 2023/09/10 09:16 by sachy