1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Execute scripts on new messages using IDLE imap command After=network.target [Service] Type=simple ExecStart=/usr/bin/imapnotify -c %h/.config/imapnotify/%I Restart=on-failure RestartSec=20 [Install] WantedBy=default.target