Browse Source

Moved vdirsyncer/msmtp/offlineimap password management to pass

tags/v0.6.0
Micah Halter 1 year ago
parent
commit
5bfa76ac00
7 changed files with 9 additions and 7 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -2
      msmtp/.config/msmtp/config
  3. +2
    -2
      offlineimap/.config/offlineimap/config
  4. +1
    -2
      offlineimap/.config/offlineimap/offlineimap.py
  5. +1
    -0
      offlineimap/.config/systemd/user/offlineimap-oneshot.service.d/override.conf
  6. +1
    -0
      vdirsyncer/.config/systemd/user/vdirsyncer-oneshot.service
  7. +1
    -1
      vdirsyncer/.config/vdirsyncer/password.sh

+ 1
- 0
CHANGELOG.md View File

@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- Moved mail/calendar/address book password management to `pass`
- Moved from `crontab` to `systemd` service timer for offlineimap and vdirsyncer
- Moved from `urxvt` to `termite` for true color support and has all the
features I hacked into `urxvt`


+ 2
- 2
msmtp/.config/msmtp/config View File

@@ -10,7 +10,7 @@ tls_trust_file /etc/ssl/certs/ca-certificates.crt
account gmail
from micah@mehalter.com
user mhalter3378@gmail.com
passwordeval "gpg2 --passphrase-file $HOME/.gnupg/passphrase --quiet --for-your-eyes-only --no-tty --decrypt $HOME/.mail-gmailunsecure-passwd.gpg"
passwordeval "pass offlineimap/gmail"
host smtp.gmail.com
port 587

@@ -18,6 +18,6 @@ port 587
account gatech
from mehalter@gatech.edu
user mhalter3@gatech.edu
passwordeval "gpg2 --passphrase-file $HOME/.gnupg/passphrase --quiet --for-your-eyes-only --no-tty --decrypt $HOME/.mail-gatech-passwd.gpg"
passwordeval "pass offlineimap/gatech"
host outlook.office365.com
port 587

+ 2
- 2
offlineimap/.config/offlineimap/config View File

@@ -14,7 +14,7 @@ postsynchook = notmuch new
[Repository gmail-remote]
type = Gmail
remoteuser = mhalter3378@gmail.com
remotepasseval = mailpasswd("/home/micah/.password-store/offlineimap/gmail.gpg")
remotepasseval = mailpasswd("offlineimap/gmail")
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
ssl_version = tls1_2
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
@@ -32,7 +32,7 @@ postsynchook = notmuch new
[Repository gatech-remote]
type = IMAP
remoteuser = mhalter3@gatech.edu
remotepasseval = mailpasswd("/home/micah/.password-store/offlineimap/gatech.gpg")
remotepasseval = mailpasswd("offlineimap/gatech")
folderfilter = lambda foldername: foldername not in ['Calendar', 'Calendar/Birthdays', 'Calendar/United States holidays', 'Contacts', 'Conversation History', 'Journal', 'Notes', 'Tasks']
remotehost = outlook.office365.com
sslcacertfile = /etc/ssl/certs/ca-certificates.crt


+ 1
- 2
offlineimap/.config/offlineimap/offlineimap.py View File

@@ -1,5 +1,4 @@
import subprocess

def mailpasswd(account):
path = "%s" % account
return subprocess.check_output(["gpg2", "--pinentry-mode", "loopback", "--passphrase-file", "/home/micah/.gnupg/passphrase", "--quiet", "--batch", "-d", path]).strip()
return subprocess.check_output(["pass", account]).strip()

+ 1
- 0
offlineimap/.config/systemd/user/offlineimap-oneshot.service.d/override.conf View File

@@ -1,3 +1,4 @@
[Service]
Environment=DISPLAY=:0
ExecStartPre=polybar-msg hook mail 2
ExecStop=polybar-msg hook mail 1

+ 1
- 0
vdirsyncer/.config/systemd/user/vdirsyncer-oneshot.service View File

@@ -3,6 +3,7 @@ Description=vdirsyncer Service (oneshot)

[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart=vdirsyncer sync
TimeoutStopSec=120



+ 1
- 1
vdirsyncer/.config/vdirsyncer/password.sh View File

@@ -1,3 +1,3 @@
#!/bin/bash

gpg2 --passphrase-file /home/micah/.gnupg/passphrase --pinentry-mode loopback --batch --no-tty --decrypt /home/micah/.password-store/vdirsyncer/gmail.gpg
pass vdirsyncer/gmail

Loading…
Cancel
Save