How to set up Alpine with a Gmail account

From Salix OS
Revision as of 19:25, 15 June 2011 by Mimosa (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to set up Alpine with a Gmail account

Alpine is basically the same application as Pine, which used to be widely used on university computer sytems around the world. It is a text-based console email client which is very easy to learn and use, and many people prefer it to webmail or graphical email clients. There must be hundreds of quick guides to using Alpine with Gmail. This is simply one way of doing it, with the merit that it actually works for Salix.

First, make sure your Gmail account is set to use IMAP. Almost certainly, it is already.

Alpine's configuration file is ~/.pinerc. You can use Alpine's menus to change the configuration, but it may be easier to edit the file directly. Back it up first.

Assuming your account is your.name@gmail.com, change these settings from their defaults as follows:

/b/personal-name=your.name user-domain=gmail.com smtp-server=smtp.gmail.com/novalidate-cert/tls/user=your.name@gmail.com inbox-path={imap.gmail.com/novalidate-cert/ssl/user=your.name@gmail.com}inbox/-b/

Many guides tell you to specify the ports:

/b/smtp-server=smtp.gmail.com:587/novalidate-cert/tls/user=your.name@gmail.com inbox-path={imap.gmail.com:993/novalidate-cert/ssl/user=your.name@gmail.com}inbox /-b/

but this doesn't seem to be necessary. There is a problem with certificate authentication, and if 'novalidate-cert' isn't there, Alpine keeps asking you whether you mind. If you /i/do/-i/ mind, maybe a solution can be developed along these lines:

http://www.madboa.com/geek/pine-ssl/

Make sure the /b/feature-list/-b/ includes the following items as set:

/b/enable-incoming-folders enable-incoming-folders-checking/-b/

... and that's basically it. Alpine is highly configurable. Here are a few more features I use:

/b/continue-tab-without-confirm/-b/ # the next few eliminate tedious confirmation requests /b/expunge-without-confirm quit-without-confirm no-check-newmail-when-quitting enable-search-and-replace enable-alternate-editor-implicitly/-b/

This last one means you get the editor of your choice instead of Alpine's default, but you must also specify it:

/b/editor=pyroom/-b/ #substitute your favourite text editor

Similarly:

/b/image-viewer=viewnior url-viewers=/usr/bin/firefox/-b/ #substitute your favorite browser

The .pinerc file is long and extensively commented. If necessary, use search to find the lines you need to change. Everything in bold comes from the file.

Finally, note that deleting an email has the same effect as archiving it when using the web interface. There's probably a fix for this, but it is actually in line with the way many people use their Gmail accounts anyway.