info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my vs maildir


From: Philipp Haselwarter
Subject: Re: my vs maildir
Date: Sun, 02 Jan 2011 11:38:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Well basically you need a server to open a port providing a socket that
your client can talk to. But if all of this is happening on one machine
it's a bit of a long way around.
Launching the `imap-shell-program' directly provides you with the same
interface you'd get if you were 
talking to your server over telnet but without having to do all the
networking fun.

This saves you some overhead and has the advantage that
you don't have to worry about security issues all that much; either
dovecot can read your files or it can not.
At least that's my understanding (guess) of what's happening :)

While your typical local imap server would look something like
--8<---------------cut here---------------start------------->8---
'(nnimap "localhost"
         (nnimap-stream network)
         (nnimap-server-port 143))
--8<---------------cut here---------------end--------------->8---

A minimal setup using the shell stream could be:
--8<---------------cut here---------------start------------->8---
(setq nnimap-shell-program "MAIL=maildir:$HOME/Maildir /usr/lib/dovecot/imap")
(setq gnus-select-method
      '(nnimap "localhost"
               (nnimap-stream shell)))
--8<---------------cut here---------------end--------------->8---
NOTICE: `nnimap-shell-program' is a string, not a list


-- 
Philipp Haselwarter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]