Well,<br><br>I'm thinking about another way to do that. Running as localhost of cyrus-imap and as cyrus user, I'm able to open seen skiplist database. Is there a Perl module to interact with?<br><br>Thanks<br><br>Dom<br>
<br><div class="gmail_quote">2009/5/11 Bron Gondwana <span dir="ltr"><<a href="mailto:brong@fastmail.fm">brong@fastmail.fm</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sun, May 10, 2009 at 08:44:27PM +0200, LALOT Dominique wrote:<br>
> Hello,<br>
><br>
> I would like to run scripts for deleting unread old mails. But using the<br>
> imap API, I can only read the good seen status if I logged as the user.<br>
> Checking as cyrus tells me, that nothing has been read.<br>
><br>
> Is there an su option for imap?<br>
><br>
> How can I do that?<br>
<br>
</div>Yeah, that would be nice actually. I'm pretty sure there's nothing like<br>
it at the moment.<br>
<br>
There's probably something nasty you can do via SASL, but being able to<br>
see a particular user's seen state is a different matter entirely.<br>
<br>
I'm thinking something like this:<br>
<br>
A01 FETCH 1:* (USERFLAGS.brong)<br>
* FLAGS 1 \Seen.brong<br>
* FLAGS 2 \Recent<br>
A01 OK FETCH Completed<br>
<br>
might just about do the trick... obviously it would test if you were<br>
either an admin or that user before allowing it...<br>
<br>
Bron ( also, IMAP language hacks. Bah. Along with our DIGEST.SHA1<br>
hack we're hardly talking IMAP anymore... )<br>
</blockquote></div><br><br clear="all"><br>-- <br>Dominique LALOT<br>Ingénieur Systèmes et Réseaux<br><a href="http://annuaire.univmed.fr/showuser.php?uid=lalot">http://annuaire.univmed.fr/showuser.php?uid=lalot</a><br>