summaryrefslogtreecommitdiff
path: root/plugins/markasjunk
diff options
context:
space:
mode:
authortill <till@php.net>2010-03-20 14:20:01 +0000
committertill <till@php.net>2010-03-20 14:20:01 +0000
commit63a3dc5fde5a3ceed4f03c19c5015aab19050bee (patch)
tree50aafccdad5fe36c59f10d194298c35f046afd2f /plugins/markasjunk
parent0f8ff20ae2e8c949d58b9ca02bda95e388f7d142 (diff)
moved plugins
Diffstat (limited to 'plugins/markasjunk')
-rw-r--r--plugins/markasjunk/localization/cs_CZ.inc24
-rw-r--r--plugins/markasjunk/localization/en_US.inc7
-rw-r--r--plugins/markasjunk/localization/et_EE.inc7
-rw-r--r--plugins/markasjunk/localization/pl_PL.inc7
-rw-r--r--plugins/markasjunk/localization/ru_RU.inc7
-rw-r--r--plugins/markasjunk/localization/sv_SE.inc7
-rw-r--r--plugins/markasjunk/markasjunk.js28
-rw-r--r--plugins/markasjunk/markasjunk.php56
-rw-r--r--plugins/markasjunk/skins/default/junk_act.pngbin1995 -> 0 bytes
-rw-r--r--plugins/markasjunk/skins/default/junk_pas.pngbin1988 -> 0 bytes
10 files changed, 0 insertions, 143 deletions
diff --git a/plugins/markasjunk/localization/cs_CZ.inc b/plugins/markasjunk/localization/cs_CZ.inc
deleted file mode 100644
index 06ab2e93f..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, RoundCube Dev. - Switzerland |
-| 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/en_US.inc b/plugins/markasjunk/localization/en_US.inc
deleted file mode 100644
index 6f63e161a..000000000
--- a/plugins/markasjunk/localization/en_US.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['buttontitle'] = 'Mark as Junk';
-$labels['reportedasjunk'] = 'Successfully reported as Junk';
-
-?> \ No newline at end of file
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/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 32d00c2df..000000000
--- a/plugins/markasjunk/localization/ru_RU.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$labels = array();
-$labels['buttontitle'] = 'Переместить в "СПАМ"';
-$labels['reportedasjunk'] = 'Перемещено в "СПАМ"';
-
-?>
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/markasjunk.js b/plugins/markasjunk/markasjunk.js
deleted file mode 100644
index 8b02d7438..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(',');
-
- rcmail.set_busy(true, 'loading');
- rcmail.http_post('plugin.markasjunk', '_uid='+uids+'&_mbox='+urlencode(rcmail.env.mailbox), true);
-}
-
-// 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 046645872..000000000
--- a/plugins/markasjunk/markasjunk.php
+++ /dev/null
@@ -1,56 +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 1.0
- * @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');
- $this->add_texts('localization', true);
- $this->add_button(array(
- 'command' => 'plugin.markasjunk',
- 'imagepas' => $skin_path.'/junk_pas.png',
- 'imageact' => $skin_path.'/junk_act.png',
- 'title' => 'markasjunk.buttontitle'), '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->imap->unset_flag($uids, 'NONJUNK');
- $rcmail->imap->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/skins/default/junk_act.png b/plugins/markasjunk/skins/default/junk_act.png
deleted file mode 100644
index b5a84f604..000000000
--- a/plugins/markasjunk/skins/default/junk_act.png
+++ /dev/null
Binary files differ
diff --git a/plugins/markasjunk/skins/default/junk_pas.png b/plugins/markasjunk/skins/default/junk_pas.png
deleted file mode 100644
index b88a561a4..000000000
--- a/plugins/markasjunk/skins/default/junk_pas.png
+++ /dev/null
Binary files differ