diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-03-31 13:51:59 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-03-31 13:51:59 +0200 |
commit | bb2113ccdcfb2eb3c7b04c161a6b21ef893eee7e (patch) | |
tree | 11c65d36a12ab780fb12a330a8089f7155443185 /plugins | |
parent | 1a7e668977ebdcc799c656dfbc11dd31a991282b (diff) |
Fix zipped messages downloads after selecting all messages in a folder (#1490339)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/zipdownload/zipdownload.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/zipdownload/zipdownload.php b/plugins/zipdownload/zipdownload.php index 2e103ceb0..983db1227 100644 --- a/plugins/zipdownload/zipdownload.php +++ b/plugins/zipdownload/zipdownload.php @@ -211,6 +211,11 @@ class zipdownload extends rcube_plugin $imap->set_folder($mbox); $path = $folders ? str_replace($imap->get_hierarchy_delimiter(), '/', $mbox) . '/' : ''; + if ($uids === '*') { + $index = $imap->index($mbox, null, null, true); + $uids = $index->get(); + } + foreach ($uids as $uid) { $headers = $imap->get_message_headers($uid); |