summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-03-22 22:36:23 -0500
committerToby Vincent <tobyv13@gmail.com>2023-03-22 22:36:23 -0500
commit61f975e680e0ef83464648af51a3396b356fc992 (patch)
treed484ca81378556772b784e52f9e943255f7fcfc0
parenteb1345e1afbcb518ab81d301d9f7ba11a72f806c (diff)
feat: add himalaya
-rw-r--r--himalaya/.config/himalaya/config.toml33
-rw-r--r--himalaya/.config/systemd/user/himalaya-watch.service12
-rw-r--r--himalaya/.config/systemd/user/himalaya.service11
3 files changed, 56 insertions, 0 deletions
diff --git a/himalaya/.config/himalaya/config.toml b/himalaya/.config/himalaya/config.toml
new file mode 100644
index 0000000..cb879f1
--- /dev/null
+++ b/himalaya/.config/himalaya/config.toml
@@ -0,0 +1,33 @@
+display-name = "Toby Vincent"
+downloads-dir = "~/dl"
+signature = "Toby Vincent"
+email-listing-page-size = 50
+email-reading-verify-cmd = "gpg --verify -q"
+email-reading-decrypt-cmd = "gpg -dq"
+email-writing-sign-cmd = "gpg -o - -saq"
+email-writing-encrypt-cmd = "gpg -o - -eqar"
+notify-cmd = "notify-send '[MAIL] <sender>' '<subject>'"
+
+[gmail]
+default = true
+email = "tobyv13@gmail.com"
+
+backend = "imap"
+imap-host = "imap.gmail.com"
+imap-port = 993
+imap-login = "tobyv13@gmail.com"
+imap-passwd-cmd = "pass show gmail"
+
+sender = "smtp"
+smtp-host = "smtp.gmail.com"
+smtp-port = 465
+smtp-login = "tobyv13@gmail.com"
+smtp-passwd-cmd = "pass show gmail"
+
+watch-cmds = ["himalaya --output json search NEW | jq -r '.|length' >> /tmp/himalaya-counter"]
+
+[gmail.folder-aliases]
+inbox = "INBOX"
+sent = "[Gmail]/Sent Mail"
+drafts = "[Gmail]/Drafts"
+trash = "[Gmail]/Trash"
diff --git a/himalaya/.config/systemd/user/himalaya-watch.service b/himalaya/.config/systemd/user/himalaya-watch.service
new file mode 100644
index 0000000..043d6ac
--- /dev/null
+++ b/himalaya/.config/systemd/user/himalaya-watch.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Himalaya watcher
+After=network.target gpg-agent.service
+
+[Service]
+ExecStart=himalaya watch
+Environment=RUST_LOG=debug
+Restart=always
+RestartSec=10
+
+[Install]
+WantedBy=default.target
diff --git a/himalaya/.config/systemd/user/himalaya.service b/himalaya/.config/systemd/user/himalaya.service
new file mode 100644
index 0000000..1f52e83
--- /dev/null
+++ b/himalaya/.config/systemd/user/himalaya.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Himalaya new messages notifier
+After=network.target gpg-agent.service
+
+[Service]
+ExecStart=himalaya notify
+Restart=always
+RestartSec=10
+
+[Install]
+WantedBy=default.target