Sieve \\Seen flag actions not replicated

Ken Murchison murch at andrew.cmu.edu
Tue Jan 2 19:20:53 EST 2007


John Capo wrote:
> Quoting Ken Murchison (murch at andrew.cmu.edu):
>> John Capo wrote:
>>> Tiring of running fixup scripts to keep seen state consistent, I
>>> decided to find the problem.  In imap/lmtpd.c:
>>>
>>>            sync_log_append(mailboxname); 
>>> +        
>>> +            if (nflags && user && !strncmp("user.", mailboxname, 5) && 
>>> !strncmp(mailboxname + 5, user, strlen(user)))
>>> +                sync_log_seen(user, mailboxname);
>>>        }
>>>
>>> The strncmps insure that the seen state is updated only for the
>>> user that owns the mailbox.  Are they neeed?
>> No, since you can set \Seen on shared mailboxes.  I haven't tested it, 
>> but I think this does the right thing.  Please let me know.
> 
> This patch works just fine.  Tested with combinations of system
> flags and user flags.

Just committed with a couple of Murder fixes.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Cyrus-devel mailing list