From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79248 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Cannot subscribe or see nndrafts folder upon startup Date: Wed, 29 Jun 2011 20:27:38 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1309347057 15829 80.91.229.12 (29 Jun 2011 11:30:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2011 11:30:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27544@lists.math.uh.edu Wed Jun 29 13:30:52 2011 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.69) (envelope-from ) id 1Qbsyq-0001Fw-5u for ding-account@gmane.org; Wed, 29 Jun 2011 13:30:52 +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 1Qbsw6-0002ls-GD; Wed, 29 Jun 2011 06:28:02 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Qbsw3-0002ld-9G for ding@lists.math.uh.edu; Wed, 29 Jun 2011 06:27:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Qbsw1-0004UG-Qv for ding@lists.math.uh.edu; Wed, 29 Jun 2011 06:27:58 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qbsvz-00040g-T6 for ding@gnus.org; Wed, 29 Jun 2011 13:27:56 +0200 Original-Received: from localhost ([127.0.0.1]:37887) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1Qbsvq-0001T3-Vo for ding@gnus.org; Wed, 29 Jun 2011 06:27:47 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (cygwin) Cancel-Lock: sha1:iChIMWokATo3sulycYiWqMEqgU8= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79248 Archived-At: --=-=-= Katsumi Yamaoka wrote: > Last night I realized that I'm unable to reproduce this, too, in > home Linux PC. As for me it happens only in the office PC. I found the cause of this problem at last. This happens with at least cygwin Emacs. Don't you (nyc4bos@aol.com) use it? In that platform, (nth 1 (file-attributes nndraft-directory)) always returns 1 even though there are subdirectories in it. So, `nndraft-request-list' (i.e. `nnmh-request-list') doesn't recognize it as a directory and draft messages in those subdirectories won't be counted. A temporary patch is attached. What I should do next is to learn what `subdirectoriesp' is for. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- nnmh.el~ 2011-04-05 05:00:10.335000000 +0000 +++ nnmh.el 2011-06-29 11:25:31.625000000 +0000 @@ -210,7 +210,7 @@ (max 0) min rdir num subdirectoriesp file) ;; Recurse down directories. - (setq subdirectoriesp (> (nth 1 (file-attributes dir)) 2)) + (setq subdirectoriesp t) (dolist (rdir files) (if (or (not subdirectoriesp) (file-regular-p rdir)) --=-=-=--