summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-07 17:30:12 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-07 17:30:12 +0200
commit0456f728ee3f6312101d0a372b7385fb34fdaf2a (patch)
tree78434f3253dbc04c2791f09bfed5bc25b749563d /program/steps/mail/func.inc
parent6dc1a6645168e5e777a3db97b92d360a9e6b0c86 (diff)
Make UID extraction function globally availbale (for plugins)
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc31
1 files changed, 0 insertions, 31 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 4ff8fcb30..7adc06550 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -187,37 +187,6 @@ $RCMAIL->register_action_map(array(
/**
- * Returns message UID(s) and IMAP folder(s) from GET/POST data
- *
- * @param string UID value to decode
- * @param string Default mailbox value (if not encoded in UIDs)
- * @return array List of message UIDs per folder
- */
-function rcmail_get_uids($uids = null, $mbox = null)
-{
- // message UID (or comma-separated list of IDs) is provided in
- // the form of <ID>-<MBOX>[,<ID>-<MBOX>]*
-
- $_uid = $uids ?: get_input_value('_uid', RCUBE_INPUT_GPC);
- $_mbox = $mbox ?: (string)get_input_value('_mbox', RCUBE_INPUT_GPC);
-
- if (is_array($uid)) {
- return $uid;
- }
-
- // create a per-folder UIDs array
- $result = array();
- foreach (explode(',', $_uid) as $uid) {
- list($uid, $mbox) = explode('-', $uid, 2);
- if (empty($mbox))
- $mbox = $_mbox;
- $result[$mbox][] = $uid;
- }
-
- return $result;
-}
-
-/**
* Returns default search mods
*/
function rcmail_search_mods()