Import initial du site depuis le serveur

This commit is contained in:
WhyKorp's server
2026-04-27 06:52:16 +00:00
parent 81b39e856b
commit f57f9fe1d5
1871 changed files with 214417 additions and 32138 deletions
@@ -0,0 +1,34 @@
Roundcube Webmail ZipDownload
=============================
This plugin adds an option to download all attachments to a message in one zip
file, when a message has multiple attachments. The plugin also allows the
download of a selection of messages in 1 zip file.
Requirements
============
* php_zip extension (including ZipArchive class)
Either install it via PECL or for PHP >= 5.2 compile with --enable-zip option
License
=======
This plugin is released under the GNU General Public License Version 3
or later (http://www.gnu.org/licenses/gpl.html).
Even if skins might contain some programming work, they are not considered
as a linked part of the plugin and therefore skins DO NOT fall under the
provisions of the GPL license. See the README file located in the core skins
folder for details on the skin license.
Install
=======
* Place this plugin folder into plugins directory of Roundcube
* Add zipdownload to $config['plugins'] in your Roundcube config
NB: When downloading the plugin from GitHub you will need to create a
directory called zipdownload and place the files in there, ignoring the
root directory in the downloaded archive
Config
======
The default config file is plugins/zipdownload/config.inc.php.dist
Rename this to plugins/zipdownload/config.inc.php
@@ -0,0 +1,30 @@
{
"name": "roundcube/zipdownload",
"type": "roundcube-plugin",
"description": "Adds an option to download all attachments to a message in one zip file, when a message has multiple attachments. Also allows the download of a selection of messages in one zip file. Supports mbox and maildir format.",
"license": "GPL-3.0-or-later",
"version": "3.4",
"authors": [
{
"name": "Thomas Bruederli",
"email": "roundcube@gmail.com",
"role": "Lead"
},
{
"name": "Aleksander Machniak",
"email": "alec@alec.pl",
"role": "Lead"
}
],
"repositories": [
{
"type": "composer",
"url": "https://plugins.roundcube.net"
}
],
"require": {
"php": ">=7.3.0",
"roundcube/plugin-installer": ">=0.1.3",
"ext-zip": "*"
}
}
@@ -0,0 +1,19 @@
<?php
/**
* ZipDownload configuration file
*/
// Zip attachments
// Only show the link when there are more than this many attachments
// -1 to prevent downloading of attachments as zip
$config['zipdownload_attachments'] = 1;
// Zip selection of mail messages
// This option enables downloading of multiple messages as one zip archive.
// The number or string value specifies maximum total size of all messages
// in the archive (not the size of the archive itself).
$config['zipdownload_selection'] = '50MB';
// Charset to use for filenames inside the zip
$config['zipdownload_charset'] = 'ISO-8859-1';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'تنزيل كل المرفقات';
$labels['download'] = 'التنزيل جار …';
$labels['downloadmbox'] = 'نسق Mbox (.zip)';
$labels['downloadmaildir'] = 'نسق Maildir (.zip)';
$labels['downloademl'] = 'المصدر (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'تحميل جميع المرفقات';
$labels['download'] = 'تحميل...';
$labels['downloadmbox'] = 'تنسيق Mbox (.zip)';
$labels['downloadmaildir'] = 'تنسيق Maildir (.zip)';
$labels['downloademl'] = 'المصدر (.eml)';
$labels['sizelimiterror'] = 'إجمالي حجم الرسائل المحددة يتجاوز الحد ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descargar tolos axuntos';
$labels['download'] = 'Descargar...';
$labels['downloadmbox'] = 'Formatu Mbox (.zip)';
$labels['downloadmaildir'] = 'Formatu Maildir (.zip)';
$labels['downloademl'] = 'Fonte (.eml)';
@@ -0,0 +1,17 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Bütün qoşmaları endir';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Спампаваць усе далучэнні';
$labels['download'] = 'Сцягнуць...';
$labels['downloadmbox'] = 'Фармат mbox (.zip)';
$labels['downloadmaildir'] = 'Фармат maildir (.zip)';
$labels['downloademl'] = 'Выточны файл (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Изтегляне на всички прикачени файлове';
$labels['download'] = 'Изтегляне...';
$labels['downloadmbox'] = 'Mbox формат (.zip)';
$labels['downloadmaildir'] = 'Maildir формат (.zip)';
$labels['downloademl'] = 'Изходен код (.eml)';
$labels['sizelimiterror'] = 'Общият размер на избраните писма надхвърля лимита от ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Pellgargañ an holl stagadennoù';
$labels['download'] = 'Pellgargañ…';
$labels['downloadmbox'] = 'Mentrezh Mbox (.zip)';
$labels['downloadmaildir'] = 'Mentrezh Maildir (.zip)';
$labels['downloademl'] = 'Tarzh (.eml)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Preuzmi sve priloge';
$labels['download'] = 'Preuzmi...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Izvorno (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descarrega tots els adjunts';
$labels['download'] = 'Descarrega...';
$labels['downloadmbox'] = 'Format mbox (.zip)';
$labels['downloadmaildir'] = 'Format maildir (.zip)';
$labels['downloademl'] = 'Codi font (.eml)';
$labels['sizelimiterror'] = 'La mida total dels missatges seleccionats sobrepassa el límit ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Stáhnout všechny přílohy';
$labels['download'] = 'Stáhnout...';
$labels['downloadmbox'] = 'Formát mbox (.zip)';
$labels['downloadmaildir'] = 'Formát maildir (.zip)';
$labels['downloademl'] = 'Zdroj (.eml)';
$labels['sizelimiterror'] = 'Velikost vybraných zpráv byla překročena ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Lawrlwytho\'r holl atodiadau';
$labels['download'] = 'Lawrlwytho...';
$labels['downloadmbox'] = 'Fformat mbox (.zip)';
$labels['downloadmaildir'] = 'Fformat maildir (.zip)';
$labels['downloademl'] = 'Ffynhonnell (.eml)';
$labels['sizelimiterror'] = 'Cyfanswm maint yr holl negeseuon sy\'n fwy na\'r cyfyngiad ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Download alle som .zip-fil';
$labels['download'] = 'Download...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Kilde (.eml)';
$labels['sizelimiterror'] = 'Den totale størrelse af de valgte beskeder overskrider grænsen ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Alle Anhänge herunterladen';
$labels['download'] = 'Download...';
$labels['downloadmbox'] = 'Mbox Format (.zip)';
$labels['downloadmaildir'] = 'Maildir Format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
$labels['sizelimiterror'] = 'Die gesamte Grösse der ausgewählten Nachrichten übersteigt das Limit ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Alle Anhänge herunterladen';
$labels['download'] = 'Herunterladen...';
$labels['downloadmbox'] = 'Mbox-Format (.zip)';
$labels['downloadmaildir'] = 'Maildir-Format (.zip)';
$labels['downloademl'] = 'Quelltext (.eml)';
$labels['sizelimiterror'] = 'Die gesamte Größe der ausgewählten Nachrichten übersteigt das Limit ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Λήψη όλων των συνημμένων';
$labels['download'] = 'Λήψη...';
$labels['downloadmbox'] = 'Μορφή mbox (.zip)';
$labels['downloadmaildir'] = 'Μορφή maildir (.zip)';
$labels['downloademl'] = 'Πηγή (.eml)';
$labels['sizelimiterror'] = 'Το συνολικό μέγαθος των επιλεγμένων μηνυμάτων υπερβαίνει το όριο ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Download all attachments';
$labels['download'] = 'Download...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Download all attachments';
$labels['download'] = 'Download...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
$labels['sizelimiterror'] = 'Total size of selected messages exceeds the limit ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Download all attachments';
$labels['download'] = 'Download...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
$labels['sizelimiterror'] = 'Total size of selected messages exceeds the limit ($size)';
@@ -0,0 +1,17 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Elŝuti ĉiujn kunsendaĵojn';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descargar todos los archivos adjuntos';
$labels['download'] = 'Descargando...';
$labels['downloadmbox'] = 'Formato mbox (.zip)';
$labels['downloadmaildir'] = 'Formato maildir (.zip)';
$labels['downloademl'] = 'Fuente (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descargar Todo';
$labels['download'] = 'Descargar...';
$labels['downloadmbox'] = 'Formato Mbox (.zip)';
$labels['downloadmaildir'] = 'Formato Maildir (.zip)';
$labels['downloademl'] = 'Original (.eml)';
$labels['sizelimiterror'] = 'El tamaño total de los mensajes seleccionados supera el límite ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descargar todos los adjuntos';
$labels['download'] = 'Descargar...';
$labels['downloadmbox'] = 'Formato mbox (.zip)';
$labels['downloadmaildir'] = 'Formato maildir (.zip)';
$labels['downloademl'] = 'Fuente (.eml)';
$labels['sizelimiterror'] = 'El tamaño total de los mensajes seleccionados supera el límite ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Laadi alla kõik manused';
$labels['download'] = 'lae arvutisse';
$labels['downloadmbox'] = 'Mbox vorming (.zip)';
$labels['downloadmaildir'] = 'Maildir vorming (.zip)';
$labels['downloademl'] = 'Lähtetekst (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Deskargatu eranskin guztiak';
$labels['download'] = 'Deskargatu...';
$labels['downloadmbox'] = 'Mbox formatua (.zip)';
$labels['downloadmaildir'] = 'Maildir formatua (.zip)';
$labels['downloademl'] = 'Iturburua (.eml)';
$labels['sizelimiterror'] = 'Hautatutako mezuen tamainak muga ($size) gainditu du.';
@@ -0,0 +1,17 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'بارگزاری همه ضمیمه ها';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'بارگیری همه پیوست‌ها';
$labels['download'] = 'بارگیری';
$labels['downloadmbox'] = 'قالب Mbox (.zip)';
$labels['downloadmaildir'] = 'قالب Maildir (.zip)';
$labels['downloademl'] = 'منبع (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Lataa kaikki liitteet';
$labels['download'] = 'Lataa...';
$labels['downloadmbox'] = 'Mbox-muoto (.zip)';
$labels['downloadmaildir'] = 'Maildir-muoto (.zip)';
$labels['downloademl'] = 'Lähde (.eml)';
$labels['sizelimiterror'] = 'Valitsemiesi viestien yhteiskoko ylittää rajoituksen ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Heinta allar viðheftingar';
$labels['download'] = 'Heinta...';
$labels['downloadmbox'] = 'Mbox týpa (.zip)';
$labels['downloadmaildir'] = 'Teldupost mappu format (.zip)';
$labels['downloademl'] = 'Kelda (.eml)';
$labels['sizelimiterror'] = 'Tann samlaða støddin av tí valgda boðnum, er stórri enn stórst loyvdu boð stødd ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Télécharger toutes les pièces jointes';
$labels['download'] = 'Télécharger…';
$labels['downloadmbox'] = 'Format mbox (.zip)';
$labels['downloadmaildir'] = 'Format maildir (.zip)';
$labels['downloademl'] = 'Source (.eml)';
$labels['sizelimiterror'] = 'La taille totale des courriels sélectionnés dépasse la limite ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Alle taheaksels ynlade';
$labels['download'] = 'Ynlade...';
$labels['downloadmbox'] = 'Mbox formaat (.zip)';
$labels['downloadmaildir'] = 'Maildir formaat (.zip)';
$labels['downloademl'] = 'Boarne (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Íosluchtaigh gach ceangaltán';
$labels['download'] = 'Íosluchtaigh...';
$labels['downloadmbox'] = 'Formáid Mbox (.zip)';
$labels['downloadmaildir'] = 'Formáid maildir (.zip)';
$labels['downloademl'] = 'Foinse (.eml)';
$labels['sizelimiterror'] = 'Sáraíonn méid iomlán na dteachtaireachtaí roghnaithe an teorainn ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descargar todos os adxuntos';
$labels['download'] = 'Descargar';
$labels['downloadmbox'] = 'En formato mbox (.zip)';
$labels['downloadmaildir'] = 'En formato maildir (.zip)';
$labels['downloademl'] = 'Código fonte (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'להוריד את כל הצרופות';
$labels['download'] = 'מוריד כעת...';
$labels['downloadmbox'] = 'פורמט Mbox &rlm;(zip.)';
$labels['downloadmaildir'] = 'פורמט Maildir &rlm;(zip.)';
$labels['downloademl'] = 'מקור (eml.)';
$labels['sizelimiterror'] = 'הגודל הכולל של ההודעות שנבחרו עולה על הכמות שהוגדרה בסך ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Preuzmi sve privitke';
$labels['download'] = 'Preuzmi...';
$labels['downloadmbox'] = 'Mbox datoteka (.zip)';
$labels['downloadmaildir'] = 'Maildir datoteka (.zip)';
$labels['downloademl'] = 'Izvor (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Összes csatolmány letöltése';
$labels['download'] = 'Letöltés...';
$labels['downloadmbox'] = 'Mbox formátum (.zip)';
$labels['downloadmaildir'] = 'Maildir formátum (.zip)';
$labels['downloademl'] = 'Forrás (.eml)';
$labels['sizelimiterror'] = 'A kiválasztott üzenetek mérete meghaladta a maximum méretet ($size) ';
@@ -0,0 +1,17 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Ներբեռնել բոլո կցված նիշքերը';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Discargar tote le attachamentos';
$labels['download'] = 'Discargar...';
$labels['downloadmbox'] = 'Formato Mbox (.zip)';
$labels['downloadmaildir'] = 'Formato Maildir (.zip)';
$labels['downloademl'] = 'Fonte (.eml)';
$labels['sizelimiterror'] = 'Le dimension total del messages seligite excede le limite ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Unduh semua lampiran';
$labels['download'] = 'Unduh...';
$labels['downloadmbox'] = 'Format Mbox (.zip)';
$labels['downloadmaildir'] = 'Format Maildir (.zip)';
$labels['downloademl'] = 'Sumber (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Niðurhala öllum viðhengjum';
$labels['download'] = 'Hlaða niður...';
$labels['downloadmbox'] = 'Mbox snið (.zip)';
$labels['downloadmaildir'] = 'Maildir snið (.zip)';
$labels['downloademl'] = 'Upprunalegt (.eml)';
$labels['sizelimiterror'] = 'Heildarstærð valinna skilaboða fer fram yfir ($size) takmörkin';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Scarica tutti gli allegati';
$labels['download'] = 'Scarica...';
$labels['downloadmbox'] = 'Formato mbox (.zip)';
$labels['downloadmaildir'] = 'Formato maildir (.zip)';
$labels['downloademl'] = 'Sorgente (.eml)';
$labels['sizelimiterror'] = 'La dimensione totale dei messaggi selezionati supera il limite ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'すべての添付ファイルをダウンロード';
$labels['download'] = 'ダウンロード...';
$labels['downloadmbox'] = 'mbox形式(.zip)';
$labels['downloadmaildir'] = 'Maildir形式(.zip)';
$labels['downloademl'] = 'ソース(.eml)';
$labels['sizelimiterror'] = '選択したメッセージのサイズの合計が制限($size)を超過します。';
@@ -0,0 +1,17 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'ទាញ​យក​ឯកសារ​ភ្ជាប់​ទាំងអស់';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = '모든 첨부파일을 다운로드';
$labels['download'] = '다운로드...';
$labels['downloadmbox'] = 'Mbox 형식 (.zip)';
$labels['downloadmaildir'] = 'Maildir 형식 (.zip)';
$labels['downloademl'] = '소스 (.eml)';
$labels['sizelimiterror'] = '선택한 메시지의 전체 크기가 최대 크기인 ($size)을(를) 초과함';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Hemû pêvekan daxîne';
$labels['download'] = 'Daxîne...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Çavkanî (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'داگرتنی هەموو هاوپێچەکان';
$labels['download'] = 'داگرتن...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
$labels['sizelimiterror'] = 'کۆی قەبارەی پەیامە هەڵبژێردراوەکان لە سنوورەکە تێپەڕیووە ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'All d\'Unhäng eroflueden';
$labels['download'] = 'Eroflueden...';
$labels['downloadmbox'] = 'Mbox-Format (.zip)';
$labels['downloadmaildir'] = 'Maildir-Format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Atsisiųsti visus priedus';
$labels['download'] = 'Parsisiųsti...';
$labels['downloadmbox'] = 'Mbox formatas (.zip)';
$labels['downloadmaildir'] = 'Maildir formatas (.zip)';
$labels['downloademl'] = 'Kodas (.eml)';
$labels['sizelimiterror'] = 'Bendras pasirinktų laiškų dydis viršija ribą ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Lejupielādēt visus pielikumus';
$labels['download'] = 'Lejupielādē...';
$labels['downloadmbox'] = 'Mbox formāts(.zip)';
$labels['downloadmaildir'] = 'Maildir formāts (.zip)';
$labels['downloademl'] = 'Izejas avots (.eml)';
$labels['sizelimiterror'] = 'Kopējais atzīmēto ziņojumu lielums pārsniedz limitu ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Симни ги сите прикачувања ';
$labels['download'] = 'Симни...';
$labels['downloadmbox'] = 'Mbox формат(.zip)';
$labels['downloadmaildir'] = 'Maildir формат(.zip)';
$labels['downloademl'] = 'Извор(.eml)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'എല്ലാ അറ്റാച്ച്മെന്റുകളും ഡൗൺലോഡ് ചെയ്യുക';
$labels['download'] = 'ഡൗൺലോഡ്...';
$labels['downloadmbox'] = 'എംബോക്സ് രീതി (.zip)';
$labels['downloadmaildir'] = 'മെയിൽഡിർ രീതി (.zip)';
$labels['downloademl'] = 'സ്രോതസ്സ് (.eml)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Бүх хавсралтыг татах';
$labels['download'] = 'Татаж авах...';
$labels['downloadmbox'] = 'Хайрцагны формат (.zip)';
$labels['downloadmaildir'] = 'Мэйлийн хавтасны формат (.zip)';
$labels['downloademl'] = 'Эх код (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Last ned alle vedlegg';
$labels['download'] = 'Nedlaste...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Kildekode (.eml)';
$labels['sizelimiterror'] = 'Den totale størrelsen av de markerte meldingene overgår grensen ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Alle bijlagen downloaden';
$labels['download'] = 'Download...';
$labels['downloadmbox'] = 'Mbox-formaat (.zip)';
$labels['downloadmaildir'] = 'Maildir-formaat (.zip)';
$labels['downloademl'] = 'Bron (.eml)';
$labels['sizelimiterror'] = 'Totale grootte van geselecteerde berichten is groter dan de limit ($size)';
@@ -0,0 +1,17 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Last ned alle vedlegg';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Pobierz wszystkie jako ZIP';
$labels['download'] = 'Pobierz...';
$labels['downloadmbox'] = 'Format mbox (.zip)';
$labels['downloadmaildir'] = 'Format maildir (.zip)';
$labels['downloademl'] = 'Źródło wiadomości (.eml)';
$labels['sizelimiterror'] = 'Całkowity rozmiar wybranych wiadomości przekracza limit ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Baixar todos os anexos';
$labels['download'] = 'Baixar...';
$labels['downloadmbox'] = 'Formato mbox (.zip)';
$labels['downloadmaildir'] = 'Formato maildir (.zip)';
$labels['downloademl'] = 'Fonte (.eml)';
$labels['sizelimiterror'] = 'Tamanho total das mensagens selecionadas excede o limite ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Transferir todos os anexos';
$labels['download'] = 'Transferir...';
$labels['downloadmbox'] = 'Formato Mbox (.zip)';
$labels['downloadmaildir'] = 'Formato Maildir (.zip)';
$labels['downloademl'] = 'Original (.eml)';
$labels['sizelimiterror'] = 'O tamanho total das mensagens seleccionadas excede o limite de ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Descarcă toate atașamentele';
$labels['download'] = 'Descarcă...';
$labels['downloadmbox'] = 'Format Mbox (.zip)';
$labels['downloadmaildir'] = 'Format Maildir (.zip)';
$labels['downloademl'] = 'Sursă (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Загрузить все вложения';
$labels['download'] = 'Загрузка...';
$labels['downloadmbox'] = 'Формат Mbox (.zip)';
$labels['downloadmaildir'] = 'Формат Maildir (.zip)';
$labels['downloademl'] = 'Исходный формат (.eml)';
$labels['sizelimiterror'] = 'Общий размер выбранных сообщений превышает лимит ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Stiahnuť všetky prílohy';
$labels['download'] = 'Stiahnuť...';
$labels['downloadmbox'] = 'Formát Mbox (.zip)';
$labels['downloadmaildir'] = 'Formát Maildir (.zip)';
$labels['downloademl'] = 'Zdroj (.eml)';
$labels['sizelimiterror'] = 'Celková veľkosť vybraných správ prekračuje limit ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Prenesi vse priponke';
$labels['download'] = 'Prenesi...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Vir (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Shkarkoji krejt bashkëngjitjet';
$labels['download'] = 'Shkarkoni…';
$labels['downloadmbox'] = 'Në format Mbox (.zip)';
$labels['downloadmaildir'] = 'Në format Maildir (.zip)';
$labels['downloademl'] = 'Burim (.eml)';
$labels['sizelimiterror'] = 'Madhësia gjithsej e mesazheve të përzgjedhur e tejkalon kufirin ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Преузми све прилоге';
$labels['download'] = 'Преузимање...';
$labels['downloadmbox'] = 'Mbox формат (.zip)';
$labels['downloadmaildir'] = 'Maildir формат (.zip)';
$labels['downloademl'] = 'Изворно (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Hämta alla bifogade filer';
$labels['download'] = 'Hämta...';
$labels['downloadmbox'] = 'Format Mbox (.zip)';
$labels['downloadmaildir'] = 'Format Maildir (.zip)';
$labels['downloademl'] = 'Källkod (.eml)';
$labels['sizelimiterror'] = 'Sammanlagd storlek på valda meddelanden är för stor ($size)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'ดาวน์โหลดทุกไฟล์';
$labels['download'] = 'ดาวน์โหลด...';
$labels['downloadmbox'] = 'Mbox format (.zip)';
$labels['downloadmaildir'] = 'Maildir format (.zip)';
$labels['downloademl'] = 'Source (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Tüm ek dosyaları indir';
$labels['download'] = 'İndir...';
$labels['downloadmbox'] = 'Mbox biçimi (.zip)';
$labels['downloadmaildir'] = 'Maildir biçimi (.zip)';
$labels['downloademl'] = 'Kaynak (.eml)';
$labels['sizelimiterror'] = 'Seçilmiş iletilerin toplam boyutu belirtilen sınırı aşıyor ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'بارلىق قىستۇرمىلارنى چۈشۈرۈش';
$labels['download'] = 'چۈشۈرۈش...';
$labels['downloadmbox'] = 'خەت ساندۇقى فورماتى (.zip)';
$labels['downloadmaildir'] = 'خەت مۇندەرىجىسى فورماتى (.زىپ)';
$labels['downloademl'] = 'مەنبە (eml.)';
$labels['sizelimiterror'] = 'تاللانغان خەتلەرنىڭ جەمئىي چوڭلۇقى چەكتىن (size$) ئېشىپ كەتتى';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Завантажити всі вкладення';
$labels['download'] = 'Завантаження…';
$labels['downloadmbox'] = 'Формат Mbox (.zip)';
$labels['downloadmaildir'] = 'Формат Maildir (.zip)';
$labels['downloademl'] = 'Джерело (.eml)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Barcha ilovalarni kochirib olish';
$labels['download'] = 'Kochirish...';
$labels['downloadmbox'] = 'Mbox formati (.zip)';
$labels['downloadmaildir'] = 'Maildir formati (.zip)';
$labels['downloademl'] = 'Manba (.eml)';
@@ -0,0 +1,21 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = 'Tải tất cả tệp tin đính kèm';
$labels['download'] = 'Tải xuống...';
$labels['downloadmbox'] = 'Định dạng mbox (.zip)';
$labels['downloadmaildir'] = 'Định dạng Maildir (.zip)';
$labels['downloademl'] = 'Mã nguồn (.eml)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = '下载全部附件';
$labels['download'] = '下载...';
$labels['downloadmbox'] = 'Mbox 格式 (.zip)';
$labels['downloadmaildir'] = 'Maildir 格式 (.zip)';
$labels['downloademl'] = '源代码 (.eml)';
$labels['sizelimiterror'] = '选中消息的总大小超过了限制 ($size)';
@@ -0,0 +1,22 @@
<?php
/*
+-----------------------------------------------------------------------+
| Localization file of the Roundcube Webmail Zipdownload plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+
For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-zipdownload/
*/
$labels['downloadall'] = '下載所有附件';
$labels['download'] = '下載...';
$labels['downloadmbox'] = 'Mbox 格式 (.zip)';
$labels['downloadmaildir'] = 'Maildir 格式 (.zip)';
$labels['downloademl'] = '原始格式 (.eml)';
$labels['sizelimiterror'] = '所選郵件總大小超過限制 ($size)';
@@ -0,0 +1,105 @@
/**
* ZipDownload plugin script
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (c) The Roundcube Dev Team
*
* The JavaScript code in this page is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* @licend The above is the entire license notice
* for the JavaScript code in this file.
*/
window.rcmail && rcmail.addEventListener('init', function(evt) {
// register additional actions
rcmail.register_command('download-eml', function() { rcmail_zipdownload('eml'); });
rcmail.register_command('download-mbox', function() { rcmail_zipdownload('mbox'); });
rcmail.register_command('download-maildir', function() { rcmail_zipdownload('maildir'); });
// commands status
rcmail.message_list && rcmail.message_list.addEventListener('select', function(list) {
var selected = list.get_selection().length;
rcmail.enable_command('download', selected > 0);
});
// hook before default download action
rcmail.addEventListener('beforedownload', rcmail_zipdownload_menu);
// find and modify default download link/button
$.each(rcmail.buttons['download'] || [], function() {
var link = $('#' + this.id),
span = $('span', link);
if (!span.length) {
span = $('<span>');
link.html('').append(span);
}
link.attr('aria-haspopup', 'true');
span.text(rcmail.get_label('zipdownload.download'));
rcmail.env.download_link = link;
});
});
function rcmail_zipdownload(mode)
{
// default .eml download of single message
if (mode == 'eml') {
var uid = rcmail.get_single_uid();
rcmail.goto_url('viewsource', rcmail.params_from_uid(uid, {_save: 1}), false, true);
return;
}
// multi-message download, use hidden form to POST selection
if (rcmail.message_list && rcmail.message_list.get_selection().length > 1) {
var inputs = [],
post = rcmail.selection_post_data(),
id = 'zipdownload-' + new Date().getTime(),
iframe = $('<iframe>').attr({name: id, style: 'display:none'}),
form = $('<form>').attr({
target: id,
style: 'display: none',
method: 'post',
action: rcmail.url('mail/plugin.zipdownload.messages')
});
post._mode = mode;
post._token = rcmail.env.request_token;
$.each(post, function(k, v) {
if (typeof v == 'object' && v.length > 1) {
for (var j=0; j < v.length; j++)
inputs.push($('<input>').attr({type: 'hidden', name: k+'[]', value: v[j]}));
}
else {
inputs.push($('<input>').attr({type: 'hidden', name: k, value: v}));
}
});
iframe.appendTo(document.body);
form.append(inputs).appendTo(document.body).submit();
}
}
// display download options menu
function rcmail_zipdownload_menu(e)
{
// Menu option status
var selected = rcmail.message_list.get_selection().length;
rcmail.enable_command('download-eml', selected == 1);
rcmail.enable_command('download-mbox', 'download-maildir', selected > 1);
// show (sub)menu for download selection
rcmail.command('menu-open', 'zipdownload-menu', e && e.target ? e.target : rcmail.env.download_link, e);
// abort default download action
return false;
}
@@ -0,0 +1,17 @@
/**
* ZipDownload plugin script
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (c) The Roundcube Dev Team
*
* The JavaScript code in this page is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* @licend The above is the entire license notice
* for the JavaScript code in this file.
*/
function rcmail_zipdownload(a){var i,e,n,l;"eml"!=a?rcmail.message_list&&1<rcmail.message_list.get_selection().length&&(i=[],e=rcmail.selection_post_data(),l="zipdownload-"+(new Date).getTime(),n=$("<iframe>").attr({name:l,style:"display:none"}),l=$("<form>").attr({target:l,style:"display: none",method:"post",action:rcmail.url("mail/plugin.zipdownload.messages")}),e._mode=a,e._token=rcmail.env.request_token,$.each(e,function(a,e){if("object"==typeof e&&1<e.length)for(var n=0;n<e.length;n++)i.push($("<input>").attr({type:"hidden",name:a+"[]",value:e[n]}));else i.push($("<input>").attr({type:"hidden",name:a,value:e}))}),n.appendTo(document.body),l.append(i).appendTo(document.body).submit()):(l=rcmail.get_single_uid(),rcmail.goto_url("viewsource",rcmail.params_from_uid(l,{_save:1}),!1,!0))}function rcmail_zipdownload_menu(a){var e=rcmail.message_list.get_selection().length;return rcmail.enable_command("download-eml",1==e),rcmail.enable_command("download-mbox","download-maildir",1<e),rcmail.command("menu-open","zipdownload-menu",a&&a.target?a.target:rcmail.env.download_link,a),!1}window.rcmail&&rcmail.addEventListener("init",function(a){rcmail.register_command("download-eml",function(){rcmail_zipdownload("eml")}),rcmail.register_command("download-mbox",function(){rcmail_zipdownload("mbox")}),rcmail.register_command("download-maildir",function(){rcmail_zipdownload("maildir")}),rcmail.message_list&&rcmail.message_list.addEventListener("select",function(a){a=a.get_selection().length;rcmail.enable_command("download",0<a)}),rcmail.addEventListener("beforedownload",rcmail_zipdownload_menu),$.each(rcmail.buttons.download||[],function(){var a=$("#"+this.id),e=$("span",a);e.length||(e=$("<span>"),a.html("").append(e)),a.attr("aria-haspopup","true"),e.text(rcmail.get_label("zipdownload.download")),rcmail.env.download_link=a})});
@@ -0,0 +1,413 @@
<?php
/**
* ZipDownload
*
* Plugin to allow the download of all message attachments in one zip file
* and also download of many messages in one go.
*
* @requires php_zip extension (including ZipArchive class)
*
* @author Philip Weir
* @author Thomas Bruderli
* @author Aleksander Machniak
*/
class zipdownload extends rcube_plugin
{
public $task = 'mail';
private $charset = 'ASCII';
private $names = [];
private $default_limit = '50MB';
// RFC4155: mbox date format
const MBOX_DATE_FORMAT = 'D M d H:i:s Y';
/**
* Plugin initialization
*/
public function init()
{
// check requirements first
if (!class_exists('ZipArchive', false)) {
rcmail::raise_error([
'code' => 520,
'file' => __FILE__,
'line' => __LINE__,
'message' => "php-zip extension is required for the zipdownload plugin"
], true, false
);
return;
}
$rcmail = rcmail::get_instance();
$this->load_config();
$this->charset = $rcmail->config->get('zipdownload_charset', RCUBE_CHARSET);
if ($rcmail->config->get('zipdownload_attachments', 1) > -1 && ($rcmail->action == 'show' || $rcmail->action == 'preview')) {
$this->add_texts('localization');
$this->add_hook('template_object_messageattachments', [$this, 'attachment_ziplink']);
}
$this->register_action('plugin.zipdownload.attachments', [$this, 'download_attachments']);
$this->register_action('plugin.zipdownload.messages', [$this, 'download_messages']);
if (!$rcmail->action && $rcmail->config->get('zipdownload_selection', $this->default_limit)) {
$this->add_texts('localization');
$this->download_menu();
}
}
/**
* Place a link/button after attachments listing to trigger download
*/
public function attachment_ziplink($p)
{
$rcmail = rcmail::get_instance();
// only show the link if there is more than the configured number of attachments
if (substr_count($p['content'], '<li') > $rcmail->config->get('zipdownload_attachments', 1)) {
$href = $rcmail->url([
'_action' => 'plugin.zipdownload.attachments',
'_mbox' => $rcmail->output->get_env('mailbox'),
'_uid' => $rcmail->output->get_env('uid'),
],
false, false, true
);
// append the link to the attachments list
$p['content'] .= html::a(
['href' => $href, 'class' => 'button zipdownload'],
rcube::Q($this->gettext('downloadall'))
);
$this->include_stylesheet($this->local_skin_path() . '/zipdownload.css');
}
return $p;
}
/**
* Adds download options menu to the page
*/
public function download_menu()
{
$this->include_script('zipdownload.js');
$this->add_label('download');
$rcmail = rcmail::get_instance();
$menu = [];
$ul_attr = [
'role' => 'menu',
'aria-labelledby' => 'aria-label-zipdownloadmenu',
'class' => 'toolbarmenu menu',
];
foreach (['eml', 'mbox', 'maildir'] as $type) {
$menu[] = html::tag('li', null, $rcmail->output->button([
'command' => "download-$type",
'label' => "zipdownload.download$type",
'class' => "download $type disabled",
'classact' => "download $type active",
'type' => 'link',
])
);
}
$rcmail->output->add_footer(
html::div(['id' => 'zipdownload-menu', 'class' => 'popupmenu', 'aria-hidden' => 'true'],
html::tag('h2', ['class' => 'voice', 'id' => 'aria-label-zipdownloadmenu'], "Message Download Options Menu")
. html::tag('ul', $ul_attr, implode('', $menu))
)
);
}
/**
* Handler for attachment download action
*/
public function download_attachments()
{
$rcmail = rcmail::get_instance();
// require CSRF protected request
$rcmail->request_security_check(rcube_utils::INPUT_GET);
$tmpfname = rcube_utils::temp_filename('zipdownload');
$tempfiles = [$tmpfname];
$message = new rcube_message(rcube_utils::get_input_string('_uid', rcube_utils::INPUT_GET));
// open zip file
$zip = new ZipArchive();
$zip->open($tmpfname, ZIPARCHIVE::OVERWRITE);
foreach ($message->attachments as $part) {
$pid = $part->mime_id;
$part = $message->mime_parts[$pid];
$disp_name = $this->_create_displayname($part);
$tmpfn = rcube_utils::temp_filename('zipattach');
$tmpfp = fopen($tmpfn, 'w');
$tempfiles[] = $tmpfn;
$message->get_part_body($part->mime_id, false, 0, $tmpfp);
$zip->addFile($tmpfn, $disp_name);
fclose($tmpfp);
}
$zip->close();
$filename = ($this->_filename_from_subject($message->subject) ?: 'attachments') . '.zip';
$this->_deliver_zipfile($tmpfname, $filename);
// delete temporary files from disk
foreach ($tempfiles as $tmpfn) {
unlink($tmpfn);
}
exit;
}
/**
* Handler for message download action
*/
public function download_messages()
{
$rcmail = rcmail::get_instance();
if ($rcmail->config->get('zipdownload_selection', $this->default_limit)) {
$messageset = rcmail::get_uids(null, null, $multi, rcube_utils::INPUT_POST);
if (count($messageset)) {
$this->_download_messages($messageset);
}
}
}
/**
* Create and get display name of attachment part to add on zip file
*
* @param rcube_message_part $part Part of attachment on message
*
* @return string Display name of attachment part
*/
private function _create_displayname($part)
{
$rcmail = rcmail::get_instance();
$filename = $part->filename;
if ($filename === null || $filename === '') {
$ext = array_first((array) rcube_mime::get_mime_extensions($part->mimetype));
$filename = $rcmail->gettext('messagepart') . ' ' . $part->mime_id;
if ($ext) {
$filename .= '.' . $ext;
}
}
$displayname = $this->_convert_filename($filename);
/**
* Adding a number before dot of extension on a name of file with same name on zip
* Ext: attach(1).txt on attach filename that has a attach.txt filename on same zip
*/
if (isset($this->names[$displayname])) {
list($filename, $ext) = preg_split("/\.(?=[^\.]*$)/", $displayname);
$displayname = $filename . '(' . ($this->names[$displayname]++) . ').' . $ext;
$this->names[$displayname] = 1;
}
else {
$this->names[$displayname] = 1;
}
return $displayname;
}
/**
* Helper method to packs all the given messages into a zip archive
*
* @param array List of message UIDs to download
*/
private function _download_messages($messageset)
{
$this->add_texts('localization');
$rcmail = rcmail::get_instance();
$imap = $rcmail->get_storage();
$mode = rcube_utils::get_input_string('_mode', rcube_utils::INPUT_POST);
$limit = $rcmail->config->get('zipdownload_selection', $this->default_limit);
$limit = $limit !== true ? parse_bytes($limit) : -1;
$delimiter = $imap->get_hierarchy_delimiter();
$tmpfname = rcube_utils::temp_filename('zipdownload');
$tempfiles = [$tmpfname];
$folders = count($messageset) > 1;
$timezone = new DateTimeZone('UTC');
$messages = [];
$size = 0;
// collect messages metadata (and check size limit)
foreach ($messageset as $mbox => $uids) {
$imap->set_folder($mbox);
if ($uids === '*') {
$index = $imap->index($mbox, null, null, true);
$uids = $index->get();
}
foreach ($uids as $uid) {
$headers = $imap->get_message_headers($uid);
if ($mode == 'mbox') {
// Sender address
$from = rcube_mime::decode_address_list($headers->from, null, true, $headers->charset, true);
$from = array_shift($from);
$from = preg_replace('/\s/', '-', $from);
// Received (internal) date
$date = rcube_utils::anytodatetime($headers->internaldate, $timezone);
if ($date) {
$date = $date->format(self::MBOX_DATE_FORMAT);
}
// Mbox format header (RFC4155)
$header = sprintf("From %s %s\r\n",
$from ?: 'MAILER-DAEMON',
$date ?: ''
);
$messages[$uid . ':' . $mbox] = $header;
}
else { // maildir
$subject = rcube_mime::decode_header($headers->subject, $headers->charset);
$subject = $this->_filename_from_subject(mb_substr($subject, 0, 16));
$subject = $this->_convert_filename($subject);
$path = $folders ? str_replace($delimiter, '/', $mbox) . '/' : '';
$disp_name = $path . $uid . ($subject ? " $subject" : '') . '.eml';
$messages[$uid . ':' . $mbox] = $disp_name;
}
$size += $headers->size;
if ($limit > 0 && $size > $limit) {
unlink($tmpfname);
$msg = $this->gettext([
'name' => 'sizelimiterror',
'vars' => ['$size' => rcmail_action::show_bytes($limit)]
]);
$rcmail->output->show_message($msg, 'error');
$rcmail->output->send('iframe');
exit;
}
}
}
if ($mode == 'mbox') {
$tmpfp = fopen($tmpfname . '.mbox', 'w');
if (!$tmpfp) {
exit;
}
}
// open zip file
$zip = new ZipArchive();
$zip->open($tmpfname, ZIPARCHIVE::OVERWRITE);
foreach ($messages as $key => $value) {
list($uid, $mbox) = explode(':', $key, 2);
$imap->set_folder($mbox);
if (!empty($tmpfp)) {
fwrite($tmpfp, $value);
// Use stream filter to quote "From " in the message body
stream_filter_register('mbox_filter', 'zipdownload_mbox_filter');
$filter = stream_filter_append($tmpfp, 'mbox_filter');
$imap->get_raw_body($uid, $tmpfp);
stream_filter_remove($filter);
fwrite($tmpfp, "\r\n");
}
else { // maildir
$tmpfn = rcube_utils::temp_filename('zipmessage');
$fp = fopen($tmpfn, 'w');
$imap->get_raw_body($uid, $fp);
$tempfiles[] = $tmpfn;
fclose($fp);
$zip->addFile($tmpfn, $value);
}
}
$filename = $folders ? 'messages' : $imap->get_folder();
if (!empty($tmpfp)) {
$tempfiles[] = $tmpfname . '.mbox';
fclose($tmpfp);
$zip->addFile($tmpfname . '.mbox', $filename . '.mbox');
}
$zip->close();
$this->_deliver_zipfile($tmpfname, $filename . '.zip');
// delete temporary files from disk
foreach ($tempfiles as $tmpfn) {
unlink($tmpfn);
}
exit;
}
/**
* Helper method to send the zip archive to the browser
*/
private function _deliver_zipfile($tmpfname, $filename)
{
$rcmail = rcmail::get_instance();
$rcmail->output->download_headers($filename, ['length' => filesize($tmpfname)]);
readfile($tmpfname);
}
/**
* Helper function to convert filenames to the configured charset
*/
private function _convert_filename($str)
{
$str = strtr($str, [':' => '', '/' => '-']);
return rcube_charset::convert($str, RCUBE_CHARSET, $this->charset);
}
/**
* Helper function to convert message subject into filename
*/
private function _filename_from_subject($str)
{
$str = preg_replace('/[\t\n\r\0\x0B]+\s*/', ' ', $str);
return trim($str, " ./_");
}
}
class zipdownload_mbox_filter extends php_user_filter
{
#[ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
// messages are read line by line
if (preg_match('/^>*From /', $bucket->data)) {
$bucket->data = '>' . $bucket->data;
$bucket->datalen += 1;
}
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return PSFS_PASS_ON;
}
}