Tuesday, August 09, 2011

 

Emacs as a mail reader

Hi,

For some weeks now, I'm trying to use emacs as a mail reader. I want to remove sylpheed as I don't use it very often. Plus, I would like to become more power using emacs too.

As today my main machine is running under windows, things are a little bit more complex than using any unix.

So, here is my configuration : emacs 23.3.1.

To be able to get your mails from IMAPS servers, you need to be able to open a SSL connection. You can read Configuring Gnus and Gmail With IMAP on MS Windows. I prefer to use stunnel. So, I can manage a simplier gnus.el configuration.

Example for gmail:
  1. stunnel file
    1. [imaps-gmail]
    2. accept=localhost:12345
    3. connect=imap.gmail.com:993
  2. gnus.el for email reading

    1. ;;limit the number of fetch email (too avoid to slow down the system and to run in out of memory)
      (setq gnus-newsgroup-maximum-articles 30)
      ;;here, only 30 mails are fetched

    2. ;;gmail account
      (setq gnus-select-method '(nnimap "Example GMAIL"
      (nnimap-address "localhost")
      (nnimap-server-port 12345)
      (nnimap-authenticator login)
      (nnimap-stream network)
      (nnimap-authinfo-file
      "~/.imap-auth")
      ))

  3. the imap-auth file

    1. machine localhost login GMAIL_LOGIN password GMAIL_PASSWORD port 12345
You must have at least one gnus-select-method in this file before using the gnus-secondary-select-methods !!! It is hardly said on the web.

A great tutorial,My experiences from setting up Gnus with nnimap and Courier IMAP, about the splitting feature provided by emacs. Splitting is like an automatic sorting according to rules, like in outlook.

Sources
  1. Official emacs wiki : GnusGmail
  2. emacs wiki : gnus nifty tricks: the basics
  3. sample gnus.el config file
  4. another gnus.el sample
  5. a discussion about "the gnus-secondary-select-methods and use of variables"

Labels: , , , , , , , , , , , , , ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?