[PATCH] Re: requeued mail files going missing from archive/
On Wed, Dec 16, 2009 at 02:04:35AM +0000, Robin H. Johnson wrote:
> Lately I've had a lot of mail be requeued, and I'm running into some of the
> requeue subdirectories existing, but the original mail that goes with them
> going missing after being delivered only to some users.
Patch that fixes it attached.
If the maintd visited more than one mail in the /requeue/ directory, and the
FIRST one set the fromrequeuedir flag to unlink the mail file, the flag was NOT
cleared and caused mail in the real archive to be erronously removed.
Signed-off-by: Robin H. Johnson <robbat2@...>
--
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : robbat2@...
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
If the maintd visited more than one mail in the /requeue/ directory, and the
FIRST one set the fromrequeuedir flag to unlink the mail file, the flag was NOT
cleared and caused mail in the real archive to be erronously removed.
Signed-off-by: Robin H. Johnson <robbat2@...>
diff -Nuar --exclude mlmmj-make-ml.sh mlmmj-1.2.16.orig/src/mlmmj-maintd.c mlmmj-1.2.16/src/mlmmj-maintd.c
--- mlmmj-1.2.16.orig/src/mlmmj-maintd.c 2008-10-31 14:20:51.000000000 +0000
+++ mlmmj-1.2.16/src/mlmmj-maintd.c 2009-12-16 02:11:16.848146214 +0000
<at> <at> -373,7 +373,7 <at> <at>
struct stat st;
(Continue reading)