summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-10-27 17:00:22 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-10-27 17:00:22 (GMT)
commite9b3d92a3fd745916d3d656bf553f73eb23430d7 (patch)
treec7165e6f062408e51cbe4e7d787078eb29bab3c5
parent7173c7a7cb6d9583d7d0a99f3d419db6c8614964 (diff)
downloadNet_IMAP4-e9b3d92a3fd745916d3d656bf553f73eb23430d7.tar.gz
Extend imap_list() and imap_lsub() to make use of the new __list() capabilities
-rw-r--r--lib/Net/IMAP4.php35
1 files changed, 31 insertions, 4 deletions
diff --git a/lib/Net/IMAP4.php b/lib/Net/IMAP4.php
index 13a39ac..a4f9d36 100644
--- a/lib/Net/IMAP4.php
+++ b/lib/Net/IMAP4.php
@@ -1504,8 +1504,22 @@
is non-empty.
@access public
*/
- public function imap_list($ref="", $mailbox="*", $status_opts=array(), $select_opts=array()) {
- return $this->__list($ref, $mailbox, false, $status_opts, $select_opts);
+ public function imap_list(
+ $ref="",
+ $mailbox="*",
+ $status_opts=array(),
+ $select_opts=array(),
+ $metadata_opts=array()
+ ) {
+
+ return $this->__list(
+ $ref,
+ $mailbox,
+ false,
+ $status_opts,
+ $select_opts,
+ $metadata_opts
+ );
}
/*
@@ -1551,8 +1565,21 @@
is non-empty.
@access public
*/
- public function imap_lsub($ref="", $mailbox="*", $status_opts=array()) {
- return $this->__list($ref, $mailbox, true, $status_opts, NULL);
+ public function imap_lsub(
+ $ref="",
+ $mailbox="*",
+ $status_opts=array(),
+ $metadata_opts=array()
+ ) {
+
+ return $this->__list(
+ $ref,
+ $mailbox,
+ true,
+ $status_opts,
+ NULL,
+ $metadata_opts
+ );
}
public function imap_move($messages, $from, $to) {