Is it possible to use IMAP when using Pine?

I'm looking to sync up my Gmail account for easy emailing and wanted to know if it was something that Pine can handle.


Very easy! (Well, kinda like a magic trick... easy once you've seen it done...)

In Alpine, go to '(S)ettings', then 'Collection (L)ists', then (A)dd new, fill in the fields:

Nickname: MyGmail
Server: imap.gmail.com/ssl/NoValidate-Cert/user=youremail@gmail.com

Of course, Nickname is your choice, Server needs your proper email address, leave Path & View empty, there are specialized uses for them, I haven't needed them.

CTRL-X to save

From the main menu, going to 'Folder (L)ist', then selecting your new collection, should cause Alpine to prompt you for your password. Entering that, you should see your gmail folder (label?!) structure. For gmail's purposes, 'folder' and 'label' are identical.

You MAY need to start Alpine with the '-passfile=xxxx' command line option to cause alpine to remember your passwords rather than typing it in each startup of Alpine, but I forget if you need it all the time or just the once to enable it. Try setting up the "collectionlist" first, see what happens, it's been so long since I've started from scratch with pine/alpine/realpine.

You may add as many "CollectionLists" as you like, I've got several other imap accounts listed, you can adjust the order to put more frequently used ones up top or whatever.

I seriously recommend walking through the entire list of 'config' options and using the '?' help function to learn what everything does.

Hope it helps.

  • 1
    Yes, you need the -passfile=FILE parameter every time. And FILE must already exist: touch FILE first. And remember to make it readable only to you: chmod go-rwx FILE.
    – mpy
    May 4 '13 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.