Changeset 1783

Show
Ignore:
Timestamp:
10/19/06 20:29:51
Author:
miyagawa
Message:

Publish::Gmail: pass encoding to templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/assets/plugins/Publish-Gmail/gmail_notify.tt

    r1077 r1783  
    33<html> 
    44<head> 
    5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
     5<meta http-equiv="Content-Type" content="text/html;charset=[% encoding %]" /> 
    66</head> 
    77<body> 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm

    r1781 r1783  
    6767    } 
    6868 
    69     my $body = $self->templatize('gmail_notify.tt', { feed => $feed }); 
     69    my $encoding = $self->conf->{encoding} || 'utf-8'; 
     70    my $body = $self->templatize('gmail_notify.tt', { feed => $feed, encoding => $encoding }); 
    7071 
    7172    my $cfg = $self->conf; 
     
    8687    $msg->replace("X-Mailer" => "Plagger/$Plagger::VERSION"); 
    8788 
    88     my $encoding = $self->conf->{encoding} || 'utf-8'; 
    8989    $msg->attach( 
    9090        Type => "text/html; charset=$encoding",