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
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 = '';
$msg .= '</body></html>';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
- $headers .= "From: Andrew DeFaria <Andrew@DeFaria.com>";
+ $headers .= "From: Resume Reporter <ResumeReporter@DeFaria.com>";
- 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
?>
</head>