Skip to content
Snippets Groups Projects
Commit de657a1e authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

drop unused filter

parent 566f3295
Branches
Tags
No related merge requests found
...@@ -115,7 +115,6 @@ sub mail_notice { ...@@ -115,7 +115,6 @@ sub mail_notice {
"|/usr/sbin/sendmail -f $args{data}->{from} $args{data}->{to}"; "|/usr/sbin/sendmail -f $args{data}->{from} $args{data}->{to}";
my $tt2 = Template->new({ my $tt2 = Template->new({
FILTERS => { qencode => [ \&qencode, 0 ] },
INCLUDE_PATH => $args{templates_dir} INCLUDE_PATH => $args{templates_dir}
}); });
$tt2->process($args{template}, $args{data}, \*SENDMAIL) $tt2->process($args{template}, $args{data}, \*SENDMAIL)
...@@ -124,19 +123,6 @@ sub mail_notice { ...@@ -124,19 +123,6 @@ sub mail_notice {
close SENDMAIL; close SENDMAIL;
} }
sub qencode {
my ($string) = @_;
# We are not able to determine the name of header field, so assume
# longest (maybe) one.
return MIME::EncWords::encode_mimewords(
Encode::decode('utf8', $string),
Encoding => 'A',
Charset => 'utf8',
Field => "subject"
);
}
1; 1;
__END__ __END__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment