Hi,
Could any one help be test a new plugin please? The zipdownload plugin adds a little icon to the beginning of the attachment list when a message has multiple attachments to allow them all to be downloaded in a single zip file.
Please download it from here RoundCube Plugins & Patches (http://tehinterweb.co.uk/roundcube/#pizipdownload)
I was thinking the plugin could also be extended to allow the download of multiple messages or email folders but attachment download is first.
Please post feedback in this thread. Thanks.
Hi!
I never have a need for that, but after reading your post the idea is cool.
Thanks.
Rgds.
Works for me like a charm. Great idea and great work as everytime!
Works for me too (Windows Server 2003/PHP 5.2.11). Please, add to the Readme file that the php class 'ZipArchive' must be installed and the php_zip extension enabled.
good idea, will do.
I use Roundcube 0.3.1 on a PHP 5.1.6 system (Linux Fedora Core 6). I had to install php-pecl-zip to get the php class 'ZipArchive' working. Now it works perfectly!
works like a charm ;)
thank u very much for this Plugin ;)
Dakky
awesome! makes it easy to download pics from email.
rcube SVN 20100121 & php 5.2.11
no problems. thanks for the effort.
Not working...can't load message with multiple attachments. Using WAMP server 2.0 (php version 5.2.9-2) with latest stable roundcube. Only messages with one attachment or no attachments will load.
hi, thanks for the bug report but what exactly does "Not working" mean? also is there anything in the rc error log?
When I enable the zipdownload plugin I can view any email except for a message with multiple attachments. Here is the error that I get.
[25-Mar-2010 08:25:23] PHP Fatal error: Call to undefined method
zipdownload::local_skin_path() in .........\zipdownload\zipdownload.php on line 37
ah, you need RC 0.3.1 or SVN to use this plugin.
Thanks ....I will update soon so that I may use this feature....can't wait to report back.
Thanks JohnDoh!!! Works perfect.....awesome plugin!!
Great plugin.
Here is the Danish translation
thanks osos
Hi, I changed line
if (substr_count($p['content'], '<li>') > 1) {
to
if (substr_count($p['content'], '') > 0) {
because I can't download *.html files correctly with roundcube. For more infos: http://www.roundcubeforum.net/5-release-support/17-pending-issues/6696-html-attachment-not-viewable.html#post27390
Cool plugin... :D
So if I've correctly understand it, if I'm over a very slow connection, I will have a zip compression for my attachments...so I will use less bandwith...right?
thanks
Michele
thats right
Hmm. My zip archives all come down as damaged and un-openable. Running it on Fedora Core 10, PHP 5.2.9, Zip appears to be enabled per phpinfo(), but regardless of browser or OS, the file is bad. What am I missing here?
thats odd. is there anything in the error log? have you looked if there is actually any data at all in the zip file?
No, nothing in the error log at all. The plugin thinks it is working fine. There is no useable data inside the archive that I can get to. Attempting to open one in Windows delivers a generic "archive damaged" message. A Mac can open it, but it contains a different type of archive, which will expand into another zip, then another... in an endless loop.
I suspect that this is not really a problem with the plugin, but more likely a problem with my PHP packages and or config. Any assistance there is welcome.
I have the same problem here. I will check if RarArchive does the job.
It looks like zip in PHP 5.2.7 to 5.2.10 is buggy.
addFromString produces corrupt archive if string is longer than 255 chars.
PHP :: Bug #48763 :: ZipArchive produces corrupt OpenOffice.org files (http://bugs.php.net/48763)
Everything is fine after upgrading to PHP 5.3.1
thanks for getting to the bottom of this rosali
To clarify: I debugged PHP 5.2.7 - 5.2.10 on Windows OS. Don't know if *nix OS is affected too. 5.2.6 is fine on Windows. Bug starts on PHP 5.2.7. Don't know if the bug was fixed on 5.3.0. But as said 5.3.1 is ok.
JohnDoh, I've a credit next time when I'm again too dumb to adjust simple css files ;-)
The repo version of this plugin has been updated to allow the downloading of entire folders and also of groups of messages as zip files. The various download options are also now configurable.
These new options are only available in the repo version of the plugin at the moment, they are not part of today's 0.4-stable release.
Hello. Plugin page in first post seems to be outdated. If I try to search it manually there is no page at all. Where can I find it? In the latest roundcube release I can't find this feature too.
the zipdownload plugin has been distributed with roundcube since about version 0.9 I think so it should be already in your plugins folder. all you need to do is configure an enable it.
JohnDoh
Thank you! I was just not enough attentive.
I fired up this plugin, but it has an issue with cyrillic filenames. When I open downloaded archive with attachments their filenames are broken. Does anybody know how to fix it?
This is zip format problem. https://bugs.php.net/bug.php?id=51929. You can try to change zipdownload_charset, but I'm afraid there's no good solution for this.
There is a problem with unique file names in zip archive.
You can fix it at zipdownload.php
....
+$arrLocalNames = array();
foreach ($message->attachments as $part) {
....
....
$disp_name = $this->_convert_filename($filename);
+if (!empty($disp_name))
+{
+ // We have to make sure that there aren't two of the same local names.
+ // Otherwise, one file will override the other and we will be missing the file.
+ while($arrLocalNames[$disp_name] > 0)
+ {
+ $arrPathInfo = pathinfo($disp_name);
+ $intNext = $arrLocalNames[$disp_name]++;
+ $disp_name = $arrPathInfo['filename'] . "_" . $intNext . "." . $arrPathInfo['extension'];
+ }
+ // Add to the count.
+ $arrLocalNames[$disp_name]++;
+}
$tmpfn = tempnam($temp_dir, 'zipattach');
....
Have a nice day! :)