Re: Priorities and attachments
- From: Philip Van Hoof <spam pvanhoof be>
- To: Javier Fernandez <jfernandez igalia com>
- Cc: tinymail-devel-list gnome org
- Subject: Re: Priorities and attachments
- Date: Fri, 20 Apr 2007 13:01:51 +0200
On Fri, 2007-04-20 at 11:31 +0200, Javier Fernandez wrote:
> 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.
Yes, this should be implemented (and the code that you copypasted is
indeed the code doing this flag-setting).
> 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.
What kind of problems?
--
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://www.pvanhoof.be/blog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]