<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 03/18/2016 05:48 AM, Merlin Hartley via Info-cyrus wrote:<br>
<blockquote
cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
...</blockquote>
<blockquote
cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"
type="cite">Of course, over-time more complexity is always
required and I have recently implemented a few shared mailboxes
(rather than just sharing user mailboxes).
<div class="">Inevitably, the users are now asking for an
auto-reply to be configured for some of these shared mailboxes…</div>
<div class=""><br class="">
</div>
<div class="">We are already using sieve scripts (managed with
Roundcubemail talking through the firewall to timsieved) so it
seems natural to use this technology here too...</div>
<div class=""><br class="">
</div>
<div class="">I have followed the instructions on this page:</div>
<div class=""><a moz-do-not-send="true"
href="https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts"
class="">https://cyrusimap.org/imap/admin/sieve.html?highlight=sieve#managing-sieve-scripts</a></div>
<div class=""><br class="">
</div>
<div class="">But the last step doesn’t seem to do anything…</div>
<div class=""><br class="">
</div>
<div class="">So I have a few related questions:</div>
<div class=""><br class="">
</div>
<div class="">1) how can I query a mailbox to read the flags set
by mboxconfig?</div>
</blockquote>
<br>
Use the 'info' command in cyradm, like so:<br>
<blockquote>
<pre>root@mail:~# /usr/lib/cyrus/bin/cyradm -U cyrus localhost
Password:
localhost> info tech.support
{tech.support}:
duplicatedeliver: false
lastpop:
lastupdate: 6-Apr-2016 04:01:01 -0500
partition: default
pop3newuidl: true
sharedseen: false
<b> sieve: global</b>
size: 801640500
localhost> quit
</pre>
</blockquote>
Note the "sieve: global" line.<br>
<br>
<blockquote
cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"
type="cite">
<div class="">2) has anyone got sieve working with shared
mailboxes?</div>
</blockquote>
<br>
Yes, happily and consistently, currently with 2.4.10, and up, on
various installations.<br>
<br>
<blockquote
cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"
type="cite">
<div class="">3) is it possible to invoke a sieveshell in the
context of a shared mailbox?</div>
</blockquote>
<br>
"...context of a shared mailbox..." doesn't really mean anything
here. You must do it as a user who has access to the shared
mailbox, as the page on the website explains.<br>
<br>
<blockquote
cite="mid:CC0CAD0F-8365-437E-AD84-5AAC1CEDBE2A@mrc-mbu.cam.ac.uk"
type="cite">
<div class="">I seem to have successfully created the global
scripts (a ‘global’ folder has appeared in the sievedir) - just
can’t seem to attach it to a shared mailbox.</div>
</blockquote>
<br>
Take a look at the output of the 'info' command in cyradm, and if it
doesn't make sense, please post again.<br>
<br>
In my experience, the most common cause of problems with sieve and
shared mailboxes is bad scripts.<br>
<br>
Cheers,<br>
-nic<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
</pre>
</body>
</html>