From da9098c364933056abb8d8080324da24711a4fb2 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sat, 8 May 2010 12:33:12 +0000 Subject: Added getParts(). git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6802 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/EmailMessage.php | 4 ++++ src/Message.php | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/EmailMessage.php b/src/EmailMessage.php index 3f6c173..5a91c1e 100644 --- a/src/EmailMessage.php +++ b/src/EmailMessage.php @@ -43,6 +43,10 @@ abstract class EmailMessage implements Message { return $this->msg->body; } + public function getParts() { + return $this->msg->parts(); + } + protected static function decode_raw_message($input) { $params['include_bodies'] = true; $params['decode_bodies'] = true; diff --git a/src/Message.php b/src/Message.php index 23fa849..5123c61 100644 --- a/src/Message.php +++ b/src/Message.php @@ -16,6 +16,8 @@ interface Message { public function getReferences(); public function getBody(); + + public function getParts(); } ?> -- cgit v1.2.3