Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: ding@gnus.org
Subject: Re: Imap split, does not work (of course)
Date: Wed, 02 Feb 2011 19:13:00 -0500	[thread overview]
Message-ID: <87d3narn5f.fsf@maru.md5i.com> (raw)
In-Reply-To: <nlhbcmbrv3.fsf@news.eternal-september.org> (Richard Riley's message of "Wed, 02 Feb 2011 12:25:36 +0100")

Richard Riley <rileyrg@googlemail.com> writes:

> If someone could explain the concept of "backend slots" vs using "setq"
> it would help me a lot.

Well, in the manual they are not called "backend slots".  They are
called "server variables", or "server parameters".  There is even an
info page devoted to describing this, section 6.1.5.

Their purpose is as variables that can differ from server to server if
your setup contains multiple servers.  These variables are set as part
of the `gnus-select-method' or `gnus-secondary-select-method's.  A
select method is a list consisting of a symbol, a name, and then an
optional set of "server variable" pairs.  An example from the docs:

     (nnml "public"
           (nnml-directory "~/my-mail/")
           (nnml-active-file "~/my-mail/active")
           (nnml-newsgroups-file "~/my-mail/newsgroups"))

The `nnml' symbol is the actual select method.  The name of the server
is "public", and it set three server variables associated with this
server.  

> I have been unable to see when something should be set with setq and
> when things are passed as a parameter to secondary-methods call.

Now, the `gnus-select-method' is usually set using `setq'.  For the
above example:

(setq gnus-select-method 
      '(nnml "public"
             (nnml-directory "~/my-mail/")
             (nnml-active-file "~/my-mail/active")
             (nnml-newsgroups-file "~/my-mail/newsgroups")))

On the other hand, `gnus-secondary-select-method' is a set of servers,
so it would set there like this:

(setq gnus-select-method 
      '((nnml "public"
              (nnml-directory "~/my-mail/")
              (nnml-active-file "~/my-mail/active")
              (nnml-newsgroups-file "~/my-mail/newsgroups"))))

Note the extra pair of parentheses.  A second would be added like this:

(setq gnus-select-method 
      '((nnml "public"
              (nnml-directory "~/my-mail/")
              (nnml-active-file "~/my-mail/active")
              (nnml-newsgroups-file "~/my-mail/newsgroups"))
        (nnbogus "bogus"
                 (bogus-var-1 "string value")
                 (bogus-var-1 symbol-value))))


All this probably went into more detail than you actually needed, but I
feel it is better to give too much information than too little.  (I now
wait for someone to tell me that I am mistaken about what was meant by
"backend slots" in the first place.)

-- 
Michael Welsh Duggan
(md5i@md5i.com)



  reply	other threads:[~2011-02-03  0:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 21:35 Francis Moreau
2011-01-31 21:43 ` Richard Riley
2011-02-01  1:32 ` Lars Ingebrigtsen
2011-02-01  2:16   ` Poll time: IMAP client-side default match (was: Imap split, does not work (of course)) Lars Ingebrigtsen
2011-02-01  9:25     ` Poll time: IMAP client-side default match Rupert Swarbrick
2011-02-01 10:10       ` Lars Ingebrigtsen
2011-02-01  7:34   ` Imap split, does not work (of course) Francis Moreau
2011-02-01  8:04     ` Richard Riley
2011-02-01  8:27       ` Francis Moreau
2011-02-02  8:04       ` Francis Moreau
2011-02-01 19:21     ` Francis Moreau
2011-02-02  7:08       ` Eric S Fraga
2011-02-02 11:25         ` Richard Riley
2011-02-03  0:13           ` Michael Welsh Duggan [this message]
2011-02-03  8:47             ` Steinar Bang
2011-02-03 11:59               ` Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3narn5f.fsf@maru.md5i.com \
    --to=md5i@md5i.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).