From de657a1e26d5e5d9cba47a1a30fde617090119e9 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Tue, 7 Nov 2017 10:37:30 +0100
Subject: [PATCH] drop unused filter

---
 lib/IdPAccountManager/Tools.pm | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/lib/IdPAccountManager/Tools.pm b/lib/IdPAccountManager/Tools.pm
index 0ee9af4..240e058 100644
--- a/lib/IdPAccountManager/Tools.pm
+++ b/lib/IdPAccountManager/Tools.pm
@@ -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__
 
-- 
GitLab