summaryrefslogtreecommitdiff
path: root/plugins/enigma/enigma.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-14 07:35:48 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-14 07:35:48 +0000
commitf3f1284d206c580e4aed4266567f019cde9abab7 (patch)
treef02de8fa2016761ff267fd1af480d5d29874bb17 /plugins/enigma/enigma.php
parent86ea4952cf85f2646fbe919b2c78d98a77438bd5 (diff)
- Fix set_busy() usage, add encryption menu in compose
git-svn-id: https://svn.roundcube.net/trunk@4087 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/enigma/enigma.php')
-rw-r--r--plugins/enigma/enigma.php21
1 files changed, 12 insertions, 9 deletions
diff --git a/plugins/enigma/enigma.php b/plugins/enigma/enigma.php
index ad4f65a0e..fb7c98635 100644
--- a/plugins/enigma/enigma.php
+++ b/plugins/enigma/enigma.php
@@ -52,16 +52,22 @@ class enigma extends rcube_plugin
$this->add_hook('message_part_structure', array($this, 'parse_structure'));
$this->add_hook('message_body_prefix', array($this, 'status_message'));
- // message sending hooks
- //$this->add_hook('outgoing_message_body', array($this, 'msg_encode'));
- //$this->add_hook('outgoing_message_body', array($this, 'msg_sign'));
-
+ // message displaying
if ($rcmail->action == 'show' || $rcmail->action == 'preview') {
$this->add_hook('message_load', array($this, 'message_load'));
$this->add_hook('template_object_messagebody', array($this, 'message_output'));
+ $this->register_action('plugin.enigmaimport', array($this, 'import_file'));
+ }
+ // message composing
+ else if ($rcmail->action == 'compose') {
+ $this->load_ui();
+ $this->ui->init($section);
+ }
+ // message sending (and draft storing)
+ else if ($rcmail->action == 'sendmail') {
+ //$this->add_hook('outgoing_message_body', array($this, 'msg_encode'));
+ //$this->add_hook('outgoing_message_body', array($this, 'msg_sign'));
}
-
- $this->register_action('plugin.enigmaimport', array($this, 'import_file'));
}
else if ($this->rc->task == 'settings') {
// add hooks for Enigma settings
@@ -78,9 +84,6 @@ class enigma extends rcube_plugin
$this->load_ui();
$this->ui->init($section);
}
-
- // include main js script
-// $this->include_script('enigma.js');
}
}