Re: [Evolution-hackers] X-Evolution: UUUUUUUU-FFFF - flags?



On Tue, 2007-05-29 at 17:04 +1000, Philip Rhoades wrote:
[snip]
> 
> FFFF 
> A 4 character hexdecimal value which represents the flags of the
> message. 
>  
> A typical example might be:
> X-Evolution: 0000002-0002
> 
> This message is message number 2, and it is marked DELETED
> (CAMEL_MESSAGE_DELETED = 1<<1).
> 
> and also:
> 
> typedef enum _CamelMessageFlags {
>     CAMEL_MESSAGE_ANSWERED = 1<<0,
>     CAMEL_MESSAGE_DELETED = 1<<1,
>     CAMEL_MESSAGE_DRAFT = 1<<2,
>     CAMEL_MESSAGE_FLAGGED = 1<<3,
>     CAMEL_MESSAGE_SEEN = 1<<4,
> 
>     CAMEL_MESSAGE_ATTACHMENTS = 1<<5,
>     CAMEL_MESSAGE_ANSWERED_ALL = 1<<6,
>     CAMEL_MESSAGE_JUNK = 1<<7,
>     CAMEL_MESSAGE_SECURE = 1<<8,
> 
>     CAMEL_MESSAGE_FOLDER_FLAGGED = 1<<16,
> 
>     CAMEL_MESSAGE_JUNK_LEARN = 1<<30,
>     CAMEL_MESSAGE_USER = 1<<31
> } CamelMessageFlags;
> 
> #define CAMEL_MESSAGE_SYSTEM_MASK (0xffff << 16)
> 
> 
> but from this information (and some experimentation) I still can't work
> out all of these examples I have in my Inbox:
> 
> 0000

no flags set, aka "Unseen" (or "Unread" depending on how you prefer to
think of it)

> 0010

CAMEL_MESSAGE_SEEN

> 0011

CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_ANSWERED

> 0012

CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_DELETED

> 0013

CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_ANSWERED | CAMEL_MESSAGE_DELETED

> 0018

CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_FLAGGED

> 0019

CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_FLAGGED | CAMEL_MESSAGE_ANSWERED



Does that clear it up?

Jeff





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]