]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Add more information to "bad mail input format" error
authorDaniel Hahler <git@thequod.de>
Mon, 22 Sep 2014 16:35:53 +0000 (18:35 +0200)
committerSimon Schubert <2@0x2c.org>
Mon, 22 Sep 2014 16:49:30 +0000 (18:49 +0200)
Ref: https://github.com/corecode/dma/issues/18

mail.c

diff --git a/mail.c b/mail.c
index fcd4eaf2c946a901c23ab5beb94216851df4d8d3..d0f728feb1a6f7b7d6bf55ec6f3a43b2501f13ca 100644 (file)
--- 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') {
                        /*