4

I am trying to use emacs and gnus as a mail reader. There are several snippets of instructions online for how to do this with offlineimap and dovecot, however they seem to be for the earlier version of dovecot. I have successfully installed offlineimap and dovecot2 (using Archlinux pacman). I have both offlineimap and dovecot "working." I can retrieve my mail from my university's imap server using offlineimap. Dovecot starts and I can login to telnet localhost in a terminal. However, I have tried several commands in my .gnus.el file, but I am unable to achieve an integration with gnus that will allow gnus to find my local email folders. I have placed the local address of my Maildir in the dovecot configuration files.

Any advice or pointers would be appreciated. Please suggest any additional information that I should provide to assist in the diagnosis of my problem.

brittAnderson
  • 1,428
  • 11
  • 25
  • 1
    thank you Daimrod, you pointed me in the right direction, but I ended up doing something slightly different. I changed the maildir variable to include the layout argument, and in .gnus.el I did the following:`(setq imap-shell-method /usr/lib/dovecot/imap)` and `(setq gnus-secondary-select-methods '((nnimap "mail" (nnimap-stream shell))))` – brittAnderson Apr 03 '12 at 10:06

1 Answers1

4

Here is how I do it:

I use getmail and offlineimap to sync my mails into ~/mail/ in Maildir format.

I have mail_location = maildir:~/mail:LAYOUT=fs in my /etc/dovecot/conf.d/10-mail.conf.

and in my .gnus.el

(setq gnus-secondary-select-methods '((nnimap "localhost" (nnimap-stream network)))) Moreover, dovecot only listens to localhost.

Start Gnus with M-xgnusRET, browse servers with ^, select your server with RET, subscribe and unsubscribe to your mailboxes with U.

Daimrod
  • 4,902
  • 23
  • 25