tags 434807 - patch 
thanks

On Thu, Jul 26, 2007 at 11:11:41PM +0200, Christian Brabandt wrote:
> Flags are not correctly stored, when archiving mails with IMAP. All
> my mails are archived with flag 'O'. 

Thanks for reporting this, I've finally looked into it.  The IMAP flags
handling has been completely broken, indeed.  It's now fixed in subversion
(upstream). 

> Attached is a patch that fixes that behaviour (Look for the difference 
> with the following statement:
> imaplib.ParseFlags(response[1])
> ). 
> 
> It also changes how archivemail determines the flags (and allows the
> setting of 'OLD' flag).
> 
> I have been using it locally and it works using Dovecot. Please
> consider adding the patch.
[...]

> --- archivemail       2007-07-26 21:42:05.000000000 +0200
> +++ archivemail_imap  2007-07-28 22:44:35.000000000 +0200
> @@ -869,13 +869,19 @@
>              status = status + "R"
>          elif flag == "\\Deleted": # (trashed): user has moved this message 
> to trash
>              pass # is this Status: D ? 
> +        elif flag == "Old": # (trashed): user has moved this message to trash
> +            status = "O"

What means "old" here?  Looks like a server specific keyword that's not covered
by the IMAP spec.  The IMAP equivalent to "moving a message to trash" is the
\Deleted flag.  (Also note that the mbox status 'O' differs from what mutt is
displaying in its message index.)

Nikolaus



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to