Have the qmail-queue plugin add the message-id to the "Queued!"

message we send back to the client (to help those odd sendmail using
people debug their logs)


git-svn-id: https://svn.perl.org/qpsmtpd/trunk@140 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Ask Bjørn Hansen 2003-04-16 16:45:57 +00:00
parent 4c4360d038
commit b1fc4cafc5
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,9 @@
0.26-dev
Have the qmail-queue plugin add the message-id to the "Queued!"
message we send back to the client (to help those odd sendmail using
people debug their logs)
Set the process name to "qpsmtpd [1.2.3.4 : host.name.tld]"
Fixed timeout bug when the client sent DATA and then stopped before

View File

@ -70,7 +70,10 @@ sub queue_handler {
waitpid($child, 0);
my $exit_code = $? >> 8;
$exit_code and return(DECLINED, "Unable to queue message ($exit_code)");
return (OK, "Queued!");
my $msg_id = $transaction->header->get('Message-Id') || '';
$msg_id =~ s/[\r\n].*//s; # don't allow newlines in the Message-Id here
return (OK, "Queued! $msg_id");
}
elsif (defined $child) {
# Child