How to Archive Email Using IMAP

Managing your email can lead to questions about storage and performance. If you’re an InMotion Hosting customer using IMAP, you might face server resource usage issues. This is especially true if you have a lot of messages in your inbox.

When using IMAP, your email client syncs message headers from all emails in folders like your Inbox or Sent folders every time it checks for new mail. Having thousands of emails in these folders can make this synchronization process time-consuming and resource-intensive for the server.

Archiving your email is a great way to address these potential resource issues and keep your email account efficient. By moving older messages out of your main folders, you reduce the number of message headers that need to be synced regularly. This helps ensure speedy retrieval of new messages and prevents impact on server performance.

This guide will walk you through the steps you can take to archive your IMAP emails yourself, using methods supported by your InMotion Hosting account.

Understanding IMAP and Archiving

First, let’s quickly recap how IMAP differs from POP3. With POP3, when you check your email, messages are typically downloaded and removed from the server, much like clearing out a physical post office box. With IMAP, however, a copy of the message remains on the server, allowing you to access your emails from multiple devices.

While this multi-device access is convenient, it means messages accumulate on the server over time. Archiving helps manage this accumulation.

Archiving can generally involve moving emails to a designated archive folder. This folder can reside either on the server (as an IMAP folder) or on your local computer (as a local folder). Storing messages in local folders directly on your computer can help reduce the disk space used by your email account on the server. Keeping primary folders like the Inbox below around 1,000 messages is recommended for efficiency.

Customer-Managed Archiving Methods

Here are a couple of ways you can archive your IMAP emails based on the options available:

Creating a Local Folder in Thunderbird

One way to archive messages and reduce server disk space is by creating a local folder directly in your Thunderbird email client. These folders reside on your computer.

Here are the steps:

  1. In Thunderbird, right-click on Local Folders
  2. Select New Folder…
  3. Give your new folder a name
  4. To archive messages from the server into this new local folder:
  5. Select the messages you wish to archive. You can select multiple emails by clicking the first one, holding the Shift key, and clicking the last one, or by holding the Control key and selecting individual emails.
  6. Right-click on the selected messages
  7. Choose Move To > Local Folders > Your folder’s name

Moving emails to a local folder in Thunderbird means they are no longer stored on the Gmail server, for example. If you need to access old emails that were previously saved on your computer after reinstalling Thunderbird, you would typically need to reconnect your old email account to Thunderbird first, or somehow get the emails into an account accessible by Thunderbird, before you can store them in a local account.

Note that it is not possible to create a new main inbox folder within local folders. If you send a copy of a sent message to a local folder, it should remain there indefinitely. If you move messages to a local folder and they aren’t deleting from the original location as expected, they might disappear and then reappear.

Creating Server-Side IMAP Folders in Webmail or Other Clients

Another approach is to create archive folders directly on the server within your IMAP account structure. These are server-side IMAP folders. You can create these via your email client or one of the webmail clients available (like Horde or RoundCube). Once created on the server, you can subscribe to these folders from your email client.

While specific step-by-step instructions for creating these folders aren’t provided for all clients in the sources, the process is generally similar across mail clients. Here are the steps provided for creating an IMAP folder in Apple’s Mail application as an example:

  1. Right-click the IMAP account you want to add a folder to
  2. Click New Mailbox from the drop-down
  3. Enter a name and click Create

You can make server-side IMAP folders in Horde and RoundCube. These folders will show up in clients like Gmail if it’s set up as IMAP.

Using server-side IMAP archive folders means messages stay on the server. This uses up your disk space. But, accessing these folders saves resources because they only sync when you click on them.

Moving Messages to Archive Folders

To move messages, whether to a local or server-side IMAP folder, it’s similar to Thunderbird. Just pick the messages and use the “Move To” function to send them to the archive folder.

Archiving messages moves them from one folder to another. To delete messages left in the original folder, you must do that separately. You can delete emails in Thunderbird by selecting them with the Shift or Control key.

Conclusion

Archiving IMAP emails helps keep your email account running smoothly. You can create local folders on your computer or server-side IMAP folders. This helps manage messages in your main folders.

By archiving old messages, you make your email experience better. It also helps avoid problems with using too many resources.

If you have more questions, or would like our assistance with archiving emails over IMAP, please open a ticket for our support team.

Share this Article
Carrie Smaha
Carrie Smaha Senior Manager Marketing Operations

Carrie enjoys working on demand generation and product marketing projects that tap into multi-touch campaign design, technical SEO, content marketing, software design, and business operations.

More Articles by Carrie

16 thoughts on “How to Archive Email Using IMAP

  1. As per the article above, yes you can subscribe to it. If you’re using a separate client, you would still require the same login credentials to get into the mail box. If you want to use a different email client, then yes, using a separate email client would probably easier. However, the subscription issue is primarily for IMAP, not POP3 mail protocols. So you would need to use IMAP.

    1. Hello Mike,

      Unfortunately it does not as POP does not handle seperate folders correctly. It combines them all so if you have your email account archived you should be using IMAP.

      Best Regards,
      TJ Edens

  2. my actual inbox is ussally under 150 messages. I like to hold on to my sent and trash mailboxes for work purposes for longer and it seems auto archive would work well

    1. If solely for the purposes of keeping specific messages, I recommend simply placing them in different folders.

  3. Are there some better screen shots?

    Do I adjust the settings or does tech support?

    can I have it just archive my trash and sent folders?

    1. Unfortunately, we do not have any addition screenshots.

      Email archiving is done by technical support via a verified ticket.

      Archiving your trsh and sent folders do not typically have the performance impact that your inbox does as sent and trash folders are not accessed frequently. The reason that archiving your inbox helps is due to the entire inbox being loaded when accessing it. If the inbox is archived, only content that is being accessed in that particular archive is being loaded.

  4. I have a few questions about how Automated Archiving works.

    1. When it says inbox, does that also include trash and sent folders?

    2. Can it be set for a different time frame then 30 days?

    3. If I dont like how it effects my work flow, can I turn it off? if yes what hapens to the archived messages?

    1. The inbox does indeed include the trash and junk mail. Different time frames can indeed be set, depending on your preference as well as thresholds such as number of emails (ex: keep 100 emails and archive the rest). You may ask for email archiving to be disabled, however, it is not easily reversed.

    2. In addition, not archiving your mail if you have a large inbox using IMAP can cause resource usage so archiving your mail is typically a good idea if you have a large inbox.

  5. We have an employee that accesses his email account through Gmail (set up as iMAP). If we set his account to auto archive on the server will he be able see, as described above and for an iPhone, the the archive folders in Gmail?

  6. I had a few questions for your support staff regarding IMAP archiving and wanted to share them here for anyone else who might run into them down the line.

    1.  Does IMAP archiving result in a temporary, or permanent, increase in the amount of hard drive space the email account requires?  The cPanel documentation states the following:

    “Note: When you enable Email Archiving, the amount of disk space used can quickly double depending on the length of time you store messages. Verify that your disk drive has ample space before you enable Email Archiving”

    from:

    https://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/EmailArchiving

     

    2.  How does your automated IMAP archiving process (I am assuming this is  email_archive_maintenance from the cPanel documentation) handle existing directories?  Are emails removed from them, and recategorized by date in Archives -> Year -> day/month folders?  Are year -> day/month folders created within each existing directory?  Or are existing directories not archived?

    3.  Is it possible to specify which directories to archive, and which directories to not archive?

    4. Your doc “Possible server resource usage problems when using IMAP“, describes how IMAP connections must loop through all of the messages in the Inbox folder, which can lead to performance issues.  Do IMAP connections also need to loop through other subscribed imap folders?

    Is the key to lower the overall number of emails in the Inbox, or is it to lower the overall number of emails in any subscribed folder which has a large number of emails?

    Thanks from Netpay!

    1. When email archiving is turned on, it will only archive the main inbox and will not affect your created folders. The subscribed email folders are also reviewed, but only when reviewed by your mail client. So in most clients, unless you click on the folder, it will not loop through the mail within it. This saves on resources as it is looping through folders only when requested.

Comments are closed.