From ce3105c58f921f33654c738fa7460d3d107813ce Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 24 Mar 2016 12:07:31 -0400
Subject: [PATCH] Reply/Reply-All/Forward/Change-format buttons for message/rfc822 preview

---
 program/js/app.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 8fe638c..00028f7 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -339,8 +339,14 @@
           // init message compose form
           this.init_messageform();
         }
-        else if (this.env.action == 'get')
+        else if (this.env.action == 'get') {
           this.enable_command('download', 'print', true);
+          if (this.env.mimetype == 'message/rfc822') {
+            this.enable_command('reply', 'reply-all', 'forward', 'forward-inline', 'forward-attachment', true);
+            if (this.env.list_post)
+              this.enable_command('reply-list', true);
+          }
+        }
         // show printing dialog
         else if (this.env.action == 'print' && this.env.uid
           && !this.env.is_pgp_content && !this.env.pgp_mime_part

--
Gitblit v1.9.1