Bug#907434: libemail-stuffer-perl: Combines text-body and html-body if attach_file is added. Both 'body's appear as text

William Mussatto mussatto at csz.com
Mon Aug 27 23:41:12 BST 2018


Package: libemail-stuffer-perl
Version: 0.014-1
Severity: normal

Dear Maintainer,

If an email is sent without the $email->attach_file... line both a text body and a separate html body part are created
If one or more $email->attach_file line is included both the text body and html body appear together without the html wrapper.
The attached file is correctly created with the correct mime type. 
If either the $email->text_body OR $email->html_body are present the email is created correctly. 

use Email::Stuffer;
use File::MimeInfo;
...
        my $email = Email::Stuffer->new() or die 'Failed to create email object';
        $email->to($targetEmail);
        $email->from($senderEmail);
        $email->subject($subject);
        $email->header(Sender=>'www-data at csz.com');
        $email->text_body($pWork);
        $email->html_body($hWork);
	$mime_Type = mimetype(""work/base.css");
	$email->attach_file("work/base.css",$mime_Type);
	$email->send;
... 

Note: version in buster' has too many dependencies for package versions not in stretch.

-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages libemail-stuffer-perl depends on:
ii  libemail-mime-perl    1.937-1
ii  libemail-sender-perl  1.300030-2
ii  libparams-util-perl   1.07-3+b1
ii  perl                  5.24.1-3+deb9u4

libemail-stuffer-perl recommends no packages.

libemail-stuffer-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list