chore: more debug info
This commit is contained in:
parent
d4f76374e7
commit
959dc8966e
15
queue/lmtp
15
queue/lmtp
@ -37,22 +37,21 @@ sub lmtp_transfer
|
||||
|
||||
|
||||
$lmtp->mail($transaction->sender->address || "")
|
||||
or return DECLINED, "Unable to queue message ($!)";
|
||||
$lmtp->to($lmtp_user) or return DECLINED, "Unable to queue message ($!)";
|
||||
$lmtp->data() or return DECLINED, "Unable to queue message ($!)";
|
||||
$lmtp->datasend($transaction->header->as_string)
|
||||
or return DECLINED, "Unable to queue message ($!)";
|
||||
or return DECLINED, "Unable to queue message during mail($!)";
|
||||
$lmtp->to($lmtp_user) or return DECLINED, "Unable to queue message during to($!)";
|
||||
$lmtp->data() or return DECLINED, "Unable to queue message during data($!)";
|
||||
$lmtp->datasend($transaction->header->as_string) or return DECLINED, "Unable to queue message during datasend ($!) ";
|
||||
$transaction->body_resetpos;
|
||||
while (my $line = $transaction->body_getline) {
|
||||
$lmtp->datasend($line)
|
||||
or return DECLINED, "Unable to queue message ($!)";
|
||||
or return DECLINED, "Unable to queue message during datasendbody($!)";
|
||||
}
|
||||
$lmtp->dataend() or return DECLINED, "Unable to queue message ($!)";
|
||||
$lmtp->dataend() or return DECLINED, "Unable to queue message during dataend($!)";
|
||||
my $qid = $lmtp->message();
|
||||
my @list = split(' ', $qid);
|
||||
$qid = pop(@list);
|
||||
|
||||
$lmtp->quit() or return DECLINED, "Unable to queue message ($!)";
|
||||
$lmtp->quit() or return DECLINED, "Unable to queue message during quit($!)";
|
||||
|
||||
$self->log(LOGINFO, "finished queueing");
|
||||
return OK, "queued as $qid";
|
||||
|
Loading…
Reference in New Issue
Block a user