I'm looking at messages in readonly mode in order to determine which ones need to be synchronized between two sites.
Then I'm flagging those as deleted that have been removed on one side.
After that I'm appending new messages to mailboxes at both sides. In order to do this without having the "Status: O" set by c-client I need to change "down" into OP_HALFOPEN mode.
Thanks for explaining so clearly what you're doing. I understand the issue.
If the mailbox is opened readonly then there shouldn't be any "Status: O" set. c-client doesn't do this; the IMAP server does. If one of the IMAP servers is UW imapd, then indeed "Status: O" will happen when messages are appended to a mailbox that is open readwrite, since the readwrite session will see the messages. But that won't happen if it's open readonly.
So, if "Status: O" is being written then I think that must be something that is happening in some other server. Or perhaps you don't really have the mailbox open readonly (perhaps because you don't always see new mail in readonly sessions).
Anyway, the correct long-term fix is to upgrade to servers that support UNSELECT.
-- Mark --
http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote.
