<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>You can also use</div><div><br></div><div>namespace virtual {</div><div> location=virtual:/etc/dovecot/virtual:INDEX=~/virtual/:CONTROL=~/virtual/</div><div>....</div><div>}</div><div><br></div><div>so you put the folder definitions under /etc and per-user indexes end up under user home. </div><div id="composer_signature"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">---<div>Aki Tuomi</div><div>Dovecot oy</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: LuKreme <kremels@kreme.com> </div><div>Date: 01/03/2018  20:40  (GMT+02:00) </div><div>To: dovecot@dovecot.org </div><div>Subject: Virtual question </div><div><br></div></div><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><span></span></div><div>“<span style="background-color: rgba(255, 255, 255, 0);">For each virtual directory you need to create a <tt>dovecot-virtual</tt> file. Its syntax is like:</span>”</div><div><br></div><div>OK, where does this file get created?</div><div><br></div><div>Say I want the users to have a virtual mailbox that is messages received in the last month, does that file go into each user'
s Maildir path?</div><div><br></div><div>It sounds like I have to create a virtual folder for each user, then any folders inside that folders, and then the config files in each of the sub folders.</div><div><br></div><div><div><span style="background-color: rgba(255, 255, 255, 0);">user1/Maildir/virtual/month/dovecot-virtual</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">user1/Maildir/virtual/week/dovecot-virtual</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">user1/Maildir/virtual/flagged/dovecot-virtual</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">user1/Maildir/virtual/Amazon/dovecot-virtual</span></div></div><div><div><span style="background-color: rgba(255, 255, 255, 0);">user2/Maildir/virtual/month/dovecot-virtual</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">user2/Maildir/virtual/week/dovecot-virtual</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">user2/Maildir/virtual/flagged/dovecot-virtual</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">user2/Maildir/virtual/Amazon/dovecot-virtual</span></div></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Yes?</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">If so, is there anyway to have a "global”virtual that applies to all users (but not that unifies the mail between users or anything like that).</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Also, will virtual mailboxes show up automatically for the user in the folder list or will they have to specifically subscribe to them? (Assuming they use a client that allows subscribing instead of auto showing all mailboxes like iOS).</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><div>˜kremels/ $ cat Maildir/virtual/month/dovecot-vitual </div><div># ~/Maildir/virtual/month/dovecot-virtual</div><div>INBOX</div><div>work/*</div><div>  all younger 2678400</div></div></div><div><br></div>That should create a mailbox "month” in a folder named "virtual” that shows all the messages from the last 31d, yes? And I should be able to access that mailbox in a MUA like Roundcube or <spit>Thunderbird?<div><br><div id="AppleMailSignature">-- <div>My main job is trying to come up with new and innovative and effective ways to reject even more mail. I'm up to about 97% now.</div></div></div></body></html>