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

drop unused filter

parent 566f3295
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,6 @@ sub mail_notice {
"|/usr/sbin/sendmail -f $args{data}->{from} $args{data}->{to}";
my $tt2 = Template->new({
FILTERS => { qencode => [ \&qencode, 0 ] },
INCLUDE_PATH => $args{templates_dir}
});
$tt2->process($args{template}, $args{data}, \*SENDMAIL)
......@@ -124,19 +123,6 @@ sub mail_notice {
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;
__END__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment