Re: mutt's buffy-list

2008-08-29 Thread Matthew Dillon
:On Wed, Aug 27, 2008 at 12:49:13PM -0700, Matthew Dillon wrote: :> I could fake it I guess, but programs really have no business making :> assumptions about directories based on their st_nlinks or st_size :> fields. : :At least nlinks == 2 is a hard-coded assumption for leaf directori

Re: mutt's buffy-list

2008-08-28 Thread YONETANI Tomokazu
On Wed, Aug 27, 2008 at 07:18:42PM +0200, Joerg Sonnenberger wrote: > On Thu, Aug 28, 2008 at 12:01:50AM +0900, YONETANI Tomokazu wrote: > > My questions are, is checking st_size of a directory is usual on other > > platforms/filesystems? Does anyone know of other filesystems on which > > a direct

Re: mutt's buffy-list

2008-08-28 Thread Joerg Sonnenberger
On Wed, Aug 27, 2008 at 12:49:13PM -0700, Matthew Dillon wrote: > I could fake it I guess, but programs really have no business making > assumptions about directories based on their st_nlinks or st_size > fields. At least nlinks == 2 is a hard-coded assumption for leaf directories in v

Re: mutt's buffy-list

2008-08-27 Thread YONETANI Tomokazu
On Wed, Aug 27, 2008 at 12:49:13PM -0700, Matthew Dillon wrote: > > :On Thu, Aug 28, 2008 at 12:01:50AM +0900, YONETANI Tomokazu wrote: > :> My questions are, is checking st_size of a directory is usual on other > :> platforms/filesystems? Does anyone know of other filesystems on which > :> a dir

Re: mutt's buffy-list

2008-08-27 Thread Matthew Dillon
:On Thu, Aug 28, 2008 at 12:01:50AM +0900, YONETANI Tomokazu wrote: :> My questions are, is checking st_size of a directory is usual on other :> platforms/filesystems? Does anyone know of other filesystems on which :> a directory can have st_size of zero? : :I don't know any filesystem where the

Re: mutt's buffy-list

2008-08-27 Thread Joerg Sonnenberger
On Thu, Aug 28, 2008 at 12:01:50AM +0900, YONETANI Tomokazu wrote: > My questions are, is checking st_size of a directory is usual on other > platforms/filesystems? Does anyone know of other filesystems on which > a directory can have st_size of zero? I don't know any filesystem where the directo

Re: mutt's buffy-list

2008-08-27 Thread Simon 'corecode' Schubert
On Wed, August 27, 2008 17:01, YONETANI Tomokazu wrote: > Hello. > Since I have switched /home to a HAMMER PFS, mutt stopped reporting > mailboxes with new messages. Digging mutt source code, I found something > relavant: > > > mutt_buffy_check: > > > if (stat (tmp->path, &sb) != 0 || sb.st_size =

mutt's buffy-list

2008-08-27 Thread YONETANI Tomokazu
Hello. Since I have switched /home to a HAMMER PFS, mutt stopped reporting mailboxes with new messages. Digging mutt source code, I found something relavant: mutt_buffy_check: if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 || (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path))