From 6ad5f1cfda26c41fb1b7d06030c1918c06a3aad2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 27 Dec 2021 19:06:29 -0500 Subject: switch from offlineimap to mbsync --- Makefile.hornet | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile.hornet') diff --git a/Makefile.hornet b/Makefile.hornet index 49917bd..b79144d 100644 --- a/Makefile.hornet +++ b/Makefile.hornet @@ -7,9 +7,9 @@ INSTALL := \ .config/i3/terminal-workspace.json \ .config/i3status/config \ .config/msmtp/config \ - .config/offlineimap/config \ - .config/offlineimap/pass.py \ .config/perspektiv/config.toml \ + .mbsyncrc \ + .mbsyncloop \ .mpdscribble \ .notmuch-config \ .ssh/authorized_keys \ @@ -25,6 +25,7 @@ EMPTYDIRS := \ $(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \ Maildir \ .cache/mpd \ + .cache/notmuch \ .config/mpd/playlists INSTALL_CUSTOM := \ @@ -34,7 +35,8 @@ INSTALL_CUSTOM := \ BUILD := \ config/alacritty/alacritty.yml \ - mpdscribble/mpdscribble.conf + mpdscribble/mpdscribble.conf \ + mbsyncloop install :: @chmod 600 config/msmtp/config @@ -66,6 +68,9 @@ config/darksky : config/darksky/api : config/darksky rbw get darksky.net api > $@ +mbsyncloop: mbsyncrc + @sed 's/^PassCmd.*/PassCmd "head -n1 \/run\/user\/1000\/mbsyncloop"/' mbsyncrc > mbsyncloop + mpdscribble/mpdscribble.conf : mpdscribble/mpdscribble.conf.tmpl pass="$$(rbw get last.fm doyster)" &&\ perl -E'while () { if (/^password =/) { say "password = $$ARGV[0]" } else { print } }' "$$pass" < $< > $@ -- cgit v1.2.3-54-g00ecf