JaM
view release on metacpan or search on metacpan
lib/JaM/GUI/Compose.pm view on Meta::CPAN
}
$mail_comp->print_child_entities (
first_time => 1,
widget => $mail_as_text,
entity => $mail,
wrap_length => $self->config('wrap_line_length_send'),
quote => 1,
);
my $text = $self->gtk_text;
my $charset = $mail->head->mime_attr('content-type.charset');
if ( $charset =~ /^utf-?8$/i ) {
$self->message_window (
message => "Warning:\n\n".
"Reply message was converted from\n".
"UTF-8 to ISO-8859-1.",
);
require Unicode::String;
my $content = Unicode::String::utf8($mail_as_text->text);
$text->insert (undef, undef, undef, $content->latin1);
lib/JaM/GUI/HTMLSurface.pm view on Meta::CPAN
$charset ||= "iso-8859-1";
if ( $self->widget->can ("set_default_content_type") ) {
$self->widget->set_default_content_type("text/html; charset=$charset");
}
$self->handle($self->widget->begin);
$self->image_pool ({});
$self->write(
'<meta http-equiv="content-type" '.
'content="text/html; charset='.$charset.'">'."\n"
);
my $color = $self->config('mail_bgcolor');
$self->write ("<html><body bgcolor=\"$color\">");
1;
}
sub end {
lib/JaM/GUI/Mail.pm view on Meta::CPAN
}
my $mail = JaM::Mail->load (
dbh => $self->dbh,
mail_id => $mail_id,
);
$self->mail ($mail);
$html->begin (
charset => $self->mail->head->mime_attr('content-type.charset')
);
# first print the header
$self->print_entity_head (
entity => $mail,
widget => $html,
);
# print primary body, if given
if ( $mail->body ) {
( run in 0.607 second using v1.01-cache-2.11-cpan-d7f47b0818f )