Skip to content

Archiving a mailbox

Vanderplanki Desktop archives IMAP mailboxes (e.g. Gmail, GMX, WEB.DE or T-Online) as well as Microsoft 365 and Outlook.com mailboxes (incl. Hotmail, Live and MSN).

Before you archive an IMAP mailbox with Vanderplanki Desktop, you usually have to make the following settings at your email service:

  • Enable IMAP: IMAP must be supported and, if this is not the case by default, enabled.
  • Enable two-factor authentication: With many email services, you have to enable two-factor authentication before you can create an app-specific password. It is not required for archiving itself.
  • Set up an app-specific password: With many email services, you have to create a separate password for programs like Vanderplanki and use it instead of your personal password.

For Microsoft 365 and Outlook.com mailboxes, these preparations are not required. Here, Vanderplanki accesses the mailbox via the Microsoft Graph API, and you sign in directly with Microsoft.

You can find guides for many email services under Guides for popular email services.

To archive a mailbox, create a job:

  1. Click Jobs on the left.

  2. Click Add.

  3. Select Archive Email and then click Next.

  4. If you have created more than one email archive, select the destination archive.

  5. Enter the email address of the mailbox and then click Next. Check This is a journal mailbox only for journal archiving.

  6. Select the type of the mailbox: IMAP Mailbox or Microsoft 365 or Outlook.com Mailbox. For addresses of Outlook.com, Hotmail, Live and MSN, Microsoft is already preselected. For Microsoft 365 mailboxes with a custom domain (e.g. name@your-company.de), select the Microsoft option yourself. Then click Next.

  7. Enter the connection settings (see below) and click Next. Vanderplanki checks the connection in the process.

  8. The properties of the job appear. Here you can make further settings:

    • Folders: Which folders of the mailbox are archived (see Select folders).
    • Post-Archive Email Deletion: Whether archived emails are deleted from the mailbox (not by default, see Post-archive email deletion).

    Then click Next.

  9. In the last step, give the job a name of your choice under Name. The email address is filled in by default. With Run now, the mailbox is archived right after you click Finish. With Run on a schedule, it is archived regularly in the background (see Running jobs on a schedule). Click Finish.

Setting Meaning
IMAP Server The name of the IMAP server, e.g. imap.gmx.net. For many email services, it is already filled in. Specify a different port with a colon, e.g. imap.example.com:1993. If none is specified, Vanderplanki uses port 993 (SSL/TLS) or 143 (STARTTLS and None).
Security SSL/TLS (default), STARTTLS or None. Use None only if your server doesn’t support encryption.
Accept all certificates Skips the check of the server certificate. Enable this option only if your server uses a self-signed certificate and you trust the server.
User Name Usually the email address. With some services (e.g. WEB.DE or iCloud), only the part before the @. Vanderplanki fills in the appropriate value for known services.
Password Click Enter. Depending on the email service, this is your personal password or an app-specific password.

After you click Next, a window opens in which you sign in with Microsoft and allow Vanderplanki to access your emails. In doing so, Vanderplanki also requests the permission to modify emails. It is needed for the optional post-archive email deletion.

  • Enter the address you sign in to Microsoft with (not an alias), and sign in with exactly this account. Otherwise, Vanderplanki reports that the user name doesn’t match the email address. Mailboxes that you cannot sign in to yourself (e.g. shared mailboxes) can therefore not be archived.
  • If Microsoft later requires you to sign in again, the sign-in window opens by itself the next time the job runs, also for scheduled runs.

Under Advanced Settings, you specify what happens when an email cannot be downloaded in the standard MIME format due to errors on the Microsoft servers:

  • Skip and show error message (default): The email is skipped, and the run is considered failed.
  • Skip and hide error message: The email is silently skipped and not archived.

In the job properties, click “…” next to Folders to specify which folders are archived:

  • Included Folders: Only these folders are archived. If the list is empty, all folders are archived.
  • Excluded Folders: These folders are not archived, even if they are included.

In each case, click Add to select a folder from the mailbox. With Include subfolders, you specify whether its subfolders are meant as well. With Show Effective Folders, you see which folders are actually archived according to your rules. Folders shown in italics only serve the structure and are not archived themselves.

When the job is created, Vanderplanki automatically excludes folders such as Drafts, Spam, Trash or Deleted Items, and Outbox. Folders that you create in the mailbox later are archived, unless your rules exclude them.

If no folder of the mailbox matches an included or excluded folder anymore, e.g. because it was renamed or deleted, the job reports an error and archives nothing until you have adjusted the folders. Show Effective Folders points this out as well.

If deleted emails are also to be archived as long as they are in the trash, remove the trash from the excluded folders. When this makes sense is described in the Guide to GoBD-compliant email archiving.

  • Each email is archived true to the original with all attachments, together with the information about which folders it is in. The folder structure of the mailbox is preserved in the archive.
  • If an email is in several folders (e.g. with Gmail labels), it is stored only once and appears in all of these folders in the archive. With Gmail, folders such as [Gmail]/All Mail are also included.
  • Identical content is stored only once where possible, even if the emails in which it occurs differ, e.g. an attachment in several emails or the same email under Sent at the sender and at the recipients.
  • If you run a job several times, only new emails are archived.
  • If you move an email in the mailbox to another (archived) folder, it is moved in the archive as well. Likewise, a folder renamed in the mailbox is also renamed in the archive.
  • If you delete an email in the mailbox, it remains in the archive. An email that is deleted before it was archived, however, doesn’t get into the archive, unless the trash is archived as well (see Select folders).
  • The read status in the mailbox is not changed by archiving. Flags (e.g. flagged for follow-up) are not archived.

How to open and change a job is described under Edit jobs. For mailbox jobs, the following also applies:

  • The type of the mailbox (IMAP or Microsoft) cannot be changed afterwards. Create a new job for that.
  • For Microsoft 365 and Outlook.com mailboxes, the email address cannot be changed.
  • If you change the server or the user name of an IMAP mailbox, you have to enter the password again.
  • If you change the email address of an IMAP mailbox, Vanderplanki creates a new folder for this address in the archive and archives all emails there again. The emails archived so far remain under the old address.

General information on warning icons and reports can be found under Troubleshooting jobs.

  • The IMAP server rejects the user name and password: Check the user name and whether your email service requires an app-specific password (see Preparation).
  • Establishing a secure connection fails: Check the server and Security. If your server uses a self-signed certificate, you can enable Accept all certificates.
  • Microsoft reports during sign-in that admin approval is required: See KB1002: Admin approval in Microsoft 365.
  • Individual folders of a Microsoft 365 or Outlook.com mailbox are not archived: See KB1001: Missing folders in Microsoft 365 and Outlook.com.