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:
parent
4c4360d038
commit
b1fc4cafc5
4
Changes
4
Changes
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user