Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: Cannot subscribe or see nndrafts folder upon startup
Date: Wed, 29 Jun 2011 20:27:38 +0900	[thread overview]
Message-ID: <b4mhb78j2s5.fsf@jpl.org> (raw)
In-Reply-To: <b4mliwmx18c.fsf@jpl.org>

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 386 bytes --]

--- 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))

  reply	other threads:[~2011-06-29 11:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13 23:27 nyc4bos
2011-06-26  9:41 ` Lars Magne Ingebrigtsen
2011-06-27 22:36   ` nyc4bos
2011-06-28  0:12     ` Katsumi Yamaoka
2011-06-29 11:27       ` Katsumi Yamaoka [this message]
2011-06-30  1:25         ` Katsumi Yamaoka
2011-06-30  2:26           ` Lars Magne Ingebrigtsen
2011-06-30 10:43             ` Richard Riley
2011-06-30 17:02               ` Lars Magne Ingebrigtsen
2011-07-01  4:06                 ` Katsumi Yamaoka
2011-07-01  6:34                   ` Katsumi Yamaoka
2011-07-01 10:34                     ` Katsumi Yamaoka
2011-07-02 18:58                       ` nyc4bos
2011-07-03 23:23                         ` Katsumi Yamaoka
2011-07-04  1:14                           ` Katsumi Yamaoka
2011-07-06 23:26                             ` nyc4bos
2011-07-02 18:51           ` nyc4bos

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=b4mhb78j2s5.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --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).