<<< Date Index >>>     <<< Thread Index >>>

Re: not detecting new mail in MailDir format?



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