Priorities and attachments



Are header priorities and attachments management already implemented ?
I read some mails about this at 22 March 2007, but im not sure if it was finally
implemented.

        prio = camel_header_raw_find(&h, "X-Priority", NULL);
        if (!prio)
                prio = camel_header_raw_find(&h, "X-MSMail-Priority", NULL);

        if (prio)
        {
                if (g_strstr_len (prio, strlen (prio), "high") != NULL)
                        mi->flags |= CAMEL_MESSAGE_PRIORITY;
                else if (strchr (prio, '1') != NULL || strchr (prio, '2') != NULL)
                        mi->flags |= CAMEL_MESSAGE_PRIORITY;
        }

        attach = camel_header_raw_find(&h, "X-MS-Has-Attach", NULL);
        if (attach)
                if (g_strstr_len (attach, strlen (attach), "yes") != NULL)
                        mi->flags |= CAMEL_MESSAGE_ATTACHMENTS;
        else {
                attach = camel_header_raw_find(&h, "Content-Type", NULL);
                if (g_strstr_len (attach, strlen (attach), "multi") != NULL)
                        mi->flags |= CAMEL_MESSAGE_ATTACHMENTS;
        }

I'm having problems to get attach and priority information from flags column of
GtkTreeModel which stores headers list.

-- 
Javier Fernández García-Boente
Ingeniero en Informática                 
mailto:jfernandez igalia com                    
Igalia http://www.igalia.com
Telf. +34 981 91 39 91  
Fax.  +34 981 91 39 49
 



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