Retrieve emails from other IMAP accounts in Gmail *automatically* [closed]

The best solution I've come up with in this situation is to

  1. Forward the emails from the "other" account to the gmail address,
  2. Use gmail's "send as" feature to send as the "other" account, and
  3. Set the default reply address to whichever address the incoming email was sent to, so that if "[email protected]" receives an email, when you click reply the email will be sent as "[email protected]".

I had the same issue, and wrote a little node.js script which sets up a POP server to shadow the IMAP server. GMail then polls the POP server. It seems to work reasonably well, although it may still be a bit buggy. http://github.com/addrummond/imask