Import e-mail via IMAP into GMail?

Solution 1:

It's not supported by Gmail natively. However, since Gmail provides IMAP service itself, you can set up a desktop mail client (e.g. Thunderbird or Outlook) for both old and new accounts, then simply drag and drop all messages to Gmail's inbox.

There are also tools like imapsync which can copy everything automatically. (Although I am unsure about how they'd handle Gmail's unusual IMAP structure, so I'd probably stick to manual copying.)

Solution 2:

Gmail does not support importing mail via IMAP. However if you are a Google Apps user, then that Gmail does support it.