summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}
?>