| 1 | #!/usr/bin/perl -w
|
|---|
| 2 | #
|
|---|
| 3 | # msg2txt:
|
|---|
| 4 | #
|
|---|
| 5 | # Convert & output .MSG files (made by Outlook (Express)) to STDOUT.
|
|---|
| 6 | #
|
|---|
| 7 | # Based on msgconvert.pl by Matijs van Zuijlen, C<matijs@matijs.net>
|
|---|
| 8 | #
|
|---|
| 9 | # Copyright 2009 Frank J Bruzzaniti
|
|---|
| 10 | #
|
|---|
| 11 | # This program is free software; you can redistribute it and/or
|
|---|
| 12 | # modify it under the terms of the GNU General Public License as
|
|---|
| 13 | # published by the Free Software Foundation; either version 2 of the
|
|---|
| 14 | # License, or (at your option) any later version.
|
|---|
| 15 | #
|
|---|
| 16 | # This program is distributed in the hope that it will be useful,
|
|---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 19 | # GNU General Public License for more details.
|
|---|
| 20 | #
|
|---|
| 21 | # You should have received a copy of the GNU General Public License
|
|---|
| 22 | # along with this program; if not, write to the Free Software
|
|---|
| 23 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
|---|
| 24 | # USA
|
|---|
| 25 |
|
|---|
| 26 | use Email::Outlook::Message;
|
|---|
| 27 |
|
|---|
| 28 | foreach my $file (@ARGV) {
|
|---|
| 29 | my $mail = new Email::Outlook::Message($file)->to_email_mime->as_string;
|
|---|
| 30 | print $mail;
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|