From c3455a5beb4477f0080809fa474bc8e29b624956 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 7 Jul 2014 12:15:08 +0300 Subject: [PATCH] Use Re: as subject --- MANIFEST | 1 - lib/App/EdwardNG.pm | 5 ++--- tmpl/en/subject | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 tmpl/en/subject diff --git a/MANIFEST b/MANIFEST index 405cd62..a001eb1 100644 --- a/MANIFEST +++ b/MANIFEST @@ -21,4 +21,3 @@ tmpl/en/plain tmpl/en/sign tmpl/en/sign_error tmpl/en/signencrypt -tmpl/en/subject diff --git a/lib/App/EdwardNG.pm b/lib/App/EdwardNG.pm index 8804641..256cf7d 100644 --- a/lib/App/EdwardNG.pm +++ b/lib/App/EdwardNG.pm @@ -121,13 +121,12 @@ sub run { $params{plaintext} = first_part $params{decrypted} if $params{decrypted}; my $tt = Template->new(INCLUDE_PATH => 'tmpl/en'); - my ($data, $subject); + my $data; $tt->process($tmpl, \%params, \$data); - $tt->process('subject', undef, \$subject); my $email = MIME::Entity->build( From => $ENV{EDWARDNG_FROM}, To => $in->get('From'), - Subject => $subject, + Subject => 'Re: ' . $in->get('Subject'), Data => $data); my $mg = mg always_trust => 1; diff --git a/tmpl/en/subject b/tmpl/en/subject deleted file mode 100644 index c9b9e6b..0000000 --- a/tmpl/en/subject +++ /dev/null @@ -1 +0,0 @@ -EdwardNG -- 2.39.2