[Catalyst] Catalyst::View::Email broken?
J. Shirley
jshirley at gmail.com
Wed Jan 9 18:57:18 GMT 2008
On Jan 7, 2008 3:27 PM, Bernhard Graf <catalyst3 at augensalat.de> wrote:
> I'm unable to create multipart/alternative email with C:V:Email 0.10.
>
> This worked with 0.06:
> $stash->{email} =3D {
> header =3D> [ From =3D> $from, To =3D> $to, Subject =3D> $subject],
> content_type =3D> 'multipart/alternative',
> parts =3D> [
> Email::MIME->create(
> attributes =3D> {
> content_type =3D> 'text/plain',
> charset =3D> $cs_plain,
> encoding =3D> $enc_plain,
> },
> body =3D> $plain,
> ),
> Email::MIME->create(
> attributes =3D> {
> content_type =3D> 'text/html',
> charset =3D> $cs_html,
> encoding =3D> $enc_html,
> },
> body =3D> $html,
> ),
> ],
> }
>
> From how I see the code, it is broken at least in process:
>
> my %mime =3D ( header =3D> $header );
>
> if ( $parts and ref $parts eq 'ARRAY' ) {
> $mime{parts} =3D $parts;
> } else {
> $mime{body} =3D $body;
> }
>
> if ( $mime{attributes} and not $mime{attributes}->{charset} and
> $self->{default}->{charset} )
> {
> $mime{attributes}->{charset} =3D $self->{default}->{charset};
> }
>
> $mime{attributes} is queried here, but never set.
> --
> Bernhard Graf
>
Hi Bernhard
Could you file this as an RT bug? I'm working on the next version which
will also have attachment support and don't want to miss this.
Thanks,
-J
-- =
J. Shirley :: jshirley at gmail.com :: Killing two stones with one bird...
http://www.toeat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080109/f3af0=
c3b/attachment.htm
More information about the Catalyst
mailing list