From e0dc711c2b2dc4e2ec397d7f53910f11e1ca4ade Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Mon, 02 Sep 2013 04:14:56 -0400
Subject: [PATCH] - Changed previous commit to check for read permissions only on download action

---
 server/plugins-available/getmail_plugin.inc.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/plugins-available/getmail_plugin.inc.php b/server/plugins-available/getmail_plugin.inc.php
index 759c219..eb2da0e 100644
--- a/server/plugins-available/getmail_plugin.inc.php
+++ b/server/plugins-available/getmail_plugin.inc.php
@@ -104,15 +104,15 @@
 			
 				// Shall emails be deleted after retrieval
 				if($data["new"]["source_delete"] == 'y') {
-					$tpl = str_replace('{DELETE}','1',$tpl);
+					$tpl = str_replace('{DELETE}','true',$tpl);
 				} else {
-					$tpl = str_replace('{DELETE}','0',$tpl);
+					$tpl = str_replace('{DELETE}','false',$tpl);
 				}
 
 				if($data["new"]["read_all"] == 'y') {
-					$tpl = str_replace('{READ_ALL}', '1', $tpl);
+					$tpl = str_replace('{READ_ALL}', 'true', $tpl);
 				} else {
-					$tpl = str_replace('{READ_ALL}', '0', $tpl);
+					$tpl = str_replace('{READ_ALL}', 'false', $tpl);
 				}
 				
 				// Set the data retriever

--
Gitblit v1.9.1