[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] really read-only maildir access
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] really read-only maildir access |
Date: |
Fri, 11 Feb 2011 14:17:12 +0200 |
Hi Karel,
> it seems that
>
> mu_mailbox_open(maildir, MU_STREAM_READ);
>
> always delivers mails from maildir/new/ to maildir/cur/.
Yes, indeed.
> From my point of view is it unexpected behavior.
I'm not sure. Even after being moved to cur, those messages still
remain "new" for the reader. The new,cur,tmp are internal aspects of
Maildir architecture and I see no reason why end users should be
concerned about them. On the other hand, if my memory serves me, it
is the maildir spec which clearly requires that any messages be moved
from new to cur upon any access to the mailbox.
> Would it be possible to fix/improve mailutils behavior? It would be
> nice to have a way how explicitly disable any maildir modification.
>
> What about to add a new flag? For example MU_STREAM_NO_DELIVER or so.
Looks like this will imply a considerable rewrite of the Maildir
support, because simply keeping those files in the "/new" subdir
will make them invisible for the user. On the other hand, scanning
"/new" and incorporating messages from it without moving them to "/cur"
goes agains maildir specs.
Regards,
Sergey