Skip to content

Commit

Permalink
Add more information to "bad mail input format" error
Browse files Browse the repository at this point in the history
Ref: #18
  • Loading branch information
blueyed authored and corecode committed Sep 22, 2014
1 parent e458e5f commit b1056e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mail.c
Expand Up @@ -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') {
/*
Expand Down

0 comments on commit b1056e4

Please sign in to comment.