ff
     ˆÇ�þ@³Žàˆ� ÏÌ0Ë¿È     ˆÀ�þ@³ŽGÚã$wùÌ0Ë¿È  
   �236Æ¿È  ì    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
     ˆÃÂË‚l"_‘I|¥‰ÓMdœv ©ƒ†ü+=ÀÉ      ‹      Å”K�›0…÷ó+\/ºƒ2‰¢ÎWSˆÔ¨y)CÕVU6ÁÀÈv›I}$T%}HÕtåkøð=ç`›¼ˆWQòi=Eo“Å­ß¿™Ï"„=€×@œÄÝ‹‘? ¦KŒpnm}°ßïýýµ¯ô’ä¶,F`¬–©õ¹å˜^‘æ½B$Œ»+m!è¬ââ©�új�äbx*€«Ò€Ïd!|.JåçÆO•ª]®RãSœèÔZ¥/2H÷
¹…i…çJÍôÑ"ªYúÐÊ#ÐõwŠà(‰l?4Jƒÿ¨Ê5oÃaÛV\SjJlŽ¾±Bîª[UcJd¹CF§!™ªÊÀ¶`Õƒ¿“F¬°!þ<‹V_6o¾¦„¡\‹,Ä¯£py»
cL—¬Øyfá˜;LçÌXT*.3)øEø¾ƒïå÷ËÆ“jY[©ª'œÅ¾ÕT¦fÎëØ9ÈuŸêþ»4\žý0Öw›é2‰g›.Þ,ñ¤îÿ1¦k¦EeQ,µH­Ò‡c
�¤—ÕÖÔ·§):zÔr—[LòÐYò/‚±âÑöƒI>&g#Úà7{Óþ¬¯÷'�ÃÁpèÆ^0AÁ«›ñ¡KN‚Ñ»çr²ñSc0m‡¡=ð'¿Ðþ‡›ŽÇ›@{åè.Ç»P¯    5   ˆl–Ðz¾”d
i?u8 \¸Ó× Ê˜´o�þB gÁt¼çÎƒh¹ÍÁÊ      -1
  5   !ˆl–ß=¿J Ja,jeAãn\h*bÑ¿�þHä‹7+1ÈI}–šóÏƒd/ÎÂË m    !#!/usr/bin/perl
# outlookmsg2html.  Generated from outlookmsg2html.in by configure.
# @file
# @brief Extract text from an outlook .msg or .oft file.
#
# Copyright (C) 2010,2015,2019 Olly Betts
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

use strict;
eval {
    require Email::Outlook::Message;
    require HTML::Entities;
    # In core since Perl 5.9.5:
    require Time::Piece;
};
if ($@) {
    print STDERR $@;
    # Exit with code 127 which omindex interprets as "filter not installed"
    # and won't try further .msg files.
    exit 127;
}

my $mime = new Email::Outlook::Message($ARGV[0])->to_email_mime;
print "<head>\n<title>";
print do_header($mime, 'Subject');
print "</title>\n<meta name=\"author\" content=\"";
print do_header($mime, 'From');
print "\">\n";

my $date = do_header($mime, 'Date');
chomp $date;
eval {
    eval {
	$date = Time::Piece->strptime($date, '%a, %d %b %Y %T %z');
    };
    # The "%a, " part is optional in RFC822 and RFC2822.
    $date = Time::Piece->strptime($date, '%d %b %Y %T %z') if $@;
    my $iso8601_date = $date->datetime;
    print "<meta name=\"created\" content=\"$iso8601_date\">\n";
};

print "</head>\n";

handle_mimepart($mime);

sub do_header {
    my ($msg, $header) = @_;
    my $s = $msg->header_str($header);
    return HTML::Entities::encode_entities($s);
}

sub handle_mimepart {
    my $e = shift;
    my ($type, $sub) = ((lc $e->content_type) =~ m,^(.*?)/(.*?)(?:;.*)?$,);
    if ($type eq 'multipart') {
	if ($sub eq 'alternative') {
	    # Take the first mime part which we get text from.
	    for my $s ($e->subparts) {
		my $res = handle_mimepart($s);
		return $res if $res;
	    }
	} else {
	    my $res = 0;
	    for my $s ($e->subparts) {
		$res += handle_mimepart($s);
	    }
	    return $res;
	}
    } elsif ($type eq 'text') {
	if ($sub eq 'plain') {
	    print "<pre>", HTML::Entities::encode_entities($e->body), "</pre>\n";
	    return 1;
	} elsif ($sub eq 'html') {
	    my $m = $e->body;
	    $m =~ s!</?body[^>]*>!\n!gi;
	    print $m, "\n";
	    return 1;
	}
   