Continuation of from the last post

Installing Alpine 2.0 in Ubuntu Linux is a fairly simple process but can be rather confusing and elusive as there is no GUI to help you out. I ran into a few hitches along the way so I thought I’d help out future command line enthusiasts who might run into the same issue.

Installing Alpine is as simple as:

sudo apt-get install alpine

A few seconds later you’ll have Alpine up and running. Type “alpine” into your terminal and then follow the prompts. To configure it to use Gmail you’ll go into the Setup menu by pressing “S” and from there you’ll go into Config by hitting “C”.

This is how I configured mine for Gmail:

Personal Name = <No Value Set: using "Your Friendly Name"> User Domain = gmail.com SMTP Server (for sending) = smtp.googlemail.com:587/tls/user=username@gmail.com NNTP Server (for news) = <No Value Set> Inbox Path = {imap.gmail.com:993/user=username@gmail.com/ssl/novalidate-cert}Inbox Incoming Archive Folders = <No Value Set> Pruned Folders = <No Value Set> Default Fcc (File carbon copy) = <No Value Set: using "sent-mail"> Default Saved Message Folder = <No Value Set: using "saved-messages"> Postponed Folder = <No Value Set: using "postponed-msgs"> Read Message Folder = <No Value Set> Form Letter Folder = <No Value Set> Trash Folder = <No Value Set: using "Trash"> Literal Signature = <No Value Set> Signature File = <No Value Set: using ".signature">

One thing worth noting there is the Inbox Path I set. Every other guide I read said to use

{pop.gmail.com:993/pop3/ssl/novalidate-cert/user=user@gmail.com}

which simply did not work for me. I struggled with this one for a good 20 min or so until I found this post which did it slightly different than most. Not sure why, but my computer needed that a bit different and if anything I’d guess it’s because I’m using the x64 build.

While you’re in the config menu you’ll also want to fix a few other things which were suggested on the Ubuntu Forums.

[Advanced User Preferences] [x] "Save Will Not Delete" [Pruning Rule] [x] "Donâ€™t rename, donâ€™t delete"

At this point you want to save your settings and exit Alpine. So hit E and then YQ to exit and once again Y to confirm.

Now before you start Alpine again I suggest setting it to save your password. Doing this is a bit convoluted but basically what you’re going to do is create an empty file in your home directory which will store your encrypted password.

cd ~ touch .pine-passfile alpine

When Alpine starts back up enter your Gmail password and it will then ask if you want to save it locally, hit Y. You will have to do this once more the next time you send an outgoing mail but after that you will not be prompted again for your Gmail password.

Now Alpine is all installed and you can be elite and say you read your email in the command line. You can of course take it one step further and add it to your screen profile and then attach it every time you SSH in. I’ve always got screen windows running for things like IRSSI and Hellanzb and Emacs, and now Alpine.