Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #37 from tpoindessous/patch-1

Add the message id in log
  • Loading branch information...
commit 941fac98ae0be09d9944ca5e7497e93e4c1133a0 2 parents 0c41c01 + 9f404f5
Matt Simerson msimerson authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 plugins/queue/smtp-forward
6 plugins/queue/smtp-forward
View
@@ -73,7 +73,11 @@ sub hook_queue {
or return (DECLINED, "Unable to queue message ($!)");
}
$smtp->dataend() or return (DECLINED, "Unable to queue message ($!)");
+ my $qid = $smtp->message();
+ my @list = split(' ', $qid);
+ $qid = pop(@list);
+
$smtp->quit() or return (DECLINED, "Unable to queue message ($!)");
$self->log(LOGINFO, "finished queueing");
- return (OK, "Queued!");
+ return (OK, "queued as $qid");
}
Please sign in to comment.
Something went wrong with that request. Please try again.