Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: patch to ognus-0.24 to customize imap-shell-program
       [not found] <y208ykavq4r.fsf@nospam.net>
@ 2004-01-14  9:40 ` Simon Josefsson
  0 siblings, 0 replies; only message in thread
From: Simon Josefsson @ 2004-01-14  9:40 UTC (permalink / raw)


Alberto Lusiani <alusiani@nospam.net> writes:

> I have assembled a small patch to allow customization of the nnimap.el
> imap-shell-program variable in ognus-0.24.
>
> When reading mails from an IMAP server, via nnimap, using
> stream=shell, the commands in imap-shell-program list are sequentially
> tried untill one succeeds. With the following patch, one can use a new
> nnimap parameter, 'nnimap-shell-program' to customize
> imap-shell-program for each defined nnimap backend.  If this parameter
> is not used, gnus follows the traditional behaviour.
>
> I submitted a similar patch already in the past, for pgnus.  Actually,
> I submitted two patches, in order to provide this same functionality
> for IMAP:
> - when using nnimap
> - and when using IMAP in mail-sources.
> Ognus-0.24 has the latter patch in, while the former one has been
> apparently lost.
>
> These are the modifications to nnimap.el:
>
> #### cut here ####
> --- ognus-0.24/lisp/nnimap.el   Sun Apr 20 14:04:10 2003
> +++ /afs/pi.infn.it/user/lusiani/local/lib/emacs/ognus/lisp/nnimap.el
>  Wed Jan  7 18:10:17 2004
> @@ -271,6 +271,14 @@
>  Possible choices: gssapi, kerberos4, starttls, tls, ssl, network,
> shell.
>  See also `imap-streams' and `imap-stream-alist'.")
>  
> +(defvoo nnimap-shell-program nil

Hm, doesn't it simply work to use `imap-shell-program' directly in
your server method?  I.e.:

(setq gnus-secondary-select-methods '((nnimap "foo"
                                              (imap-shell-program "foo"))))

It is perhaps not well documented that you can put any variables in
the server method.  (Probably rightly so.)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-14  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <y208ykavq4r.fsf@nospam.net>
2004-01-14  9:40 ` patch to ognus-0.24 to customize imap-shell-program Simon Josefsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).