#!/usr/local/bin/sciteco -8qm !* * To update the Gmail refresh token in Aerc's accounts.conf, first run * oauth2.py --generate_oauth2_token --user="user@gmail.com" --client_id="" --client_secret="" * ./gmail-refresh-token.tes *! :Q[^A1]"< 1^C^C ' !* URL-encode the refresh token *! @EQ[^A1]// <0A:; @I/%/ 0A-16"<@I/0/' 16^R0A\^D D> @EB'accounts.conf' HXa @E%a'accounts.conf.bak' @S/imaps+oauthbearer:/ @S/:/ @FK/@/ G[^A1] L @S/smtps+oauthbearer:/ @S/:/ @FK/@/ G[^A1] :EX