Tuesday, September 15, 2020

Using IMAP protocol to import/export emails (2026 Edition)

Using IMAP to transfer emails between Gmail and another email account

There are times when you want to move a collection of emails from one email account to another. Perhaps you are changing email providers, consolidating several accounts, or simply want to keep older messages in a Gmail account.

There are several ways to approach this, depending on the email services involved and what you want to preserve.

In this article, I will show you a practical method that uses an email client as an intermediary. The example uses Thunderbird to copy messages from an AOL account into a Gmail account through IMAP.

Helpful Information

This article is intended primarily for personal Google Accounts and consumer email accounts. If you are working with a Google Workspace account managed by an organization, the available settings and migration options may be different.

1. What this method actually does

The basic idea is straightforward.

Instead of trying to make Gmail directly retrieve messages from another email account, you use an email client such as Thunderbird to connect to both accounts through IMAP.

The email client acts as the intermediary.

For example:

AOL account → Thunderbird → Gmail account

Pro Tip

Although Gmail and AOL are used in this example, this method is not limited to those two services. The same basic approach can be used with other email accounts that can be accessed through the email client using IMAP.

You select messages in the AOL account and copy them into a folder belonging to the Gmail account.

Because the Gmail account is connected to Thunderbird through IMAP, the copied messages are then synchronized with Gmail. Once synchronization has completed, you can open Gmail in a web browser and verify that the messages are present there.

This is not a special Gmail import operation. You are using an email client to copy messages between two accounts, with IMAP providing access to the mail stored on the servers.

It is also important to understand that this is a manual transfer, not a permanent synchronization arrangement between the two accounts. Once you have completed the transfer, the two accounts do not become continuously synchronized with each other.

2. Before we start

Before beginning, make sure that both email accounts can be added successfully to the email client you intend to use.

The exact sign-in and authorization process can vary between email providers and can change over time.

Important: Use the current authentication process

Do not work around account-security protections simply to make an email client connect. If the email service requires a particular sign-in or authorization process, follow that service's current instructions.

For a personal Gmail account, there is also no longer a separate “Enable IMAP” switch that you need to turn on before using a current third-party email client. Google says IMAP access is always turned on for personal Gmail accounts. Current email clients should use the supported authentication process as offered.

You should also make sure that your email client is updated. An updated email client can support the latest authentication methods and security requirements. Also make sure that both accounts can send and receive messages normally before attempting a large transfer.

3. The accounts we'll use in this example

For this example, two accounts are used:

  • AOL — the source account containing the messages to be transferred.
  • Gmail — the destination account where the copied messages are to end up.

In Thunderbird, each email address added to the program is displayed as an account. In this article, the terms “Gmail account” and “AOL account” refer to those respective accounts as they appear in Thunderbird.

The important part of the procedure is that both accounts should be available through IMAP in the email client.

Thunderbird is used here because it allows multiple email accounts to be displayed together and provides straightforward ways to copy messages between folders. This can also be useful when the two email services do not provide a direct or convenient way to transfer messages between the accounts themselves.

Gmail Label Structure Web UI
Gmail Label Structure Web UI
AOL Folder Structure Web UI
AOL Folder Structure Web UI
Thunderbird Gmail Account Layout
Thunderbird Gmail Account Layout
Thunderbird AOL Account Layout
Thunderbird AOL Account Layout

At this point, the accounts are still separate accounts. Thunderbird is simply providing a common interface through which we can work with both accounts.

4. Create a destination folder

Before copying the messages, I recommend creating a dedicated destination folder under the Gmail account.

For example, you might call it AOL Transfer.

The exact name is not important. What matters is that you know where the transferred messages are going to appear.

In Thunderbird, create the folder under the Gmail account rather than under the AOL account.

Creating a new folder under the Gmail account in Thunderbird
Creating a new folder under the Gmail account in Thunderbird
Naming new folder in Thunderbird
Naming new folder in Thunderbird
Helpful Note: Gmail folders and labels

Gmail uses labels rather than traditional folders internally. When Gmail is accessed through IMAP, however, the Gmail account can appear in an email client with a folder-like structure. The way folders and labels are represented can therefore look somewhat different in Thunderbird from what you see in Gmail's web interface.

After the folder has been created and Thunderbird has synchronized the change, you should be able to see the new destination folder under the Gmail account.

New folder successfully synced across Thunderbird and Gmail UI
New folder successfully synced across Thunderbird and Gmail UI
Pro Tip — Why Creating a Dedicated Destination Folder Helps

A dedicated folder makes the transferred messages easier to identify and verify later. It also reduces the chance of accidentally mixing the transferred messages with existing mail in your Gmail inbox or another folder.

Once you have confirmed that the transfer was successful, you can decide how you want to organize the messages within Gmail.

5. Copy messages from the source account

Now we can begin the actual transfer.

Open the folder in the AOL account that contains the messages you want to transfer.

Select the messages you want to copy.

Pro Tip — Test with a small group first

Before transferring a large collection of messages, test the process with a small group. This gives you an opportunity to confirm that the messages, folders, attachments, and other details behave as expected before you commit to a larger transfer.

Copying messages from AOL to Gmail folder in Thunderbird
Copying messages from AOL to Gmail folder in Thunderbird

Use Thunderbird's Copy operation and select the destination folder that you created under the Gmail account.

The messages are now being copied from the AOL account into the Gmail account through Thunderbird.

Depending on the number and size of the messages, the operation may take some time.

At this point, the important thing is that you have copied the messages rather than removed them from the source account.

6. Why Copy rather than Move?

I recommend copying the messages rather than moving them for the following reasons.

First, copying leaves the original messages in the source account while you verify the transfer.

Second, if something does not behave as expected, you still have the originals available in the source account.

Third, copying gives you an opportunity to compare the transferred messages with the originals before deciding whether the originals should be removed.

Important

If preserving the originals is important to you, do not use a Move operation simply because it appears to be quicker. A Move operation can remove the message from its original location after the email client synchronizes the change with the server.

Copy first. Verify the result. Only then decide whether anything should be removed from the source account.

7. Checking the transferred messages

Once the copy operation has completed, look at the destination folder under the Gmail account in Thunderbird.

You should see the messages that you copied from the AOL account.

Transferred messages shown in the Gmail destination folder in Thunderbird
Transferred messages shown in the Gmail destination folder in Thunderbird

Because the ultimate destination is the Gmail account, let's also allow Gmail to synchronize the messages and check the same label through Gmail's web interface.

Side-by-side verification between client and Gmail web UI
Side-by-side verification between client and Gmail web UI

This second check is useful because it confirms that the messages are not merely visible inside Thunderbird. They have also been synchronized to the Gmail account.

8. Another way: Drag and drop

Important: Check whether drag-and-drop copies or moves

Do not assume that dragging messages always creates copies. Depending on the email client, the accounts involved, and how the drag-and-drop operation is performed, the action may copy or move the messages.

If keeping the originals is important, verify what the operation will do before releasing the mouse button.

Depending on the email client and the way its folders are displayed, you may also be able to select messages and drag them from one account or folder to another.

Selecting email messages in Thunderbird
Selecting email messages in Thunderbird
Dragging selected emails to target folder
Dragging selected emails to target folder

If the operation copies the messages, you can use it as an alternative to the explicit Copy command.

Moved messages reflected in Gmail web UI after synchronization
Moved messages reflected in Gmail web UI after synchronization

For that reason, I would still recommend using the explicit Copy operation when preserving the originals is important.

9. Allow the destination account to synchronize

After copying the messages, give the Gmail account enough time to synchronize the changes.

This is particularly important when transferring a large number of messages or messages with sizeable attachments.

Gmail account synchronizing transferred messages in Thunderbird
Gmail account synchronizing transferred messages in Thunderbird

Do not assume that the moment the messages appear in Thunderbird, every message has already finished synchronizing with Gmail's servers.

Pro Tip

Large transfers may take some time. If you have copied a substantial number of messages, allow the email client and Gmail enough time to complete synchronization before you begin deleting or reorganizing the originals.

The exact amount of time will depend on factors such as the number and size of the messages, your connection, and the behavior of the email services involved.

10. Verify the transfer before removing the originals

Important

This is the step I would not skip.

Before removing anything from the source account, verify the transfer in Gmail itself.

Pay particular attention to folders and labels, message organization, attachments, dates, and any other information that is important to you.

Open several transferred messages rather than checking only the message count.

If you have transferred a particularly important collection of emails, consider checking a representative selection of older and newer messages, messages with attachments, and messages from different folders.

Only after you are satisfied that the transferred messages are available in the destination Gmail account should you consider removing the originals from the source account.

And even then, if the originals are important, it may be wise to retain them for some additional period rather than deleting them immediately.

11. What about transferring in the opposite direction?

When both accounts have been added to the email client, neither account is permanently designated as the source account or the destination account. Either account can serve as the source or destination depending on which way you want to transfer the messages.

As long as both accounts can be accessed through the email client using IMAP, you can transfer messages between them in either direction.

For example, if you wanted to transfer messages from Gmail to another email account, you would add both accounts to the email client, identify the destination folder in the other account, and copy the required messages from Gmail to that destination.

The direction changes, but the basic process remains the same:

Source account → Email client → Destination account

The exact folder and label behavior can differ, however, so it is still worth performing a small test before transferring a large collection.

12. What this method does not guarantee

Using IMAP through an email client provides a practical way to copy messages between accounts, but it does not guarantee that every aspect of the source account will be reproduced exactly in the destination account.

For example, the way folders, labels, categories, flags, or other account-specific information are represented can vary between email services.

Attachments and message content may also need to be checked if they are particularly important.

The safest approach is therefore not to assume that a successful message count means that every aspect of the original mailbox has been reproduced perfectly.

This is another reason I recommend testing a small group first and verifying the result in the destination account.

Important

IMAP does not make two email services identical.

IMAP provides a common way for an email client to access and synchronize messages, but each email service can have its own features, folder/label structure, and handling of message information.

13. If you are transferring a large number of emails

A large transfer can take considerably longer than a small test.

If you have many thousands of messages, or messages containing large attachments, you may find it easier to transfer the messages in smaller batches or by folder.

You do not necessarily have to transfer the entire mailbox in one operation.

Working in smaller groups also makes it easier to identify a problem if something does not transfer as expected.

Pro Tip — Work in manageable batches

If you are transferring a large collection, consider completing one folder or a manageable group of messages at a time. Verify each batch before moving on to the next.

This can make the process easier to monitor and gives you a clearer opportunity to spot missing or incorrectly transferred messages.

If the email client appears to be downloading or synchronizing a very large amount of data, allow it to finish rather than repeatedly interrupting and restarting the process.

14. How this relates to Gmail's own import options

Gmail also provides its own ways of bringing messages from another email account into Gmail. These options are separate from the IMAP-based method described in this article.

The important distinction is that Gmail's own import facilities and an email-client transfer do not necessarily work in the same way. Depending on the option being used, Gmail may handle the messages differently, and some account or folder information may not be transferred in the same way as it would through an email client.

Google currently documents a one-time import option for bringing mail and contacts from another email account. Google also notes that folders and labels are not imported as part of that process.

At the same time, Gmail's web-based support for working with other email accounts is changing. Google is retiring Gmailify and the web-based “Check mail from other accounts” feature that uses POP. Google says that after the first quarter of 2026, new users can no longer use that POP-based feature, while existing users can continue using it until January 2027. One-time import of mail and contacts remains available.

For that reason, I would not recommend treating any particular Gmail import menu or account-retrieval option as a permanent part of Gmail. Google's available options and their interfaces can change over time.

If you want to use Gmail's own import facilities, check Google's current instructions for the options available at the time you perform the import.

For the procedure described in this article, however, the basic principle remains straightforward:

Source account → Email client using IMAP → Destination account using IMAP

This approach does not depend on a particular Gmail import menu. Instead, the email client handles the transfer between the two accounts, while Gmail subsequently synchronizes the copied messages.

15. Final thoughts

Using an email client with IMAP can provide a practical and relatively controlled way to transfer messages between two email accounts.

The basic process is:

Source account → Email client → Destination account

The most important part is not simply getting the messages to appear in the destination account. It is making sure that the messages have actually synchronized to the destination, verifying the result, and keeping the originals until you are satisfied that the transfer is complete.

For that reason, I recommend starting with a small test, copying rather than moving the original messages, allowing synchronization to finish, and then checking the transferred messages through the destination account's normal web interface.

Once you are satisfied with the result, you can decide how you want to organize the transferred messages and whether the originals should be retained or removed.

Helpful Note

An email client may also provide ways to import or work with email messages from existing archives or files in formats such as EML and MBOX. These options can be useful when you are working with archived email rather than transferring messages directly between two email accounts.

Gmail's web interface does not provide a general native facility for directly uploading EML or MBOX files into a Gmail mailbox, so an appropriate email client or other intermediary may be needed when working with these types of files.

However, importing EML or MBOX files is a different process from transferring messages between two accounts through IMAP and is outside the scope of this article.

Disclaimer

This article is provided for general informational purposes and is based on the author's experience with Gmail and Google Accounts. Gmail features, settings, menus, and procedures may change over time. The steps and screenshots in this article reflect the Gmail interface and functionality reviewed for this edition of the article.

This is an independent informational article and is not an official Google support page.

About the author

Somnath Datta is a Google Diamond Product Expert specializing in Gmail and Google Accounts. He is also a Mentor for new volunteers and Product Experts in both those forums.

He regularly shares technical guides, troubleshooting advice, and step-by-step solutions based on his experience helping Google users.

Wednesday, July 10, 2019

Resolving Name related issues in Gmail

Resolving name-related issues in Gmail

If you have noticed a different name appearing against your Gmail address when you send an email, or when you receive an email from someone, you could be curious about how or why this has happened.

This can be the case because the name displayed with an email address is not necessarily controlled by a single Gmail or Google Account setting. Depending on whether the name appears with a sent message or a received message, where the name appears, and how the Gmail address is being used, it may come from your Google Account, a Gmail setting, a contact entry, or the email application being used to send or receive messages.

This article explains the different possibilities and, more importantly, how to identify where that name is located so that you can correct it at the appropriate place.

Before you start: Identify where the name appears

Before changing anything, first identify where the unexpected name appears.

One of the most useful first questions is:

Does the unexpected name appear when you send an email, or when you receive or view an email?

This is an important clue because the source of the name may be different in each situation.

When the issue involves a sent message, the name may be associated with the Gmail sender settings or with the application being used to send the message.

On the other hand, when you receive or view a message, the name you see may instead be influenced by contact information or by the application or interface displaying the message.

The sent-versus-received distinction does not, by itself, identify the exact source of the name. It simply helps narrow down where you should investigate.

You should also identify which application or interface is involved.

Option 1: Check your Google Account name

One possible source of the name associated with your Gmail address is the name on your Google Account.

Your Google Account has personal information associated with it, including your name. That information can be displayed by Google in various places and may therefore be relevant when you notice an unexpected name associated with your Gmail address.

If you have recently changed your name, or if an older name is still appearing somewhere, checking the name on your Google Account is a sensible first step.

You can check your Google Account name using either of these official Google Account pages:

Google Account Name Change Screen
Google Account Name Change Screen

However, changing your Google Account name should not automatically be regarded as the solution to every name-related problem in Gmail.

Google Account Profile Edit Screen
Google Account Profile Edit Screen

To set how your name is displayed publicly, click the arrow icon (>) in the Display Name As section, select your preferred format, and click Save.

Google Profile Display Name Options
Google Profile Display Name Options

Option 2: Check the name used when sending mail from Gmail

Gmail has a separate setting that determines the name associated with messages you send from a Gmail address.

This setting can be found in Gmail's settings under Accounts and Import and Send mail as. Selecting Edit info beside the relevant address allows you to check the name being used when messages are sent.

Gmail Send Mail As Setting Screen
Gmail “Send mail as” Setting Screen

This is particularly important if the problem occurs when you send an email and the recipient sees an unexpected name alongside your Gmail address.

The name shown here can be different from the name currently displayed in your Google Account.

If the name shown in your Google Account and the name shown in your Gmail Send mail as setting are both correct, there is a greater possibility that the unexpected name is being supplied or displayed by a third-party email application or mobile app that you are using to access your Gmail address.

In that situation, continue with the next option and check the application or mail client through which you are using your Gmail address.

Updated Send Mail As Confirmation
Updated Gmail “Send mail as” Confirmation

Option 3: Check the email application you are using

Now it is time to look at the third-party applications you are using to access your Gmail address.

This can happen when a Gmail address is being used through commonly used third-party mail clients. For example, you could be using your Gmail address through Apple Mail, Outlook, or another mail application rather than through Gmail in a web browser.

Sender Name Settings in Mozilla Thunderbird
Sender Name Settings in Mozilla Thunderbird
Account Name Setting in iOS Mail App
Account Name Setting in iOS Mail App

Option 4: Check your own Gmail address in Google Contacts

Another possible source of an unexpected name is your own contact information.

If your Gmail address has been saved in Google Contacts, the contact entry may contain a name that is different from the name currently associated with your Google Account or the name used by Gmail when sending messages.

This can sometimes be overlooked because you may not think of your own Gmail address as a contact that needs to be checked.

You can open Google Contacts here:

https://contacts.google.com/

Self Contact Entry in Google Contacts
Self Contact Entry in Google Contacts
Hovercard Showing Custom Contact Name
Hovercard Showing Custom Contact Name

If you find an entry for your own Gmail address, check the name associated with that contact and correct it if necessary.

This is especially worth checking when the unexpected name appears in a place where Gmail or another Google service may be using contact information to identify an email address.

Hovercard Restored to Google Account Name
Hovercard Restored to Google Account Name

A useful test: Compare Gmail with the other application

If you are unsure where the incorrect name is coming from, perform a simple comparison.

First, sign in to Gmail through a web browser and send a test message to another email address that you can check.

Then send another test message using the application in which the incorrect name appears.

Compare the names shown with the two messages.

If the name is correct when sending from Gmail in a web browser but incorrect when sending through another mail application, that strongly suggests that the two applications are obtaining or displaying the name differently.

This comparison can help you avoid changing settings that are unrelated to the actual problem.

A simple way to work through the problem

Rather than changing settings at random, work through the possibilities in this order:

  1. Determine whether the unexpected name appears with a sent message or a received message.
  2. Identify exactly where the unexpected name appears.
  3. Identify which application or interface is displaying it.
  4. Check your Google Account name.
  5. If the problem concerns outgoing Gmail messages, check the Gmail “Send mail as” name.
  6. If you are using another mail application, check that application's account or sender-name settings.
  7. Check whether your own Gmail address has an incorrect name in Google Contacts.
  8. If necessary, compare the result from Gmail in a web browser with the result from the other application.
Visual summary showing the four main sources of a name associated with a Gmail address
Four places to check when troubleshooting a name-related issue in Gmail

The most important point is to determine which source is supplying the name before changing anything.

About the Author

Somnath Datta is a Google Diamond Product Expert specializing in Gmail and Google Accounts. He is also a Mentor for new volunteers and Product Experts in both those forums.

He regularly shares technical guides, troubleshooting advice, and step-by-step solutions based on his experience helping Google users and participating in the Google Help Communities.

Sunday, May 26, 2019

Revisiting Templates in Gmail (2026 Edition)

Templates in Gmail

If you regularly send the same type of information by email, you may find yourself repeatedly typing the same text or using copy-paste to reuse it.

Google provides a feature called Templates (previously called Canned Responses) that can make this much easier. A Template lets you save commonly used email content and insert that content into a new message whenever you need it.

Templates are particularly useful when you frequently send similar replies, instructions, explanations, or other routine messages but still want to review and personalize the message before sending it.


Before you start: Enable Templates in Gmail

Before you can create or use Templates, you need to enable the Templates feature in Gmail.

Open Gmail in a web browser and go to Gmail Settings. In the Advanced section, locate Templates and enable the feature.


1. Create a Template

Once Templates are enabled, open a new message and compose the content that you want to save for future use.

When the message contains the reusable content you want, open the More options menu in the compose window, choose Templates, and then choose the option to save the current draft as a Template.

Gmail will ask you to provide a name for the Template. Choose a name that will make it easy to recognize later.

After you save it, the Template will be available through the Templates menu whenever you need to insert it into a message.


2. Insert a Template

When you need to use a saved Template, start a new message in Gmail.

Open the More options menu, choose Templates, and select the Template you want to insert.

The saved content will be inserted into the message. You can then edit it as needed before sending.


3. Edit or Overwrite a Template

If you need to change the wording of an existing Template, first insert that Template into a new message and make the necessary changes.

When the revised content is ready, use the More options menu and select Templates. From there, choose the option to save the revised content as the same Template.

Gmail will replace the existing saved content with the revised version.


4. Delete a Template

If you no longer need a Template, you can remove it through the Templates menu.

Open the More options menu, choose Templates, and select the Template you want to delete.


Gmail will ask you to confirm that you want to delete the Template.


Practical ways you can use Gmail Templates

Here are some practical situations in which Gmail Templates can be useful.

When you regularly provide technical help

Imagine that you regularly help friends, family members, or other Gmail users with technical questions.

You may find yourself sending the same explanations repeatedly—for example, instructions for changing a setting, checking something in Gmail, or working through a particular problem.

Instead of rewriting those instructions each time, you can save the reusable explanation as a Template. When someone asks the same type of question, insert the Template into a new message and then add or change the details that apply to that person's particular situation.

When you regularly answer questions about something you know well

Imagine that people regularly ask you questions about a subject, hobby, interest, or personal activity that you know well.

You may often find yourself explaining the same basic information, providing the same background, or pointing people to the same resources.

A Template can give you a starting point for those replies. You can insert the saved explanation and then adapt it to the particular question you have received.

When you regularly provide instructions

Imagine that you frequently send instructions explaining how to do something.

This might involve setting up an application, changing a setting, following a particular process, or finding information.

If the instructions are largely the same each time, saving them as a Template can save you from recreating the explanation whenever someone asks.

When you regularly respond to enquiries about a personal activity

Imagine that people regularly contact you with questions about a personal project, community activity, informal volunteer activity, or something else you are involved in.

You may have a standard explanation, a set of useful links, or other information that you provide to many people.

A Template lets you keep that reusable information ready while still allowing you to personalize the response for each person.

When you regularly send the same type of follow-up

Imagine that you frequently send follow-up messages containing additional information, directions, instructions, reminders, or links.

If the basic structure and wording of those messages are usually the same, you can save that reusable content as a Template.

When you need it, insert the Template and add the details that are relevant to the current conversation.

When you find yourself copying an old email

Imagine that you repeatedly open an old email simply because you want to copy some of its wording into a new message.

That is often a good indication that the reusable part of the message could be saved as a Template instead.

The next time you need the same information, you can insert the Template directly into a new message rather than searching through your old email for the wording.

Somnath Datta profile picture

About Somnath Datta

Somnath Datta is a Google Diamond Product Expert specializing in Gmail and Google Accounts. He is also a Mentor for new volunteers and Product Experts in both those forums. He regularly shares technical guides, troubleshooting advice, and step-by-step solutions based on his experience helping Google users.