NAME
EMDIS::ECS::Message - an ECS email message
SYNOPSIS
use EMDIS::ECS::Message;
$msg = new EMDIS::ECS::Message($raw_text);
die "unable to parse message: $msg\n" unless ref $msg;
die "not an ECS message\n" unless $msg->is_ecs_message;
$err = $msg->save_to_file($filename);
die "couldn't save to file: $err\n" if $err;
$msg = EMDIS::ECS::Message::read_from_file($filename);
die "unable to read message from file: $msg\n" unless ref $msg;
print "Subject: " . $msg->subject . "\n";
print ($msg->is_meta_message ? "meta-message\n" : '');
print "\n" . $msg->body . "\n";
$msg = EMDIS::ECS::Message::read_from_encrypted_file($filename);
die "unable to read message from encrypted file: $msg\n"
unless ref $msg;
print "sender: " . $msg->sender . "\n";
print "seq_num: " . $msg->seq_num . "\n" if $msg->seq_num;
print "cleartext:\n" . $msg->cleartext . "\n";
DESCRIPTION
ECS message object.
SEE ALSO
EMDIS::ECS, EMDIS::ECS::Config, EMDIS::ECS::FileBackedMessage, EMDIS::ECS::LockedHash
AUTHOR
Joel Schneider <jschneid@nmdp.org>
COPYRIGHT AND LICENSE
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Copyright (C) 2002-2020 National Marrow Donor Program. All rights reserved.
See LICENSE file for license details.
HISTORY
ECS, the EMDIS Communication System, was originally designed and implemented by the ZKRD (http://www.zkrd.de/). This Perl implementation of ECS was developed by the National Marrow Donor Program (http://www.marrow.org/).
2004-03-12 Canadian Blood Services - Tony Wai Added MS Windows support for Windows 2000 and Windows XP Added "DIRECTORY" inBox Protocol. This can interface with any mail system that can output the new messages to text files.