<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,<br>
</p>
<p>I think I have run into an issue which has been posted to this
list in 2018 already:<br>
<br>
<blockquote type="cite">
<pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Hello Rob,
Do you by chance have a virtual/All folder which holds all your
messages? If so, could I see that configuration?
Thanks.
Dave.
On 2/27/18, Rob Hoelz <<a href="https://dovecot.org/mailman/listinfo/dovecot">rob+dovecot at hoelz.ro</a>> wrote:
><i> Hi list,
</i>><i>
</i>><i> I just encountered a problem while using dovecot's Virtual plugin with
</i>><i> 2.3.0. I managed to solve the issue,
</i>><i> but I wanted to bring it to the attention of others on the list to see if
</i>><i> there exists a better solution, if
</i>><i> I found a bug, or if it's just a matter of updating documentation.
</i>><i>
</i>><i> I have a virtual folder to get the most recent two weeks of mails; it looks
</i>><i> something like this:
</i>><i>
</i>>><i> INBOX
</i>>><i> all younger 1209600
</i>><i>
</i>><i> I made this folder back in October. Lately, I started to notice that the
</i>><i> virtual folder had a surprising amount
</i>><i> of mail in it - I don't get 1,000 e-mails per week! After some doveadm
</i>><i> commands, I realized that e-mails from
</i>><i> October were still present in my virtual folder! Updating the
</i>><i> dovecot-virtual would clear away e-mails older than
</i>><i> two weeks (I needed to actually introduce a change, even if it was just
</i>><i> whitespace - just touching the file didn't
</i>><i> update things), and removing the dovecot index file also cleared things
</i>><i> away. In then end, I ended up just telling
</i>><i> dovecot to disable on-disk indexes for that folder.
</i>><i>
</i>><i> I created this folder based on the examples on
</i>><i> <a href="https://wiki.dovecot.org/Plugins/Virtual">https://wiki.dovecot.org/Plugins/Virtual</a> - I'm wondering if I found a bug
</i>><i> or if that page should be changed to recommend disabling on-disk indexes
</i>><i> when using certain search query filters such as
</i>><i> "younger". If the latter, I can always make the change - just let me know!
</i>><i>
</i>><i> -Rob
</i>>
</pre>
</blockquote>
</p>
<p>Unfortunately, that thread died, so I'm trying my luck now...<br>
<br>
I am trying to have mail from several shared mailboxes show up in
a user's INBOX<br>
if they are unread or younger than 24h, using the filter "<font
face="monospace">or (unseen) (all younger 86400)"</font>.<br>
This works when forcing dovecot to regenerate index files, as
mentioned above, by <br>
adding spaces to the virtual Inbox config file. Otherwise, mail
older than 24h is not<br>
removed from the virtual INBOX. Any help would be greatly
appreciated :)<br>
</p>
<p>namespace configuration:</p>
<p><font face="monospace">namespace lists {<br>
list = children<br>
location =
maildir:/var/mail/lists:CONTROL=~/Maildir/lists:INDEX=~/Maildir/lists<br>
prefix = lists.<br>
separator = .<br>
subscriptions = no<br>
type = public<br>
}<br>
namespace real {<br>
hidden = yes<br>
list = no<br>
location = <br>
prefix = RealMails.<br>
separator = .<br>
}<br>
namespace vimap {<br>
hidden = yes<br>
list = no<br>
location =
virtual:/var/mail/virtual/vimap:INDEX=~/Maildir/vimap<br>
prefix = vimap.<br>
separator = .<br>
}<br>
</font></p>
<p><br>
</p>
<p><font face="monospace">/var/mail/virtual/vimap:</font></p>
<p><font face="monospace">!RealMails<br>
all<br>
lists.*<br>
or (unseen) (all younger 86400) <br>
</font></p>
<p><font face="monospace"><br>
</font></p>
<p>dovecot version:<br>
# 2.3.4.1 (f79e8e7e4)<br>
# Pigeonhole version 0.5.4 ()<br>
# OS: Linux 4.19.0-14-amd64 x86_64 Debian 10.8 </p>
<p>-Joe<br>
<font face="monospace"></font></p>
</body>
</html>