about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-08-27 19:34:03 +0000
committerEric Wong <e@80x24.org>2014-08-28 02:47:11 +0000
commit20f0dd721e6f54beed46b8b8f1d0818ab3977ea4 (patch)
tree803ceae4dd11989655a03fcae4c33433af836dd5 /lib
parent0f104ebd05fb9c6e0dbbb4dcfac0dcdd9a9059ab (diff)
downloadpublic-inbox-20f0dd721e6f54beed46b8b8f1d0818ab3977ea4.tar.gz
We will reuse the html_footer function in a nested index.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 8bc28cd1..ab607a09 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -30,7 +30,7 @@ sub msg_html {
         headers_to_html_header($mime, $full_pfx) .
                 multipart_text_as_html($mime, $full_pfx) .
                 '</pre><hr />' . PRE_WRAP .
-                html_footer($mime) . $footer .
+                html_footer($mime, 1) . $footer .
                 '</pre></body></html>';
 }
 
@@ -204,7 +204,7 @@ sub headers_to_html_header {
 }
 
 sub html_footer {
-        my ($mime) = @_;
+        my ($mime, $purge) = @_;
         my %cc; # everyone else
         my $to; # this is the From address
 
@@ -219,7 +219,7 @@ sub html_footer {
                         $to ||= $dst;
                 }
         }
-        Email::Address->purge_cache;
+        Email::Address->purge_cache if $purge;
 
         my $subj = $mime->header('Subject') || '';
         $subj = "Re: $subj" unless $subj =~ /\bRe:/;