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


_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to