mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 11:13:04 +03:00
mail: add check-email to systemd timers
This commit is contained in:
parent
e57ade6297
commit
2247f9f322
4 changed files with 49 additions and 3 deletions
8
.config/systemd/user/flameshot.service
Normal file
8
.config/systemd/user/flameshot.service
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Flameshot
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/flameshot
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=wm-session.target
|
||||||
6
.config/systemd/user/notmuch.service
Normal file
6
.config/systemd/user/notmuch.service
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Update notmuch mail index
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/bash /home/pavel/bin/scripts/check-email
|
||||||
9
.config/systemd/user/notmuch.timer
Normal file
9
.config/systemd/user/notmuch.timer
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run notmuch new every 5 minutes
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=1min
|
||||||
|
OnUnitActiveSec=5min
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
29
Mail.org
29
Mail.org
|
|
@ -358,10 +358,33 @@ fi
|
||||||
echo "$(date +%s)" > $CHECK_FILE
|
echo "$(date +%s)" > $CHECK_FILE
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
The script is ran via GNU Mcron every 5 minutes.
|
The script is ran via systemd every 5 minutes.
|
||||||
#+begin_src scheme :tangle ~/.config/cron/mail.guile
|
#+begin_src conf :tangle .config/systemd/user/notmuch.service
|
||||||
(job "*/5 * * * * " "~/bin/scripts/check-email")
|
[Unit]
|
||||||
|
Description=Update notmuch mail index
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/bash /home/pavel/bin/scripts/check-email
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src conf :tangle .config/systemd/user/notmuch.timer
|
||||||
|
[Unit]
|
||||||
|
Description=Run notmuch sync script every 5 minutes
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=1min
|
||||||
|
OnUnitActiveSec=5min
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
Don't forget to run:
|
||||||
|
#+begin_src bash
|
||||||
|
systemctl --user enable --now notmuch.timer
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* MSMTP
|
* MSMTP
|
||||||
| Arch dependency |
|
| Arch dependency |
|
||||||
|-----------------|
|
|-----------------|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue