Browse Source

Moved vdirsyncer/msmtp/offlineimap password management to pass

ansible
Micah Halter 2 months ago
parent
commit
5bfa76ac00

+ 1
- 0
CHANGELOG.md View File

@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
14 14
 
15 15
 ### Changed
16 16
 
17
+- Moved mail/calendar/address book password management to `pass`
17 18
 - Moved from `crontab` to `systemd` service timer for offlineimap and vdirsyncer
18 19
 - Moved from `urxvt` to `termite` for true color support and has all the
19 20
   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
10 10
 account gmail
11 11
 from micah@mehalter.com
12 12
 user mhalter3378@gmail.com
13
-passwordeval "gpg2 --passphrase-file $HOME/.gnupg/passphrase --quiet --for-your-eyes-only --no-tty --decrypt $HOME/.mail-gmailunsecure-passwd.gpg"
13
+passwordeval "pass offlineimap/gmail"
14 14
 host smtp.gmail.com
15 15
 port 587
16 16
 
@@ -18,6 +18,6 @@ port 587
18 18
 account gatech
19 19
 from mehalter@gatech.edu
20 20
 user mhalter3@gatech.edu
21
-passwordeval "gpg2 --passphrase-file $HOME/.gnupg/passphrase --quiet --for-your-eyes-only --no-tty --decrypt $HOME/.mail-gatech-passwd.gpg"
21
+passwordeval "pass offlineimap/gatech"
22 22
 host outlook.office365.com
23 23
 port 587

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

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

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

@@ -1,5 +1,4 @@
1 1
 import subprocess
2 2
 
3 3
 def mailpasswd(account):
4
-    path = "%s" % account
5
-    return subprocess.check_output(["gpg2", "--pinentry-mode", "loopback", "--passphrase-file", "/home/micah/.gnupg/passphrase", "--quiet", "--batch", "-d", path]).strip()
4
+    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 @@
1 1
 [Service]
2
+Environment=DISPLAY=:0
2 3
 ExecStartPre=polybar-msg hook mail 2
3 4
 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)
3 3
 
4 4
 [Service]
5 5
 Type=oneshot
6
+Environment=DISPLAY=:0
6 7
 ExecStart=vdirsyncer sync
7 8
 TimeoutStopSec=120
8 9
 

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

@@ -1,3 +1,3 @@
1 1
 #!/bin/bash
2 2
 
3
-gpg2 --passphrase-file /home/micah/.gnupg/passphrase --pinentry-mode loopback --batch --no-tty --decrypt /home/micah/.password-store/vdirsyncer/gmail.gpg
3
+pass vdirsyncer/gmail

Loading…
Cancel
Save