Browse files

Added the method Message::moveToMailbox() in order to be able to move…

… a message to the given mailbox.
  • Loading branch information...
1 parent 812e4eb commit f114f4980331f9b71b81b81cbd1a6c1f8303d13a @Lumbendil Lumbendil committed Sep 18, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/Fetch/Message.php
View
11 src/Fetch/Message.php
@@ -636,4 +636,15 @@ public function setFlag($flag, $enable = true)
}
}
+ /**
+ * This function is used to move a mail to the given mailbox.
+ *
+ * @param $mailbox
+ *
+ * @return bool
+ */
+ public function moveToMailBox($mailbox)
+ {
+ return imap_mail_copy($this->imapStream, $this->uid, $mailbox, CP_UID | CP_MOVE);
+ }
}

0 comments on commit f114f49

Please sign in to comment.