Bugzilla – Attachment 127444 Details for
Bug 29330
Koha cannot send emails with attachments using Koha::Email and message_queue table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29330: (QA follow-up) Use passed MIME type
Bug-29330-QA-follow-up-Use-passed-MIME-type.patch (text/plain), 1.12 KB, created by
Martin Renvoize (ashimema)
on 2021-11-08 12:09:56 UTC
(
hide
)
Description:
Bug 29330: (QA follow-up) Use passed MIME type
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-08 12:09:56 UTC
Size:
1.12 KB
patch
obsolete
>From beec7dc644ab033df11eff7e4775e825f2139c3a Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 8 Nov 2021 08:10:38 -0300 >Subject: [PATCH] Bug 29330: (QA follow-up) Use passed MIME type > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Letters.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 1274593807..60465e6f88 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1247,10 +1247,10 @@ sub _add_attachments { > $message->text_body( $letter->{content} ); > } > >- foreach my $attachment ( @$attachments ) { >+ foreach my $attachment (@$attachments) { > $message->attach( > Encode::encode( "UTF-8", $attachment->{content} ), >- content_type => 'application/octet-stream', >+ content_type => ( exists $attachment->{type} && $attachment->{type} ne '' ) ? $attachment->{type} : 'application/octet-stream', > name => $attachment->{filename}, > disposition => 'attachment', > ); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29330
:
127404
|
127405
|
127413
|
127414
|
127418
|
127419
|
127429
|
127430
|
127437
|
127444
|
127570
|
127571
|
127572
|
127573