Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added method Message::moveToMailbox() #3

Merged
merged 1 commit into from

2 participants

@Lumbendil

Added a method to move to a mailbox.

@tedivm tedivm merged commit baaae55 into tedious:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 18, 2012
  1. @Lumbendil

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

    Lumbendil authored
    … a message to the given mailbox.
This page is out of date. Refresh to see the latest.
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);
+ }
}
Something went wrong with that request. Please try again.