Re: [exim] Bug in exim-tidydb and split queue directories

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: exim-users
Cc: ph10
Asunto: Re: [exim] Bug in exim-tidydb and split queue directories
This patch should fix it.

diff -uNr exim-4.44-snapshot1/src/exim_dbutil.c 
exim-4.44-snapshot1-tidydb/src/exim_dbutil.c
--- exim-4.44-snapshot1/src/exim_dbutil.c       2004-11-25 
14:54:53.000000000 +0100
+++ exim-4.44-snapshot1-tidydb/src/exim_dbutil.c        2004-12-01 
11:25:30.868144048 +0100
@@ -1246,8 +1246,12 @@


      if (Ustat(buffer, &statbuf) != 0)
        {
-      dbfn_delete(dbm, key);
-      printf("deleted %s (no message)\n", key);
+        sprintf(CS(buffer + path_len), "%c/%s-D", id[5], id);
+        if (Ustat(buffer, &statbuf) != 0)
+          {
+          dbfn_delete(dbm, key);
+          printf("deleted %s (no message)\n", key);
+          }
        }
      }
    }