On Wed, 1 Dec 2004, Mark Crispin wrote:

On Wed, 1 Dec 2004, Tomas Pospisek's Mailing Lists wrote:
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.

This is not an option since the tool I maintain (mailsync) wants to allow the user to access all forms of mailboxes uniformly, be they IMAP servers with or without UNSELECT or any kind of local mailboxes...


... but - are you saying that I don't even need to change into HALFOPEN mode in order to be able to append messages to any kind of mailbox without the "Status: O" flag being set? That I just have to keep the stream in READONLY mode?

I seem to remember you've told me otherwise last time I asked but I can't dig up the mail in question (here [1] is one such email, but it doesn't talk about READONLY).

Thanks again,
*t

[1] http://www.mail-archive.com/[email protected]/msg00220.html

PS: I'd be nice to link to that searchable online archive from the UW
    c-client page.

--
-----------------------------------------------------------
  Tomas Pospisek
  http://sourcepole.com -  Linux & Open Source Solutions
-----------------------------------------------------------

Reply via email to