adding goimapnotify support to get IMAP IDLE triggering for mbsync
This commit is contained in:
parent
637b223278
commit
1104bcca51
2 changed files with 28 additions and 0 deletions
14
email/.config/goimapnotify/goimapnotify.yaml
Normal file
14
email/.config/goimapnotify/goimapnotify.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
configurations:
|
||||
-
|
||||
host: mail.amd.im
|
||||
port: 993
|
||||
tls: true
|
||||
tlsOptions:
|
||||
rejectUnauthorized: false
|
||||
starttls: false
|
||||
username: andrew@amd.im
|
||||
passwordCMD: 'pass show email/amd.im/andrew'
|
||||
boxes:
|
||||
-
|
||||
mailbox: INBOX
|
||||
onNewMail: "/home/amd/.local/bin/sync_email.sh"
|
14
email/.config/systemd/user/goimapnotify.service
Normal file
14
email/.config/systemd/user/goimapnotify.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=start goimapnotify
|
||||
# OnFailure=status-email-user@%n.service
|
||||
After=local-fs.target
|
||||
After=network.target
|
||||
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=300
|
||||
ExecStart=/usr/bin/goimapnotify
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue