From b1056e4384472dbbedd6b075819abd6154ac0d69 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 22 Sep 2014 18:35:53 +0200 Subject: [PATCH] Add more information to "bad mail input format" error Ref: https://github.com/corecode/dma/issues/18 --- mail.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail.c b/mail.c index fcd4eaf..d0f728f 100644 --- a/mail.c +++ b/mail.c @@ -375,7 +375,9 @@ readmail(struct queue *queue, int nodot, int recp_from_header) if (fgets(line, sizeof(line) - 1, stdin) == NULL) break; if (had_last_line) - errlogx(1, "bad mail input format"); + errlogx(1, "bad mail input format:" + " from %s (uid %d) (envelope-from %s)", + username, useruid, queue->sender); linelen = strlen(line); if (linelen == 0 || line[linelen - 1] != '\n') { /* -- 2.39.2