summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-05-08 12:33:12 +0000
committeruckelman <uckelman@nomic.net>2010-05-08 12:33:12 +0000
commitda9098c364933056abb8d8080324da24711a4fb2 (patch)
tree0753534b9c1ff9c5a2a18da7105e7ea7f25a4f46
parent4764e15d708ee72674d30d8f47d02a919e3e0404 (diff)
Added getParts().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6802 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/EmailMessage.php4
-rw-r--r--src/Message.php2
2 files changed, 6 insertions, 0 deletions
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();
}
?>