diff options
Diffstat (limited to 'plugins/markasjunk')
22 files changed, 0 insertions, 328 deletions
diff --git a/plugins/markasjunk/localization/cs_CZ.inc b/plugins/markasjunk/localization/cs_CZ.inc deleted file mode 100644 index 18509cf51..000000000 --- a/plugins/markasjunk/localization/cs_CZ.inc +++ /dev/null @@ -1,24 +0,0 @@ -<?php - -/* - -+-----------------------------------------------------------------------+ -| language/cs_CZ/labels.inc | -| | -| Language file of the Roundcube markasjunk plugin | -| Copyright (C) 2005-2009, The Roundcube Dev Team | -| Licensed under the GNU GPL | -| | -+-----------------------------------------------------------------------+ -| Author: Milan Kozak <hodza@hodza.net> | -+-----------------------------------------------------------------------+ - -@version $Id: labels.inc 2993 2009-09-26 18:32:07Z alec $ - -*/ - -$labels = array(); -$labels['buttontitle'] = 'Označit jako Spam'; -$labels['reportedasjunk'] = 'Úspěšně nahlášeno jako Spam'; - -?>
\ No newline at end of file diff --git a/plugins/markasjunk/localization/da_DK.inc b/plugins/markasjunk/localization/da_DK.inc deleted file mode 100644 index e351b0f61..000000000 --- a/plugins/markasjunk/localization/da_DK.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Marker som junk mail'; -$labels['reportedasjunk'] = 'Successfuldt rapporteret som junk mail'; - -?> diff --git a/plugins/markasjunk/localization/de_CH.inc b/plugins/markasjunk/localization/de_CH.inc deleted file mode 100644 index 9cfa38dad..000000000 --- a/plugins/markasjunk/localization/de_CH.inc +++ /dev/null @@ -1,6 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Als SPAM markieren'; -$labels['reportedasjunk'] = 'Erfolgreich als SPAM gemeldet'; - diff --git a/plugins/markasjunk/localization/de_DE.inc b/plugins/markasjunk/localization/de_DE.inc deleted file mode 100644 index f21edf7cd..000000000 --- a/plugins/markasjunk/localization/de_DE.inc +++ /dev/null @@ -1,6 +0,0 @@ -<?php -// translation done by Ulli Heist - http://heist.hobby-site.org/ -$labels = array(); -$labels['buttontitle'] = 'als SPAM markieren'; -$labels['reportedasjunk'] = 'Erfolgreich als SPAM gemeldet'; -?>
\ No newline at end of file diff --git a/plugins/markasjunk/localization/en_US.inc b/plugins/markasjunk/localization/en_US.inc deleted file mode 100644 index c1f56ad1d..000000000 --- a/plugins/markasjunk/localization/en_US.inc +++ /dev/null @@ -1,8 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontext'] = 'Junk'; -$labels['buttontitle'] = 'Mark as Junk'; -$labels['reportedasjunk'] = 'Successfully reported as Junk'; - -?>
\ No newline at end of file diff --git a/plugins/markasjunk/localization/es_AR.inc b/plugins/markasjunk/localization/es_AR.inc deleted file mode 100644 index decdde2a8..000000000 --- a/plugins/markasjunk/localization/es_AR.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Marcar como SPAM'; -$labels['reportedasjunk'] = 'Mensaje reportado como SPAM'; - -?> diff --git a/plugins/markasjunk/localization/es_ES.inc b/plugins/markasjunk/localization/es_ES.inc deleted file mode 100644 index 8e5ca492d..000000000 --- a/plugins/markasjunk/localization/es_ES.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Marcar como SPAM'; -$labels['reportedasjunk'] = 'Mensaje informado como SPAM'; - -?> diff --git a/plugins/markasjunk/localization/et_EE.inc b/plugins/markasjunk/localization/et_EE.inc deleted file mode 100644 index daf140512..000000000 --- a/plugins/markasjunk/localization/et_EE.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Märgista Rämpsuks'; -$labels['reportedasjunk'] = 'Edukalt Rämpsuks märgitud'; - -?> diff --git a/plugins/markasjunk/localization/gl_ES.inc b/plugins/markasjunk/localization/gl_ES.inc deleted file mode 100644 index b1f49a23e..000000000 --- a/plugins/markasjunk/localization/gl_ES.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Marcar como correo lixo'; -$labels['reportedasjunk'] = 'Mensaxe marcada como correo lixo'; - -?> diff --git a/plugins/markasjunk/localization/it_IT.inc b/plugins/markasjunk/localization/it_IT.inc deleted file mode 100644 index cc44fae21..000000000 --- a/plugins/markasjunk/localization/it_IT.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Marca come Spam'; -$labels['reportedasjunk'] = 'Messaggio marcato come Spam'; - -?>
\ No newline at end of file diff --git a/plugins/markasjunk/localization/ja_JP.inc b/plugins/markasjunk/localization/ja_JP.inc deleted file mode 100644 index d4fbaea41..000000000 --- a/plugins/markasjunk/localization/ja_JP.inc +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -/* - +-----------------------------------------------------------------------+ - | localization/ja_JP/labels.inc | - | | - | Language file of the Roundcube Webmail client | - | Copyright (C) 2012, The Roundcube Dev Team | - | Licensed under the GNU General Public License | - | | - +-----------------------------------------------------------------------+ - | Author: Takahiro Kambe <Unknown> | - +-----------------------------------------------------------------------+ - @version $Id$ -*/ - -$labels = array(); -$labels['buttontitle'] = '迷惑メールとして設定'; -$labels['reportedasjunk'] = '迷惑メールとして報告しました。'; - diff --git a/plugins/markasjunk/localization/pl_PL.inc b/plugins/markasjunk/localization/pl_PL.inc deleted file mode 100644 index a98f0aab3..000000000 --- a/plugins/markasjunk/localization/pl_PL.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Oznacz jako SPAM'; -$labels['reportedasjunk'] = 'Pomyślnie oznaczono jako SPAM'; - -?> diff --git a/plugins/markasjunk/localization/ru_RU.inc b/plugins/markasjunk/localization/ru_RU.inc deleted file mode 100644 index d3547632a..000000000 --- a/plugins/markasjunk/localization/ru_RU.inc +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -/* - +-----------------------------------------------------------------------+ - | localization/ru_RU/labels.inc | - | | - | Language file of the Roundcube Webmail client | - | Copyright (C) 2012, The Roundcube Dev Team | - | Licensed under the GNU General Public License | - | | - +-----------------------------------------------------------------------+ - | Author: Thomas <Unknown> | - +-----------------------------------------------------------------------+ - @version $Id$ -*/ - -$labels = array(); -$labels['buttontitle'] = 'Переместить в "СПАМ'; -$labels['reportedasjunk'] = 'Перемещено в "СПАМ'; - diff --git a/plugins/markasjunk/localization/sk_SK.inc b/plugins/markasjunk/localization/sk_SK.inc deleted file mode 100644 index b56ac46af..000000000 --- a/plugins/markasjunk/localization/sk_SK.inc +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -/** - * Slovak translation for Roundcube markasjunk plugin - * - * @version 1.0 (2010-10-18) - * @author panda <admin@whistler.sk> - * - */ - -$labels = array(); -$labels['buttontitle'] = 'Označiť ako Spam'; -$labels['reportedasjunk'] = 'Úspešne nahlásené ako Spam'; - -?> diff --git a/plugins/markasjunk/localization/sv_SE.inc b/plugins/markasjunk/localization/sv_SE.inc deleted file mode 100644 index f4c5959b9..000000000 --- a/plugins/markasjunk/localization/sv_SE.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = 'Märk som skräp'; -$labels['reportedasjunk'] = 'Framgångsrikt rapporterat som skräp'; - -?>
\ No newline at end of file diff --git a/plugins/markasjunk/localization/zh_TW.inc b/plugins/markasjunk/localization/zh_TW.inc deleted file mode 100644 index 7b0b22162..000000000 --- a/plugins/markasjunk/localization/zh_TW.inc +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$labels = array(); -$labels['buttontitle'] = '標示為垃圾信'; -$labels['reportedasjunk'] = '成功回報垃圾信'; - -?> diff --git a/plugins/markasjunk/markasjunk.js b/plugins/markasjunk/markasjunk.js deleted file mode 100644 index 0e30fb8f2..000000000 --- a/plugins/markasjunk/markasjunk.js +++ /dev/null @@ -1,28 +0,0 @@ -/* Mark-as-Junk plugin script */ - -function rcmail_markasjunk(prop) -{ - if (!rcmail.env.uid && (!rcmail.message_list || !rcmail.message_list.get_selection().length)) - return; - - var uids = rcmail.env.uid ? rcmail.env.uid : rcmail.message_list.get_selection().join(','), - lock = rcmail.set_busy(true, 'loading'); - - rcmail.http_post('plugin.markasjunk', '_uid='+uids+'&_mbox='+urlencode(rcmail.env.mailbox), lock); -} - -// callback for app-onload event -if (window.rcmail) { - rcmail.addEventListener('init', function(evt) { - - // register command (directly enable in message view mode) - rcmail.register_command('plugin.markasjunk', rcmail_markasjunk, rcmail.env.uid); - - // add event-listener to message list - if (rcmail.message_list) - rcmail.message_list.addEventListener('select', function(list){ - rcmail.enable_command('plugin.markasjunk', list.get_selection().length > 0); - }); - }) -} - diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php deleted file mode 100644 index 4db90c1bc..000000000 --- a/plugins/markasjunk/markasjunk.php +++ /dev/null @@ -1,63 +0,0 @@ -<?php - -/** - * Mark as Junk - * - * Sample plugin that adds a new button to the mailbox toolbar - * to mark the selected messages as Junk and move them to the Junk folder - * - * @version @package_version@ - * @license GNU GPLv3+ - * @author Thomas Bruederli - */ -class markasjunk extends rcube_plugin -{ - public $task = 'mail'; - - function init() - { - $rcmail = rcmail::get_instance(); - - $this->register_action('plugin.markasjunk', array($this, 'request_action')); - - if ($rcmail->action == '' || $rcmail->action == 'show') { - $skin_path = $this->local_skin_path(); - $this->include_script('markasjunk.js'); - if (is_file($this->home . "/$skin_path/markasjunk.css")) - $this->include_stylesheet("$skin_path/markasjunk.css"); - $this->add_texts('localization', true); - - $this->add_button(array( - 'type' => 'link', - 'label' => 'buttontext', - 'command' => 'plugin.markasjunk', - 'class' => 'button buttonPas junk disabled', - 'classact' => 'button junk', - 'title' => 'buttontitle', - 'domain' => 'markasjunk'), 'toolbar'); - } - } - - function request_action() - { - $this->add_texts('localization'); - - $GLOBALS['IMAP_FLAGS']['JUNK'] = 'Junk'; - $GLOBALS['IMAP_FLAGS']['NONJUNK'] = 'NonJunk'; - - $uids = get_input_value('_uid', RCUBE_INPUT_POST); - $mbox = get_input_value('_mbox', RCUBE_INPUT_POST); - - $rcmail = rcmail::get_instance(); - $rcmail->storage->unset_flag($uids, 'NONJUNK'); - $rcmail->storage->set_flag($uids, 'JUNK'); - - if (($junk_mbox = $rcmail->config->get('junk_mbox')) && $mbox != $junk_mbox) { - $rcmail->output->command('move_messages', $junk_mbox); - } - - $rcmail->output->command('display_message', $this->gettext('reportedasjunk'), 'confirmation'); - $rcmail->output->send(); - } - -} diff --git a/plugins/markasjunk/package.xml b/plugins/markasjunk/package.xml deleted file mode 100644 index 95690eb9b..000000000 --- a/plugins/markasjunk/package.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.9.0" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 - http://pear.php.net/dtd/tasks-1.0.xsd - http://pear.php.net/dtd/package-2.0 - http://pear.php.net/dtd/package-2.0.xsd"> - <name>markasjunk</name> - <channel>pear.roundcube.net</channel> - <summary>Mark messages as Junk</summary> - <description>Adds a new button to the mailbox toolbar to mark the selected messages as Junk and move them to the configured Junk folder.</description> - <lead> - <name>Thomas Bruederli</name> - <user>thomasb</user> - <email>roundcube@gmail.com</email> - <active>yes</active> - </lead> - <date>2010-03-29</date> - <time>13:20:00</time> - <version> - <release>1.1</release> - <api>1.1</api> - </version> - <stability> - <release>stable</release> - <api>stable</api> - </stability> - <license uri="http://www.gnu.org/licenses/gpl.html">GNU GPLv3+</license> - <notes>-</notes> - <contents> - <dir baseinstalldir="/" name="/"> - <file name="markasjunk.php" role="php"> - <tasks:replace from="@name@" to="name" type="package-info"/> - <tasks:replace from="@package_version@" to="version" type="package-info"/> - </file> - <file name="markasjunk.js" role="data"> - <tasks:replace from="@name@" to="name" type="package-info"/> - <tasks:replace from="@package_version@" to="version" type="package-info"/> - </file> - <file name="localization/cs_CZ.inc" role="data"></file> - <file name="localization/da_DK.inc" role="data"></file> - <file name="localization/de_DE.inc" role="data"></file> - <file name="localization/en_US.inc" role="data"></file> - <file name="localization/es_AR.inc" role="data"></file> - <file name="localization/es_ES.inc" role="data"></file> - <file name="localization/et_EE.inc" role="data"></file> - <file name="localization/gl_ES.inc" role="data"></file> - <file name="localization/it_IT.inc" role="data"></file> - <file name="localization/ja_JP.inc" role="data"></file> - <file name="localization/pl_PL.inc" role="data"></file> - <file name="localization/ru_RU.inc" role="data"></file> - <file name="localization/sk_SK.inc" role="data"></file> - <file name="localization/sv_SE.inc" role="data"></file> - <file name="localization/zh_TW.inc" role="data"></file> - <file name="skins/default/junk_act.png" role="data"></file> - <file name="skins/default/junk_pas.png" role="data"></file> - </dir> - <!-- / --> - </contents> - <dependencies> - <required> - <php> - <min>5.2.1</min> - </php> - <pearinstaller> - <min>1.7.0</min> - </pearinstaller> - </required> - </dependencies> - <phprelease/> -</package> diff --git a/plugins/markasjunk/skins/default/junk_act.png b/plugins/markasjunk/skins/default/junk_act.png Binary files differdeleted file mode 100644 index b5a84f604..000000000 --- a/plugins/markasjunk/skins/default/junk_act.png +++ /dev/null diff --git a/plugins/markasjunk/skins/default/junk_pas.png b/plugins/markasjunk/skins/default/junk_pas.png Binary files differdeleted file mode 100644 index b88a561a4..000000000 --- a/plugins/markasjunk/skins/default/junk_pas.png +++ /dev/null diff --git a/plugins/markasjunk/skins/default/markasjunk.css b/plugins/markasjunk/skins/default/markasjunk.css deleted file mode 100644 index 89ea568f4..000000000 --- a/plugins/markasjunk/skins/default/markasjunk.css +++ /dev/null @@ -1,6 +0,0 @@ - -#messagetoolbar a.button.junk { - text-indent: -1000px; - background: url(junk_act.png) 0 0 no-repeat; -} - |
