mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
dovecot: Auto-archive unflagged messages in inbox
This commit is contained in:
parent
779e6e09f9
commit
5afcea8f05
@ -53,6 +53,16 @@ namespace inbox {
|
||||
special_use = \Sent
|
||||
}
|
||||
|
||||
mailbox Archive {
|
||||
auto = create
|
||||
special_use = \Archive
|
||||
}
|
||||
|
||||
mailbox Archives {
|
||||
auto = no
|
||||
special_use = \Archive
|
||||
}
|
||||
|
||||
mailbox Trash {
|
||||
auto = subscribe
|
||||
special_use = \Trash
|
||||
|
@ -14,3 +14,5 @@ systemd:
|
||||
enabled: true
|
||||
- name: dovecot-fts-optimize.timer
|
||||
enabled: true
|
||||
- name: dovecot-autoarchive.timer
|
||||
enabled: true
|
||||
|
12
service/dovecot/systemd/dovecot-autoarchive.service
Normal file
12
service/dovecot/systemd/dovecot-autoarchive.service
Normal file
@ -0,0 +1,12 @@
|
||||
[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 2w
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
9
service/dovecot/systemd/dovecot-autoarchive.timer
Normal file
9
service/dovecot/systemd/dovecot-autoarchive.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Auto-archive Dovecot inbox messages
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user