X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fmoan.c;h=bf5483ce38b620c4410ce59794ef9737fc94d00b;hb=4a92bfe6da547eb599b76da068b8b908e1c509b7;hp=31d033c1adcf66ed51c9ad65307212fea66804a5;hpb=d6c829b9a350f61c98196768e3260beb3cbecbfe;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/moan.c b/src/src/moan.c index 31d033c1a..bf5483ce3 100644 --- a/src/src/moan.c +++ b/src/src/moan.c @@ -3,6 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2018 */ +/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ /* Functions for sending messages to sender or to mailmaster. */ @@ -63,7 +64,7 @@ if (!message_id) if (h->type == htype_id) { message_id = Ustrchr(h->text, ':') + 1; - while (isspace(*message_id)) message_id++; + Uskip_whitespace(&message_id); } for (h = header_list; h; h = h->next) @@ -160,15 +161,16 @@ if ( ident == ERRMESS_DMARC_FORENSIC && (s2 = expand_string(string_sprintf("${address:%s}", s))) && *s2 ) - pid = child_open_exim2(&fd, s2, bounce_sender_authentication); + pid = child_open_exim2(&fd, s2, bounce_sender_authentication, + US"moan_send_message"); else { s = NULL; - pid = child_open_exim(&fd); + pid = child_open_exim(&fd, US"moan_send_message"); } #else -pid = child_open_exim(&fd); +pid = child_open_exim(&fd, US"moan_send_message"); #endif if (pid < 0) @@ -584,7 +586,7 @@ moan_tell_someone(uschar *who, address_item *addr, FILE *f; va_list ap; int fd; -int pid = child_open_exim(&fd); +int pid = child_open_exim(&fd, US"moan_tell_someone"); if (pid < 0) { @@ -691,7 +693,7 @@ fprintf(stderr, "%d previous message%s successfully processed.\n", fprintf(stderr, "The rest of the batch was abandoned.\n"); -exim_exit(yield, US"batch"); +exim_exit(yield); } @@ -716,7 +718,6 @@ moan_check_errorcopy(uschar *recipient) uschar *item, *localpart, *domain; const uschar *listptr = errors_copy; uschar *yield = NULL; -uschar buffer[256]; int sep = 0; int llen; @@ -732,7 +733,7 @@ llen = domain++ - recipient; /* Scan through the configured items */ -while ((item = string_nextinlist(&listptr, &sep, buffer, sizeof(buffer)))) +while ((item = string_nextinlist(&listptr, &sep, NULL, 0))) { const uschar *newaddress = item; const uschar *pattern = string_dequote(&newaddress); @@ -820,7 +821,7 @@ if (!(s = expand_string(syntax_errors_to))) /* If we can't create a process to send the message, just forget about it. */ -pid = child_open_exim(&fd); +pid = child_open_exim(&fd, US"moan_skipped_syntax_errors"); if (pid < 0) {