  		env_put(t_strconcat("TRUSTED_NETWORKS=",
  				    set->login_trusted_networks, NULL));
 diff --git a/src/master/mail-process.c b/src/master/mail-process.c
-index 5cde8f0..fb66809 100644
+index 5cde8f0..6307e61 100644
 --- a/src/master/mail-process.c
 +++ b/src/master/mail-process.c
 @@ -373,6 +373,15 @@ mail_process_set_environment(struct settings *set, const char *mail,

+		env_put(t_strconcat("MANAGESIEVE_LOGOUT_FORMAT=",
+				    set->managesieve_logout_format, NULL));
+		env_put(t_strconcat("MANAGESIEVE_IMPLEMENTATION_STRING=",
+        		    set->managesieve_implementation_string, NULL));
+	}
+
 	if (set->mail_save_crlf)

 src/master/master-settings-defs.c |    5 ++
 src/master/master-settings.c      |  113 +++++++++++++++++++++++++++++++++----
 src/master/master-settings.h      |   16 ++++-
 11 files changed, 274 insertions(+), 23 deletions(-)
 create mode 100644 README.managesieve

diff --git a/README.managesieve b/README.managesieve
new file mode 100644
index 0000000..d30289c
--- /dev/null
+++ b/README.managesieve
@@ -0,0 +1,28 @@
+
+MANAGESIEVE service support patch for Dovecot 1.2
+
