Skip to content

Commit 6deeac8

Browse files
committed
Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead
1 parent 79c3260 commit 6deeac8

File tree

2 files changed

+40
-28
lines changed

2 files changed

+40
-28
lines changed

install/rhel/6/dovecot/conf.d/20-imap.conf

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@
33
##
44

55
protocol imap {
6-
mail_plugins = $mail_plugins autocreate
7-
}
6+
namespace inbox {
7+
inbox = yes
88

9-
plugin {
10-
autocreate = Trash
11-
autocreate2 = Spam
12-
autocreate3 = Sent
13-
autocreate4 = Drafts
14-
#autocreate5 = Custom
15-
autosubscribe = Trash
16-
autosubscribe2 = Spam
17-
autosubscribe3 = Sent
18-
autosubscribe4 = Drafts
19-
#autosubscribe5 = Custom
20-
}
9+
mailbox Trash {
10+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
11+
special_use = \Trash
12+
}
13+
mailbox Sent {
14+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
15+
special_use = \Sent
16+
}
17+
mailbox Spam {
18+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
19+
special_use = \Junk
20+
}
21+
mailbox Drafts {
22+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
23+
special_use = \Drafts
24+
}
25+
}
26+
}

install/rhel/7/dovecot/conf.d/20-imap.conf

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@
33
##
44

55
protocol imap {
6-
mail_plugins = $mail_plugins autocreate
7-
}
6+
namespace inbox {
7+
inbox = yes
88

9-
plugin {
10-
autocreate = Trash
11-
autocreate2 = Spam
12-
autocreate3 = Sent
13-
autocreate4 = Drafts
14-
#autocreate5 = Custom
15-
autosubscribe = Trash
16-
autosubscribe2 = Spam
17-
autosubscribe3 = Sent
18-
autosubscribe4 = Drafts
19-
#autosubscribe5 = Custom
20-
}
9+
mailbox Trash {
10+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
11+
special_use = \Trash
12+
}
13+
mailbox Sent {
14+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
15+
special_use = \Sent
16+
}
17+
mailbox Spam {
18+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
19+
special_use = \Junk
20+
}
21+
mailbox Drafts {
22+
auto = subscribe #Autocreate/subscribe mailbox? no, create or subscribe values
23+
special_use = \Drafts
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)