From 68f190af98d70ddcb3d5922ca10271b7fb705a0d Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 15 Jul 2013 10:11:16 +0800 Subject: [PATCH] subject for autoreply --- filter/autoreply-file-lib.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/filter/autoreply-file-lib.pl b/filter/autoreply-file-lib.pl index d31ac6583..1845d3b4e 100755 --- a/filter/autoreply-file-lib.pl +++ b/filter/autoreply-file-lib.pl @@ -35,6 +35,9 @@ while() { elsif (/^Charset:\s*(\S+)/) { $simple->{'charset'} = $1; } + elsif (/^Subject:\s*(\S+)/) { + $simple->{'subject'} = $1; + } else { push(@lines, $_); } @@ -81,6 +84,9 @@ if ($simple->{'from'}) { if ($simple->{'charset'}) { &print_tempfile(AUTO, "Charset: $simple->{'charset'}\n"); } +if ($simple->{'subject'}) { + &print_tempfile(AUTO, "Subject: $simple->{'subject'}\n"); + } &print_tempfile(AUTO, $simple->{'autotext'}); &close_tempfile(AUTO); }