coreos-home-server/service/dovecot/systemd/dovecot-autoarchive.service

13 lines
283 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Auto-archive Dovecot inbox messages
Wants=dovecot.service
After=dovecot.service
[Service]
Type=oneshot
SyslogIdentifier=%N
ExecStart=/bin/podman exec dovecot doveadm -v move -A INBOX.Archive mailbox INBOX UNFLAGGED BEFORE 1w
[Install]
WantedBy=multi-user.target