[imp] IMP preference message flags ordering

Michael M Slusarz slusarz at horde.org
Mon Feb 27 18:56:52 UTC 2012


Quoting R Phillips <R.I.Phillips at bath.ac.uk>:

> On 22/02/12 06:21, Michael M Slusarz wrote:
>> Quoting R Phillips <R.I.Phillips at bath.ac.uk>:
>>
>>> I have a curious issue and don't particularly know where to look to find
>>> a resolution.
>>>
>>> At one point to do some diagnostics I changed the colour of the "Seen"
>>> message flag highlighting colour in the IMP preferences (traditional
>>> mode).
>>>
>>> I've just updated to the latest IMP on one test and deployment servers
>>> and there is a discrepancy in the order in which they are applied on the
>>> two different servers.
>>>
>>> One highlights the "seen" and "deleted" messages by highlighting in the
>>> "deleted" colour (and appears *after* "seen" in the preference listing),
>>> and the other applies the "seen" colour for deleted,seen messages and
>>> appears after deleted in the preference listing.  Both servers display
>>> the strike-through.
>>>
>>> Whilst on the face of it, this isn't too much of an issue, we load
>>> balance across two servers and different message highlighting is likely
>>> to cause at best, complaints.  On the whole these servers are treated
>>> equally and configured using identical build scripts... unless I've
>>> missed something....?
>>
>> It's probably due to the order that the flags are returned by the IMAP
>> server (or the order that they are stored in the cached message object).
>>
>> michael
>>
>> ___________________________________
>> Michael Slusarz [slusarz at horde.org]
>
>
> According to the IMAP telemetry the order of the flags is the same.

The order of flags from the IMAP server is irrelevant.

> I've rsync'd the code from both servers onto another server alternately
> in an attempt to find the difference, but code from each doesn't change
> the behaviour no matter which server the code comes from.

Imagine this scenario:

- Message 1 comes into mailbox.
- The user deletes this message (Trash is not being used).  The  
message is stored with the \Deleted flag in the cached object.
- The user then decides to view this message.  The \Seen flag is  
stored in the cached object.  Thus, the list of flags for this message  
is: (\Deleted, \Seen)

- Message 2 comes into mailbox.
- The user views this message.  The message is stored with the \Seen  
flag in the cached object.
- The user deletes this message. The \Deleted flag is stored in the  
cached object.  Thus, the list of flags for this message is: (\Seen,  
\Deleted)

Both cached objects are correct and both flag lists are correct.

We use CSS rules to display message flag information.  For those rules  
that affect the entire row, order necessarily determines which flag's  
CSS formatting will stand out.  This can be seen either as a  
limitation of CSS styling, or a limitation of the styles we have  
currently defined for the flags.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list