From d0675e09d60c4383d5c4295bebd0e75ae3027fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 12 Feb 2026 17:38:48 +0100 Subject: Add davmail Elektroline synchronization --- config/dodo/config.py | 4 +++- config/systemd/user/davmail.service | 5 +++++ install | 4 +++- local/bin/allsync | 3 +-- private | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 config/systemd/user/davmail.service diff --git a/config/dodo/config.py b/config/dodo/config.py index 66e64ac..1347424 100644 --- a/config/dodo/config.py +++ b/config/dodo/config.py @@ -1,14 +1,16 @@ import dodo -dodo.settings.smtp_accounts = ["email", "gmail", "fel"] +dodo.settings.smtp_accounts = ["email", "gmail", "ell", "fel"] dodo.settings.email_address = { "email": "Karel Kočí ", "gmail": "Karel Kočí ", + "ell": "Karel Kočí ", "fel": "Karel Kočí ", } dodo.settings.sent_dir = { "email": "~/.mail/email/sent/", "gmail": "~/.mail/gmail/Drafts/", + "ell": "~/.mail/ell/Sent/", "fel": "~/.mail/fel/Sent/", } dodo.settings.gnupg_keyid = "2B1F70F95F1B48DA2265A7FAA6BC8B8CEB31659B" diff --git a/config/systemd/user/davmail.service b/config/systemd/user/davmail.service new file mode 100644 index 0000000..b0f239b --- /dev/null +++ b/config/systemd/user/davmail.service @@ -0,0 +1,5 @@ +[Unit] +Description=DavMail + +[Service] +ExecStart="/run/current-system/sw/bin/davmail" diff --git a/install b/install index 6384f69..98580a6 100755 --- a/install +++ b/install @@ -93,14 +93,16 @@ if ask "sync" "Install synchronization"; then if [ "$(ps -o comm= 1)" = "systemd" ]; then inst config/systemd/user/allsync.service ~/.config/systemd/user/ inst config/systemd/user/allsync.timer ~/.config/systemd/user/ + inst config/systemd/user/davmail.service ~/.config/systemd/user/ fi inst private/mbsyncrc ~/.mbsyncrc + inst private/msmtprc ~/.msmtprc + inst private/davmail.service ~/.davmail.service inst private/notmuch-config ~/.notmuch-config inst private/notmuch-tag-new ~/.notmuch-tag-new inst local/bin/email-unread ~/.local/bin/email-unread inst local/sbin/newmail-notify ~/.local/sbin/newmail-notify - inst private/msmtprc ~/.msmtprc inst config/dodo/config.py ~/.config/dodo/config.py inst private/astroid/config ~/.config/astroid/config diff --git a/local/bin/allsync b/local/bin/allsync index 9539f0d..0dcccc5 100755 --- a/local/bin/allsync +++ b/local/bin/allsync @@ -23,6 +23,7 @@ cron_enable() { } | crontab - else systemctl --user start allsync.timer + systemctl --user start davmail.timer fi notify_bar } @@ -112,12 +113,10 @@ pass git pull || fail "Passwords pull failed" pass git push || fail "Passwords push failed" sec "Mail" -i3_astroid --start-polling mbsync -a || fail "Mail synchronization reported failure" notmuch new ~/.local/sbin/newmail-notify || fail "Mail notifications not sent" notmuch tag --batch --input="$HOME/.notmuch-tag-new" -i3_astroid --stop-polling notify_bar #sec "Calendar and contacts" diff --git a/private b/private index abe80ca..0b5b11a 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit abe80caafee87d3111f52d3e7a01f3869d2cfc34 +Subproject commit 0b5b11a66a39ab24135fe5a7f748ab4e009c4cc8 -- cgit v1.2.3