~kmdodrill/dotfiles

c9276afcce7fd8f2710043ee5573273c40459c29 — Kenneth Dodrill a month ago 2c043ec
Replace mailctl with oama
4 files changed, 58 insertions(+), 17 deletions(-)

M .config/isync/mbsyncrc
D .config/mailctl/config.yaml
M .config/msmtp/config
A .config/oama/config.yaml
M .config/isync/mbsyncrc => .config/isync/mbsyncrc +2 -2
@@ 68,8 68,8 @@ Channel personal-archive
# Work
IMAPAccount work
Host imap.gmail.com
User kedodrill@trollandtoad.com
PassCmd "mailctl access kedodrill"
User kedodrill@temp.trollandtoad.com
PassCmd "oama access temp"
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
Timeout 360

D .config/mailctl/config.yaml => .config/mailctl/config.yaml +0 -13
@@ 1,13 0,0 @@
services_file: /home/kenny/.config/mailctl/services.yaml
oauth2_dir: /home/kenny/.local/share/mailctl
encrypt_cmd:
  exec: gpg
  args:
    - --encrypt
    - --recipient
    - 21D6B1AD
    - -o
decrypt_cmd:
  exec: gpg
  args:
    - --decrypt

M .config/msmtp/config => .config/msmtp/config +2 -2
@@ 21,5 21,5 @@ port 587
auth oauthbearer
tls_starttls on
from kedodrill@trollandtoad.com
user kedodrill@trollandtoad.com
passwordeval mailctl access kedodrill
user kedodrill@account.trollandtoad.com
passwordeval oama access account 

A .config/oama/config.yaml => .config/oama/config.yaml +54 -0
@@ 0,0 1,54 @@
## oama version 0.13.3

## This is a YAML configuration file, indentation matters.
## Double ## indicates comments while single # default values.
## Not all defaults are shown, for full list run `oama printenv`
## and look at the `services:` section.

## Possible options for keeping refresh and access tokens:
## GPG - in a gpg encrypted file ~/.local/var/oama/<email-address>.oauth
## GRING - in the default Gnome keyring
##
## Choose exactly one.

# encryption:
#     tag: GRING

encryption:
  tag: GPG
  contents: 21D6B1AD

## Builtin service providers
## - google
## - microsoft
## Required fields: client_id, client_secret
##
services:
  google:
    client_id: 427559280412-ugo1hbup9ij9pm4gpb5isghcqoj9c2ho.apps.googleusercontent.com
    client_secret: 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 
  google-temp:
    client_id: 57780556541-71aq1s6uiquosbu5bjrfic4crhituq64.apps.googleusercontent.com
    client_secret: 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
    auth_endpoint: https://accounts.google.com/o/oauth2/auth
    auth_scope: https://mail.google.com/
    token_endpoint: https://oauth2.googleapis.com/token

  # microsoft:
  #   client_id: application-CLIENT-ID 
  #   client_secret: application-CLIENT_SECRET
  #   auth_scope: https://outlook.office365.com/IMAP.AccessAsUser.All
  #     https://outlook.office365.com/SMTP.Send
  #     offline_access
  #   tenant: common

  ## User configured providers
  ## Required fields: client_id, client_secret, auth_endpoint, auth_scope, token_endpoint  
  ##
  ## For example:
  # yahoo:
  #   client_id: application-CLIENT-ID 
  #   client_secret: application-CLIENT_SECRET
  #   auth_endpoint: EDIT-ME!
  #   auth_scope: EDIT-ME!
  #   token_endpoint: EDIT-ME!