From: Andrew DeFaria Date: Mon, 13 May 2019 20:17:06 +0000 (-0700) Subject: Fixed bug with not displaying some email messages. X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=2b6de455b7bdd4f817f9fc850d900401eab29e57;p=clearscm.git Fixed bug with not displaying some email messages. Some emails use multipart/related in subparts and others in parts. Our display.cgi doesn't try to do that much of a great job displaying emails and as such avoids some viruses I suppose. No need to make it fancy - just good enough to discren if I want to let this email through. Also changed wording of resume emails --- diff --git a/maps/bin/display.cgi b/maps/bin/display.cgi index 10c706d..76f5ab6 100755 --- a/maps/bin/display.cgi +++ b/maps/bin/display.cgi @@ -172,6 +172,9 @@ sub Body($) { last; } # if } # for + } elsif ($part->mime_type eq 'multipart/related') { + # Sometimes parts are 'multipart/relative'... + $part->print_body; } else { if ($part->mime_type =~ /text/) { my $encoding = ''; diff --git a/web/Resumes/Andrew/index.php b/web/Resumes/Andrew/index.php index 92c71c5..3c07b99 100644 --- a/web/Resumes/Andrew/index.php +++ b/web/Resumes/Andrew/index.php @@ -99,9 +99,10 @@ function stoptimer () { $msg .= ''; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; - $headers .= "From: Andrew DeFaria "; + $headers .= "From: Resume Reporter "; - mail("andrew@defaria.com", "Somebody visited your resume", $msg, $headers); + $subject = "Another resume hit. This makes $count visits to your resume"; + mail("andrew@defaria.com", $subject, $msg, $headers); } // if ?>