Gmail accounts and disproportionally large ost- or pst-files

My mailbox size as reported in Gmail is 7.3GB. However, my mailbox size reported in Outlook is 15GB and my pst-file is 19GB.

Why is there such a huge difference and how can I reduce the amount of space the pst-file takes on my disk?

Gmail buttonWhen you configure your Gmail account via IMAP, you’ll also find an “All Mail” folder in the [Gmail] root folder which lists all your messages again, regardless which folder they are in. This will basically duplicate all mails and also double the mailbox size.

To reduce the size, unsubscribe from the “All Mail” folder and run Compact Now for your account.

Note: To a lesser degree, Labels can have the same impact. Additionally, when you use Outlook 2013, which uses ost-files for IMAP accounts, there could also be a large amount of data stored in a folder which is marked “This computer only”.

Unsubscribe from the All Mail folder

You can unsubscribe from the “All mail” folder in the following way;

  1. Right click on the top of your Gmail mailbox (so one level above the [Gmail] folder itself) and choose IMAP Folders…
  2. In the IMAP Folders dialog click on the Query button.
  3. From the folder list that is being retrieved select; [Gmail]/All Mail
  4. Press the Unsubscribe button.
  5. Press OK to close the IMAP Folders dialog.

Unsubscribe from the All Mail folder of your Gmail IMAP account
Unsubscribe from the All Mail folder to remove duplicate content and make the pst-file smaller.

Labels turn to Folders

When you assign multiple labels to a single message in Gmail, then this message will also be downloaded and saved multiple times; once for each label

This is because these Labels are converted into Folders when connecting via IMAP.

Other than trying to limit the amount of Labels you assign to a single messages or changing your sorting method, there isn’t a true workaround for this.

Compact the pst-file or ost-file

Now that you have unsubscribed from the All Mail folder, you can force Outlook to directly compact the pst-file or ost-file so that the size of the pst-file will be reduced and free space is returned to your disk.

  1. Right click on the top of your Gmail mailbox and choose Properties.
  2. Click on the button Advanced…
  3. Click on Compact Now.

Note 1: Even after compacting your ost-/pst-file, it could still be 25% or even up to 40% larger than the reported mailbox size in Outlook. This is because the file also includes hidden items such as indexes, rules, views, forms, quick steps and other meta data).

Note 2: Depending on the size of your ost-/pst-file and the speed of your disk, the compacting process could take quite a while, could slow down your computer and block access to Outlook. You might want to consider running this process overnight instead. For more info about running Compact Now also see: Shrink pst-file after cleanup with Compact Now.

Note 3: Outlook will also automatically compact ost-files and pst-files when it is left open and the computer is idle for a a while. 

All Mail Folder Search Folder alternative

New Search Folder buttonIf you used the All Mail Folder and want to continue to use it without doubling your ost-/pst-file, you can create a “All Mail” Search Folder as an alternative;

  1. Create a new Search Folder (keyboard shortcut: CTRL+SHIFT+P).
  2. Select: Create a custom Search Folder.
  3. Click on: Choose…
  4. Specify a name. For instance; All Mail
  5. Click on “Browse…” and verify that the root of your Gmail mailbox is selected and that the option “Search Subfolders” is enabled.
  6. Click OK until you’ve returned to the main Outlook window.
MAPILab
Use "4PM76A8" to get a discount when ordering!