Quellcode durchsuchen

fixes "Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead"

brandon vor 10 Jahren
Ursprung
Commit
7c9084fcba

+ 26
- 0
roles/mailserver/files/etc_dovecot_conf.d_10-mail.conf Datei anzeigen

@@ -75,6 +75,32 @@ namespace inbox {
75 75
   # Namespace handles its own subscriptions. If set to "no", the parent
76 76
   # namespace handles them (empty prefix should always have this as "yes")
77 77
   #subscriptions = yes
78
+
79
+  # http://wiki2.dovecot.org/MailboxSettings
80
+  mailbox Drafts {
81
+    auto = subscribe
82
+    special_use = \Drafts
83
+  }
84
+
85
+  mailbox Sent {
86
+    auto = subscribe
87
+    special_use = \Sent
88
+  }
89
+
90
+  mailbox Junk {
91
+    auto = subscribe
92
+    special_use = \Junk
93
+  }
94
+
95
+  mailbox Trash {
96
+    auto = subscribe
97
+    special_use = \Trash
98
+  }
99
+
100
+  mailbox Archive {
101
+    auto = subscribe
102
+    special_use = \Archive
103
+  }
78 104
 }
79 105
 
80 106
 # Example shared namespace configuration

+ 1
- 1
roles/mailserver/files/etc_dovecot_conf.d_20-imap.conf Datei anzeigen

@@ -13,7 +13,7 @@ protocol imap {
13 13
   #mail_max_userip_connections = 10
14 14
 
15 15
   # Space separated list of plugins to load (default is global mail_plugins).
16
-  mail_plugins = $mail_plugins antispam fts fts_solr autocreate
16
+  mail_plugins = $mail_plugins antispam fts fts_solr
17 17
 
18 18
   # IMAP logout format string:
19 19
   #  %i - total number of bytes read from client

+ 0
- 12
roles/mailserver/files/etc_dovecot_conf.d_90-plugin.conf Datei anzeigen

@@ -23,16 +23,4 @@ plugin {
23 23
   # FTS (full text search with Solr)
24 24
   fts = solr
25 25
   fts_solr = break-imap-search url=http://localhost:8080/solr/
26
-  
27
-  # Autocreate (specify mailboxes that must always exist for all users)
28
-  autocreate = Drafts
29
-  autocreate2 = Sent
30
-  autocreate3 = Junk
31
-  autocreate4 = Trash
32
-  autocreate5 = Archive
33
-  autosubscribe = Drafts
34
-  autosubscribe2 = Sent
35
-  autosubscribe3 = Junk
36
-  autosubscribe4 = Trash
37
-  autosubscribe5 = Archive
38 26
 }

Laden…
Abbrechen
Speichern