Package: wmmaiload
Version: 2.2.1-1

Hello Florian,

On Wed, Nov 30, 2005 at 04:43:39PM +0100, Florian Ragwitz wrote:
> I mailed the upstream author some time ago and told him about your patch
> and the problems I'm experiencing with the latest release. I didn't get
> a reply yet, but I just pinged hin again about that.

Has there been any progress on this in the meanwhile?

I have since been using your latest package version with my atime
patch applied without experiencing any problems.

Regards,
Peter
--- wmmaiload-2.2.1/wmmaiload/checkthread.c
+++ wmmaiload-2.2.1/wmmaiload/checkthread.c
@@ -113,7 +113,8 @@
 static Bool check_mbox(MailBox *box, time_t now)
 {
         FILE *file;
-        /*struct utimbuf u;*/
+        struct utimbuf u;
+        struct stat s;
         char line[MAXSTRLEN + 1];
         int nbmails = 0;
         int nbreadmails = 0;
@@ -127,7 +128,9 @@
                 box->time = 0;
                 box->size = 0;
         }
-        if (!fexist(box->entry) ) return False;
+        if (stat(box->entry, &s) == -1) return False;
+        u.actime  = s.st_atime;
+        u.modtime = s.st_mtime;
         if (!test_size && !filetime(box->entry, &(box->time), CTIME)) return 
False;
         if (test_size && !filesize(box->entry, &(box->size))) return False;
         if ((file = fopen(box->entry, "r")) == NULL) return False;
@@ -160,11 +163,7 @@
         box->new = nbmails - nbreadmails;
         box->total = nbmails;
         box->updated = force;
-        /*
-        u.actime  = box->atime;
-        u.modtime = box->mtime;
         utime(box->entry, &u);
-        */
 
         return True;
 }

Reply via email to