Advanced setups are possible, but may cause some confusion initially, because some settings interfere. An example of an advances setup is the following configuration, that resembles the setup from Figure 4.1:
archive_enable = yes
archive_after = 2
stub_enable = yes
stub_after = 60
stub_unread = no
delete_enable = yes
delete_after = 365
stub_unread = yes
purge_enable = yes
purge_after = 3650
cleanup_action = store
cleanup_follow_purge_after = yes
enable_auto_attach = yes
auto_attach_writable = no
In this example mode emails will be archived after two days as an archived copy, while the original remains in main store. After 60 days the copy from main store will be removed and replaced by a stub to the archived copy. After a year, the stub will be removed, while the copy in the archive remains.
To prevent the archive from growing forever, items will be removed after 10 years.