From f1d07199962ad82739484825718f9c544d1ca340 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 14 Jan 2017 21:06:45 +0000 Subject: "better" CTE for moderation forwards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently claws-mail gets confused when a rfc822 attachment is base64-encoded (or even qp-encoded). I don't know how other clients cope, but this Works For Me™ --- lib/Sietima/Role/SubscriberOnly/Moderate.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Sietima/Role/SubscriberOnly/Moderate.pm b/lib/Sietima/Role/SubscriberOnly/Moderate.pm index 966f2d3..158d18a 100644 --- a/lib/Sietima/Role/SubscriberOnly/Moderate.pm +++ b/lib/Sietima/Role/SubscriberOnly/Moderate.pm @@ -16,7 +16,11 @@ sub munge_mail_from_non_subscriber ($self,$mail) { ->to($self->admin->address) ->subject("Message held for moderation - ".$mail->header_str('subject')) ->text_body("Use id $id to refer to it") - ->attach($mail->as_string, content_type => 'message/rfc822'); + ->attach( + $mail->as_string, + content_type => 'message/rfc822', + encoding => '7bit', + ); $self->transport->send($notice->email,{ from => $self->return_path, to => [ $self->admin ], -- cgit v1.2.3