aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/goimapnotify
diff options
context:
space:
mode:
Diffstat (limited to 'goimapnotify')
-rw-r--r--goimapnotify/.config/imapnotify/gmail.conf15
-rw-r--r--goimapnotify/.config/imapnotify/porkbun.conf14
-rwxr-xr-xgoimapnotify/install.sh11
3 files changed, 40 insertions, 0 deletions
diff --git a/goimapnotify/.config/imapnotify/gmail.conf b/goimapnotify/.config/imapnotify/gmail.conf
new file mode 100644
index 0000000..ae39a8c
--- /dev/null
+++ b/goimapnotify/.config/imapnotify/gmail.conf
@@ -0,0 +1,15 @@
+{
+ "host": "imap.gmail.com",
+ "port": 993,
+ "tls": true,
+ "tlsOptions": {
+ "rejectUnauthorized": false
+ },
+ "username": "tobyv13@gmail.com",
+ "passwordCmd": "pass gmail | head -n1",
+ "onNewMail": "mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail",
+ "onNewMailPost": "",
+ "boxes": [
+ "INBOX"
+ ]
+}
diff --git a/goimapnotify/.config/imapnotify/porkbun.conf b/goimapnotify/.config/imapnotify/porkbun.conf
new file mode 100644
index 0000000..60b71f9
--- /dev/null
+++ b/goimapnotify/.config/imapnotify/porkbun.conf
@@ -0,0 +1,14 @@
+{
+ "host": "imap.porkbun.com",
+ "port": 993,
+ "tls": true,
+ "tlsOptions": {
+ "rejectUnauthorized": false
+ },
+ "username": "tobyv@tobyvin.dev",
+ "passwordCmd": "pass tobyv@tobyvin.dev | head -n1",
+ "onNewMail": "mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc porkbun",
+ "boxes": [
+ "INBOX"
+ ]
+}
diff --git a/goimapnotify/install.sh b/goimapnotify/install.sh
new file mode 100755
index 0000000..312c51b
--- /dev/null
+++ b/goimapnotify/install.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if ! command -v "goimapnotify" >/dev/null; then
+ printf "%s: goimapnotify not found, skipping...\n" "$0"
+ exit 0
+fi
+
+printf "%s: Installing services\n" "$0"
+
+systemctl --user enable --now --no-block goimapnotify@gmail.service
+systemctl --user enable --now --no-block goimapnotify@porkbun.service