]> iEval git - app-edwardng.git/commitdiff
Use Re: <original subject> as subject
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 7 Jul 2014 09:15:08 +0000 (12:15 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 7 Jul 2014 09:15:08 +0000 (12:15 +0300)
MANIFEST
lib/App/EdwardNG.pm
tmpl/en/subject [deleted file]

index 405cd6256c26e37a106529b20086623f0f84c6be..a001eb1aa1d8b26769d8d6b77cd1b18b1e8343f1 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -21,4 +21,3 @@ tmpl/en/plain
 tmpl/en/sign
 tmpl/en/sign_error
 tmpl/en/signencrypt
-tmpl/en/subject
index 88046414814dfe4af44f5cbe016a4bbf50be60f7..256cf7d670d7031697918d079edeca7cc0805f8c 100644 (file)
@@ -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 (file)
index c9b9e6b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-EdwardNG
This page took 0.024964 seconds and 4 git commands to generate.