diff --git a/server/plugins-available/getmail_plugin.inc.php b/server/plugins-available/getmail_plugin.inc.php
index c3f4f7e1dcd48f210bcf935398f9960cb28fe80f..c06638db32943b574d835af0f47a92e8332820c6 100644
--- a/server/plugins-available/getmail_plugin.inc.php
+++ b/server/plugins-available/getmail_plugin.inc.php
@@ -76,7 +76,7 @@ class getmail_plugin {
 
 	function update($event_name, $data) {
 		global $app, $conf;
-		
+
 		// Do not write getmail config files on mirror servers to avoid double fetching of emails.
 		if($conf['mirror_server_id'] > 0) return true;
 
@@ -116,7 +116,7 @@ class getmail_plugin {
 					$tpl = str_replace('{DELETE}', 'false', $tpl);
 				}
 
-				if($data["new"]["read_all"] == 'y') {
+				if($data["new"]["source_read_all"] == 'y') {
 					$tpl = str_replace('{READ_ALL}', 'true', $tpl);
 				} else {
 					$tpl = str_replace('{READ_ALL}', 'false', $tpl);