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

Re: Levels ignored?



>>>>> "SJ" == Simon Josefsson <jas@pdc.kth.se> writes:

SJ> So Gnus does indeed call it on a group with level > 1 (the '2' in the
SJ> info being the subscription level).

SJ> Anyway, you got me confused too.

After some digging, here's what I find:

In gnus-get-unread-articles, it sets "method" to the output of
(gnus-info-method info).  For my nnimap groups, this is

(nnimap "arch3.cc.uga.edu").

It then resets method to the output of

(gnus-server-get-method nil method)

which is (nnimap "arch3.cc.uga.edu") again.

When it checks to see whether this is a secondary method, nil is returned
and this is where things get confused.  That is,

(gnus-secondary-method-p (nnimap "arch3.cc.uga.edu"))

returns nil.  Looks like gnus-secondary-select-method-p is looking for the
entire structure:

(nnimap 
	 "arch3.cc.uga.edu"
	 (nnimap-server-address "arch3.cc.uga.edu")
	 (nnimap-list-pattern ("INBOX" "~/.mail/*")))

All of the secondary-select-method examples I can find have only two
elements like:

(nnml "")

So, maybe nnimap should look like:

(nnimap "arch3.cc.uga.edu")

And set nnimap-server-address and nnimap-list-pattern elsewhere.

Or maybe gnus-secondary-select-method-p should be fixed to accomodate nnimap.

-- 
Mark Plaksin                                http://www.arches.uga.edu/~happy/