Re: not detecting new mail in MailDir format?
- To: mutt-users@xxxxxxxx
- Subject: Re: not detecting new mail in MailDir format?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 24 Apr 2009 16:41:26 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=xr+HTQ2GvN8r3K/wChCa2d7nmqs=; b=BT7p wvqykJhA/4mU486xV3hFbigMtFEtQuVM2d0kPPg+1BAvB0xegndxDiHjC6jeib+d z6z1GQ01Y/jHIHvsU7+OCt4+OJ1vVQCq/xcdEYs/JpuD4nXXeLQWaY+fi/4cOyiZ YuXWtgSEqH/Rc5Jzg+TlbCh48xWJ4Evmco/UALg=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=QUiSGa9j82sX6TzKapV1bk8vnrRe69DpNyMeKj83Ned8n07UqoFmX40Jzxn1lexWa1N6mWsBN9w9SKxywu912h2LbY8z9QDD/3r0qochVS1/PGx8DTr/yA4GyaC3M9BfFWYV9E7Yij3HCzr8j5V1nVC9hQ+cbl2XyS8jowLf1xA=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090424213113.GA28418@xxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090424213113.GA28418@xxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-17)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday, April 25 at 07:31 AM, quoth Cameron Simpson:
>Well, if I've got my "+me" folder open and press '$', an strace shows
>only this (all system calls with the string "/me" in them):
>
> [pid 28316] stat("/home/cameron/mail/me", {st_mode=S_IFDIR|0755,
> st_size=4096, ...}) = 0
> [pid 28316] stat("/home/cameron/mail/me", {st_mode=S_IFDIR|0755,
> st_size=4096, ...}) = 0
>
>It makes no attempt to stat me/new or me/cur, or to read them.
Weird.
Well, I don't know what's wrong with your mutt, or even how to go
about finding out (aside from changing the code to see what happens).
I presume that we're trying to make mutt do it's buffy check, and
according to my buffy.c, here's what mutt does:
case M_MAILDIR:
snprintf (path, sizeof (path), "%s/new", tmp->path);
if ((dirp = opendir (path)) == NULL)
{
tmp->magic = 0;
break;
}
while ((de = readdir (dirp)) != NULL)
{
char *p;
if (*de->d_name != '.' &&
(!(p = strstr (de->d_name, ":2,")) || !strchr (p+3,'T')))
{
BuffyCount++;
tmp->new = 1;
break;
}
}
closedir (dirp);
break;
If yours isn't doing that... I don't know what to tell you. :(
~Kyle
- --
You cannot reason a person out of a position he did not reason himself
into in the first place.
-- Jonathan Swift
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAknyMgYACgkQBkIOoMqOI16uCwCg2T103DNL+YKEVGh3M7RZ/m3T
AqQAni5kiOv0+XK1i8vQnugWt/njSsQ9
=8oH4
-----END PGP SIGNATURE-----