Skip to content

Commit b1424c4

Browse files
committed
Message::getFolder() method added
1 parent 7f33f5f commit b1424c4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ if you're just wishing a feature ;)
645645
| getFlags | | FlagCollection | Get the current message flags |
646646
| is | | boolean | Does this message match another one? |
647647
| getStructure | | object | The raw message structure |
648+
| getFolder | | Folder | The current folder |
648649
| mask | string $mask = null | Mask | Get a masked instance |
649650
| setMask | string $mask | Message | Set the mask class |
650651
| getMask | | string | Get the current mask class name |

src/IMAP/Message.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,10 @@ public function getContainingFolder(Folder $folder = null) {
959959
return null;
960960
}
961961

962+
public function getFolder(){
963+
return $this->client->getFolder($this->folder_path);
964+
}
965+
962966
/**
963967
* Move the Message into an other Folder
964968
* @param string $mailbox

0 commit comments

Comments
 (0)