setting the seen flag?

Mike Eggleston mikeegg1 at mac.com
Wed Apr 28 13:58:25 EDT 2010


On Wed, 28 Apr 2010, Dan White might have said:

> On 28/04/10 09:43 -0500, Mike Eggleston wrote:
> >cd /var/spool/imap
> >find user/$user -type d -print | sed 's,/,.,g' | sed 's/^/"/' | sed 
> >'s/$/"/' | while read folder
> >do
> >	echo 1 select $folder > /tmp/c1
> >	echo "2 uid store 1:* +flags (\seen)" >> /tmp/c1
> >	echo 3 logout >> /tmp/c1
> >	imtest -a cyrus -w $password -u ejsg localhost < /tmp/c1
> >done
> >
> >I found no errors from the command's output, nor did I find any errors in
> >/var/log/maillog, but the user says the message is still marked 'unread'
> >by Outlook.
> 
> Is $user and ejsg the same user?
> 
> Be sure to pass the same user in the '-u xxx' option of the imtest command,
> that you wish to set the seen changes for.
> 
> Cyrus uses per-user seen states (by default), so setting the \Seen flag for
> user jane, when authorizing as ejsg, will not do what you want.

I just realized that error. The names $user and ejsg are the same. The
imtest command is setting the \Seen flags for user 'cyrus' not user
'ejsg'. I'm writing a simple cgi-bin program so the users can reset
their own \Seen flags. I'll post it as soon as I'm done.

Mike


More information about the Info-cyrus mailing list