From 2c65d14bc06370434969c68e4998062bd4b9d249 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 28 Mar 2023 23:53:38 -0500 Subject: feat(mbsync): add goimapnotify in place of systemd timer --- mbsync/.config/imapnotify/gmail.conf | 16 ++++++++++++++++ mbsync/.config/systemd/user/mbsync.timer | 10 ---------- 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 mbsync/.config/imapnotify/gmail.conf delete mode 100644 mbsync/.config/systemd/user/mbsync.timer (limited to 'mbsync/.config') diff --git a/mbsync/.config/imapnotify/gmail.conf b/mbsync/.config/imapnotify/gmail.conf new file mode 100644 index 0000000..fc109ff --- /dev/null +++ b/mbsync/.config/imapnotify/gmail.conf @@ -0,0 +1,16 @@ +{ + "host": "imap.gmail.com", + "port": 993, + "tls": true, + "tlsOptions": { + "rejectUnauthorized": false + }, + "username": "tobyv13@gmail.com", + "password": "", + "passwordCmd": "pass gmail | head -n1", + "onNewMail": "mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail", + "onNewMailPost": "", + "boxes": [ + "INBOX" + ] +} diff --git a/mbsync/.config/systemd/user/mbsync.timer b/mbsync/.config/systemd/user/mbsync.timer deleted file mode 100644 index 82ebb83..0000000 --- a/mbsync/.config/systemd/user/mbsync.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Mailbox synchronization timer - -[Timer] -OnBootSec=2m -OnUnitActiveSec=5m -Unit=mbsync.service - -[Install] -WantedBy=timers.target -- cgit v1.2.3-70-g09d2