From 61f975e680e0ef83464648af51a3396b356fc992 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 22 Mar 2023 22:36:23 -0500 Subject: feat: add himalaya --- himalaya/.config/himalaya/config.toml | 33 ++++++++++++++++++++++ .../.config/systemd/user/himalaya-watch.service | 12 ++++++++ himalaya/.config/systemd/user/himalaya.service | 11 ++++++++ 3 files changed, 56 insertions(+) create mode 100644 himalaya/.config/himalaya/config.toml create mode 100644 himalaya/.config/systemd/user/himalaya-watch.service create mode 100644 himalaya/.config/systemd/user/himalaya.service (limited to 'himalaya') 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] ' ''" + +[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 -- cgit v1.2.3-70-g09d2