@@ -32,27 +32,33 @@ Then, you'll have to create a [[link,namespaces,namespace]] for the virtual
32
32
mailboxes, for example:
33
33
34
34
``` [dovecot.conf]
35
- namespace {
35
+ namespace virtual {
36
36
prefix = virtual/
37
37
separator = /
38
38
mail_driver = virtual
39
39
mail_path = ~/Maildir/virtual
40
+
41
+ mailbox All {
42
+ auto = no
43
+ special_use = \All
44
+ }
45
+ [...]
40
46
}
41
47
```
42
48
43
49
After this you can create virtual mailboxes under ` ~/Maildir/virtual ` . By
44
50
default it uses the ` fs ` layout, so you can create directories such as:
45
51
46
- * INBOX : ` ~/Maildir/virtual/INBOX / `
52
+ * All : ` ~/Maildir/virtual/All / `
47
53
* Sub/mailbox: ` ~/Maildir/virtual/Sub/mailbox/ `
48
54
49
55
If you prefer to use the Maildir++ layout instead, set
50
56
[[ setting,mailbox_list_layout,maildir++]] .
51
57
52
58
### Virtual Mailboxes
53
59
54
- For each virtual directory you need to create a ` dovecot-virtual ` file. Its
55
- syntax is like:
60
+ For each directory ( virtual mailbox) you need to create a ` dovecot-virtual ` file.
61
+ Its syntax is like:
56
62
57
63
```
58
64
<1+ mailbox patterns>
@@ -71,14 +77,16 @@ aren't noticed.
71
77
prefix. For example if you have namespaces with an empty prefix and a prefix
72
78
` mail/ ` :
73
79
74
- * ` * ` matches only mailboxes from the namespace with empty prefix
75
- * ` mail* ` matches mailboxes beginning with name ` mail ` from the namespace
76
- with empty prefix
77
- * ` mail/* ` matches only mailboxes from the ` mail/ ` namespace
80
+ * ` * ` only matches mailboxes from the namespace with an empty prefix.
81
+ * ` mail* ` matches mailboxes that begin with ` mail ` from the namespace with
82
+ an empty prefix.
83
+ * ` mail/* ` only matches mailboxes from the ` mail/ ` namespace.
78
84
79
- Beware that ` * ` will not match any mailbox which already has a more
85
+ Beware that ` * ` will not match any mailbox that already has a more
80
86
specialized match!
81
87
88
+ Currently, ` * ` doesn't match INBOX.
89
+
82
90
The mailbox names have special prefixes:
83
91
84
92
* ` - ` : Don't include this mailbox.
@@ -131,14 +139,22 @@ Virtual/All folder was configured with INBOX as the save destination, this
131
139
Virtual/All folder:
132
140
133
141
``` [sieve.before]
134
- imapsieve_mailbox_name = INBOX # Virtual/All would NOT work
135
- imapsieve_mailbox_causes = COPY
136
- imapsieve_mailbox_before = /etc/dovecot/sieve.before
142
+ mailbox INBOX { # Virtual/All would NOT work
143
+ sieve_script before-copy {
144
+ type = before
145
+ cause = copy
146
+ path = /etc/dovecot/sieve.before
147
+ }
148
+ }
137
149
```
138
150
139
- Also, the ` imap.mailbox ` environment always contains INBOX, even when
151
+ Also, the ` imap.mailbox ` Sieve ` environment ` variable always contains INBOX, even when
140
152
saving via Virtual/All folder.
141
153
154
+ ::: warning
155
+ Currently, imapsieve scripts that are defined within a virtual mailbox are not being called.
156
+ :::
157
+
142
158
## Mailbox Selection Based on METADATA
143
159
144
160
Instead of a mailbox name, you can specify a metadata filter:
0 commit comments