<div dir="ltr">You can use the "mailbox" extension, and add :create to that rule.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 17, 2019 at 1:38 PM Marek Kozlowski via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">:-)<br>
<br>
I've just added pigeonhole and a simple sieve script:<br>
-------------------------------------------------<br>
require "fileinto";<br>
if header :contains "X-Spam-Flag" "YES" {<br>
fileinto "Spam";<br>
}<br>
-------------------------------------------------<br>
<br>
If a user has this folder (`Spam') it works fine. If they haven't it <br>
results in an error.<br>
<br>
1. Can I modify the script to create this folder if the need arise?<br>
2. If not - what's the most recommended way of adding this folder for <br>
all users (~1000)?<br>
<br>
Thanks!<br>
Best regards,<br>
Marek<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Larry Rosenman <a href="http://www.lerctr.org/~ler" target="_blank">http://www.lerctr.org/~ler</a><br><span>Phone: <span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">+1 214-642-9640</span></span></span> (c) E-Mail: </span><a href="mailto:larryrtx@gmail.com" target="_blank">larryrtx@gmail.com</a><br>US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106</div></div></div></div></div></div></div></div>