Post-archive email deletion
By default, Vanderplanki makes no changes whatsoever to the source mailbox (or to the source folder with email files; in the following, only the term mailbox is used). However, you can set up Vanderplanki so that archived emails are deleted from the mailbox, e.g. so that your mailbox doesn’t fill up.
Post-archive email deletion is only included in certain licenses.
Set up email deletion
Section titled “Set up email deletion”- Open the job (see Edit jobs).
- In the job properties, click “…” next to Post-Archive Email Deletion.
- Enable Delete messages from the mailbox after archiving (for email files: Delete message files after archiving).
- If needed, enable the filters described below and click OK.
- Click Next and then Finish.
Without filters, the following emails are deleted from the mailbox:
- Emails that have just been archived. Vanderplanki first makes sure that they have been stored successfully on all archive stores currently being written to.
- Emails that are already in the archive.
Only emails from folders that the job archives are deleted. The deletion takes place after archiving. If you cancel the run during archiving, nothing is deleted. If you cancel it during the deletion, the emails deleted up to that point remain deleted.
In addition, emails are only deleted if the archive then has at least as many good-rated copies as specified under Redundancy. Otherwise, the emails remain in the mailbox, and the job reports an error. As soon as enough copies are rated good again, the next run deletes them.
Filters
Section titled “Filters”To restrict the email deletion further, the following filters can be enabled. If several filters are enabled, an email has to meet all of them to be deleted.
Only if older than …
Section titled “Only if older than …”An email is only deleted if its date is older than the specified period (in days, weeks, months or years), e.g. 1 year. This way, the recent emails remain in your mailbox.
As the date, Vanderplanki uses, depending on the type of the mailbox:
- IMAP: The
Datefield from the headers of the email. If it is missing or not readable, the email is not deleted. - Microsoft 365 and Outlook.com: The date received (
receivedDateTime). - Email files: This filter is not available.
Only if archived before more than …
Section titled “Only if archived before more than …”An email is only deleted if it has already been in the archive for longer than the specified period, e.g. 1 week. What counts is the time of archiving.
If an email is in several folders (e.g. with Gmail labels), it is archived only once. All occurrences then have the same (oldest) time of archiving, even if the email only got into another folder later (e.g. through a new label).
Only if not flagged
Section titled “Only if not flagged”An email is only deleted if it is not flagged (depending on the email service or client, flagged for follow-up or starred). For email files, this filter is not available.
Journal mailboxes
Section titled “Journal mailboxes”For jobs that archive a journal mailbox, post-archive email deletion can only be turned on or off. The filters described above are not available there. For email files that are archived into the journal, the option is called Delete message files after archiving.
Troubleshooting
Section titled “Troubleshooting”- The job reports too few good-rated copies: Check under Archives which copies of the archive are not rated good, e.g. because the check for errors of an archive store is due or a removable medium was not connected during the run. Fix the cause, or adjust the redundancy.
- IMAP: Vanderplanki needs the IMAP extension UIDPLUS to delete individual emails specifically. If your server doesn’t support it, the deletion fails with a corresponding error message. The emails are archived anyway.
- Email files: A file that has changed since it was read is not deleted. The job reports it as an error; the other files are deleted.
- Microsoft 365 and Outlook.com: The deletion requires the permission to modify emails, which you granted when signing in.