From 1d041b453b9ed407fab0e571ea07a1aed5348596 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Sun, 9 Feb 2025 12:52:35 +0100 Subject: [PATCH] feat: provide full message to minion --- queue/lmtp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/queue/lmtp b/queue/lmtp index e438032..581084c 100644 --- a/queue/lmtp +++ b/queue/lmtp @@ -60,7 +60,13 @@ sub queue { my ($self, $transaction, $rcpt) = @_; - $self->{minion}->enqueue(transmit => [$rcpt] => { + my $data = {}; + $data{destination}=$rcpt; + $data{header}=$transaction->header->as_string; + $data{body}=$transaction->body_as_string; + + + $self->{minion}->enqueue(transmit => [$data] => { attempts => 10, expire => 60*60*24*2, queue => $rcpt->{destination}