From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67283 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus and imap Date: Sun, 24 Aug 2008 12:08:13 +0200 Message-ID: <87y72mn2sy.fsf@randomsample.de> References: <877iabwtjx.fsf@randomsample.de> <87abf51c4m.fsf@marauder.physik.uni-ulm.de> <874p5dm35l.fsf@randomsample.de> <87iqttq7ja.fsf@randomsample.de> <87d4k0t7ga.fsf@randomsample.de> <87myj3wzp7.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219572563 6243 80.91.229.12 (24 Aug 2008 10:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2008 10:09:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15734@lists.math.uh.edu Sun Aug 24 12:10:16 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KXCY2-0007Iw-B6 for ding-account@gmane.org; Sun, 24 Aug 2008 12:10:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KXCWJ-00044A-8h; Sun, 24 Aug 2008 05:08:27 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KXCWG-00043u-Jp for ding@lists.math.uh.edu; Sun, 24 Aug 2008 05:08:24 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KXCWD-0004mA-AG for ding@lists.math.uh.edu; Sun, 24 Aug 2008 05:08:24 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KXCWE-0000BS-00 for ; Sun, 24 Aug 2008 12:08:22 +0200 Original-Received: from dslb-082-083-057-143.pools.arcor-ip.net ([82.83.57.143] helo=honk) by m61s02.vlinux.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KXCWZ-0001jN-KD for ding@gnus.org; Sun, 24 Aug 2008 12:08:44 +0200 Mail-Copies-To: never Mail-Followup-To: ding@gnus.org In-Reply-To: (Vitaly Mayatskikh's message of "Sun, 24 Aug 2008 11:18:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/22.2.90 (gnu/linux) X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67283 Archived-At: Vitaly Mayatskikh writes: > Ok, what's going on in gnus-get-unread-articles: gnus-read-active-file-2 > is called for every group in retrieve-groups list. However, imap's group > has no chance to be in retrieve-groups, because it falls into cond's > branch '(and method (eq method-type 'foreign))'. I've tried it with > nnimap as primary method also. If you look at how method-type is set, you'll see that foreign servers are those which are neither in gnus-select-method nor in gnus-secondary-select-methods. So, I wouldn't know why this happens. You see that Gnus iterates through newsrc, which is gnus-newsrc-alist. You can try it manually by first evaluating (setq newsrc gnus-newsrc-alist) and then do repeatedly (progn (setq group (gnus-info-group (setq info (pop newsrc)))) (setq method (gnus-info-method info)) (cond ((or (null method) (gnus-server-equal method gnus-select-method)) (message "%s is primary" group)) ((gnus-secondary-method-p method) (message "%s is secondary" group)) (t (message "%s is foreign" group)))) which will show you in what category each group falls into. For any method in gnus-select-method or gnus-secondary-select-methods you should get primary or secondary, resp. If not, something strange happened to your setup. Foreign groups are usually those to which you subscribed to using gnus-group-browse-foreign-server. -David