From 39f93b270003014c19f7aaba0ecaf156fbb66f3a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 03 Apr 2015 14:29:07 -0400
Subject: [PATCH] Enigma: added composer.json file

---
 plugins/enigma/enigma.php |    2 +-
 plugins/enigma/README     |   20 ++++++++++++++------
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/plugins/enigma/README b/plugins/enigma/README
index 25a1607..f8368a8 100644
--- a/plugins/enigma/README
+++ b/plugins/enigma/README
@@ -1,10 +1,19 @@
-------------------------------------------------------------------
-THIS IS NOT EVEN AN "ALPHA" STATE. USE ONLY FOR DEVELOPMENT!!!!!!!
-------------------------------------------------------------------
+---------------------------------------------------------------------------
+This plugin adds support for viewing and sending of signed and/or encrypted
+messages in PGP (RFC 2440) and PGP/MIME (RFC 3156) format.
+
+The plugin uses gpg binary on the server and stores all keys
+(including private keys of the users) on the server.
+Encryption/decryption is done server-side. So, this plugin
+is for users that trust the server.
+
+WARNING! The plugin is in very early state. See below for a list
+of missing features and known bugs/limitations.
+---------------------------------------------------------------------------
 
 WARNING: Don't use with gnupg-2.x!
 
-Plugin Status:
+Implemented features:
 
 + PGP: signatures verification
 + PGP: messages decryption
@@ -20,10 +29,8 @@
 - Disable Reply/Forward options when viewing encrypted messages
   until they are decrypted successfully
 - Handling of replying/forwarding of encrypted/signed messages
-- Add composer.json file
 - Performance improvements:
    - cache decrypted message key id so we can skip decryption if we have no password in session
-   - cache (last or successful only?) sig verification status to not verify on every msg preview (optional)
 
 TODO (later):
 
@@ -45,6 +52,7 @@
 - Change attachment icon on messages list for encrypted messages (like vcard_attachment plugin does)
 - Support for multi-server installations (store keys in sql database?)
 - Per-Identity settings (including keys/certs)
+- Cache (last or successful only?) sig verification status to not verify on every msg preview (optional)
 
 - S/MIME: Certs generation
 - S/MIME: Certs management
diff --git a/plugins/enigma/enigma.php b/plugins/enigma/enigma.php
index 0c73290..10b8048 100644
--- a/plugins/enigma/enigma.php
+++ b/plugins/enigma/enigma.php
@@ -24,6 +24,7 @@
     public $task = 'mail|settings';
     public $rc;
     public $engine;
+    public $ui;
 
     private $env_loaded  = false;
 
@@ -68,7 +69,6 @@
             $this->add_hook('preferences_save', array($this, 'preferences_save'));
 
             // register handler for keys/certs management
-//            $this->register_action('plugin.enigma', array($this, 'preferences_ui'));
             $this->register_action('plugin.enigmakeys', array($this, 'preferences_ui'));
 //            $this->register_action('plugin.enigmacerts', array($this, 'preferences_ui'));
 

--
Gitblit v1.9.1