Re: [Exim] errors_to and batch deliveries

Top Page
Delete this message
Reply to this message
Author: Patrice Fournier
Date:  
To: Philip Hazel
CC: exim-users
Subject: Re: [Exim] errors_to and batch deliveries
Quoting Philip Hazel <ph10@???>:

> > As I set errors_to to postmaster for every mail that goes to amavis, I
> > expect it to work in batch mode but it doesn't. As soon as I set my
> > errors_to = postmaster, Exim stops batching the calls to the pipe...
> :(
>
> I will take a look and see if I can reproduce this. It should be able
> to batch.


Ok, I believe this patch will solve this problem (the errors_address
comparison replacement code was taken further down in the file) I did a
single test and it seems to work correctly now:

--- exim-4.03.orig/src/deliver.c        Tue Apr 16 06:40:59 2002
+++ exim-4.03/src/deliver.c     Wed Apr 24 19:43:50 2002
@@ -1810,7 +1810,9 @@
         tp == next->transport &&
         (!uses_lp  || Ustrcmp(next->local_part, addr->local_part) == 0) &&
         (!uses_dom || Ustrcmp(next->domain, addr->domain) == 0) &&
-        next->errors_address == addr->errors_address &&
+        (next->errors_address == addr->errors_address ||
+        (next->errors_address != NULL && addr->errors_address != NULL &&
+        Ustrcmp(next->errors_address, addr->errors_address) == 0)) &&
         same_headers(next->extra_headers, addr->extra_headers) &&
         same_strings(next->remove_headers, addr->remove_headers) &&
         same_ugid(tp, addr, next) &&




--
Patrice Fournier
pfournier@???