Hasty Briefsbeta

Bilingual

Resetting Mutt's terminal after OAuth2

14 hours ago
  • #Terminal
  • #Mutt
  • #OAuth2
  • Describes setting up Mutt with Microsoft O365 using OAuth2, which is challenging but possible with helper scripts.
  • Highlights an issue where the first authentication attempt fails, requiring debugging.
  • Solution involves sending an escape sequence to fix arrow keys by enabling terminal application mode.
  • Adds a command to refresh OAuth tokens and send the escape sequence to the controlling terminal.
  • Shares a script (`mutt_oauth2.sh`) that combines token refresh with the escape sequence fix.