Skip to content

Commit f60d97f

Browse files
committed
enable managesieve daemon if installed (#3395)
1 parent cda1d3b commit f60d97f

File tree

6 files changed

+28
-2
lines changed

6 files changed

+28
-2
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function configure_dovecot()
138138
}
139139
//remove #2.3+ comment
140140
$content = file_get_contents($config_dir.'/'.$configfile);
141-
$content = str_replace('#2.3+','',$content);
141+
$content = str_replace('#2.3+ ','',$content);
142142
file_put_contents($config_dir.'/'.$configfile,$content);
143143
unset($content);
144144

@@ -155,6 +155,15 @@ public function configure_dovecot()
155155
}
156156
}
157157

158+
//* dovecot-managesieved
159+
if($configure_managesieve = is_file('/usr/lib/dovecot/managesieve')) {
160+
//remove #mangesieve+ comment
161+
$content = file_get_contents($config_dir.'/'.$configfile);
162+
$content = str_replace('#mangesieve+ ','',$content);
163+
file_put_contents($config_dir.'/'.$configfile,$content);
164+
unset($content);
165+
}
166+
158167
//* dovecot-lmtpd
159168
if($configure_lmtp) {
160169
replaceLine($config_dir.'/'.$configfile, 'protocols = imap pop3', 'protocols = imap pop3 lmtp', 1, 0);

install/lib/installer_base.lib.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ public function configure_dovecot() {
13471347
}
13481348
//remove #2.3+ comment
13491349
$content = file_get_contents($config_dir.'/'.$configfile);
1350-
$content = str_replace('#2.3+','',$content);
1350+
$content = str_replace('#2.3+ ','',$content);
13511351
file_put_contents($config_dir.'/'.$configfile,$content);
13521352
unset($content);
13531353

@@ -1358,6 +1358,15 @@ public function configure_dovecot() {
13581358
}
13591359
}
13601360

1361+
//* dovecot-managesieved
1362+
if($configure_managesieve = is_file('/usr/lib/dovecot/managesieve')) {
1363+
//remove #mangesieve+ comment
1364+
$content = file_get_contents($config_dir.'/'.$configfile);
1365+
$content = str_replace('#mangesieve+ ','',$content);
1366+
file_put_contents($config_dir.'/'.$configfile,$content);
1367+
unset($content);
1368+
}
1369+
13611370
//* dovecot-lmtpd
13621371
if($configure_lmtp) {
13631372
replaceLine($config_dir.'/'.$configfile, 'protocols = imap pop3', 'protocols = imap pop3 lmtp', 1, 0);

install/tpl/debian6_dovecot2.conf.master

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,5 @@ namespace inbox {
119119
special_use = \Trash
120120
}
121121
}
122+
123+
#managesieve+ protocols = $protocols sieve

install/tpl/debian_dovecot2.conf.master

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@ plugin {
9696
quota_status_nouser = DUNNO
9797
quota_status_overquota = "552 5.2.2 Mailbox is full"
9898
}
99+
100+
#managesieve+ protocols = $protocols sieve

install/tpl/fedora_dovecot2.conf.master

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,5 @@ namespace inbox {
114114
special_use = \Trash
115115
}
116116
}
117+
118+
#managesieve+ protocols = $protocols sieve

install/tpl/opensuse_dovecot2.conf.master

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,5 @@ namespace inbox {
113113
special_use = \Trash
114114
}
115115
}
116+
117+
#managesieve+ protocols = $protocols sieve

0 commit comments

Comments
 (0)