Aaron Stone wrote:
> Paul,
> 
> How does GMime handle headers with multiple values? Received, for
> example, typically has 3-5 header-value pairs in a given message. But
> the GMime function we're using returns only a single char *

Yeah I know. That's what the GRelation *headers was meant for
originally, before I could setup the whole caching chain without
building an internal representation of the header-tree. I ended up using
 a g_mime_headers_foreach loop.

The GRelation is still there though, albeit unused. Feel free to use it
or improve it, if you like. I suggest we implement:

GTuples * dbmail_message_get_headers(const struct DbmailMessage *self,
const char *header);

but perhaps mapping the GTuples * and returning char ** makes more sense
for a public call.


> 
> gchar * dbmail_message_get_header(
>         const struct DbmailMessage *self, const char *header)
> {
>         return (gchar*)g_mime_object_get_header(
>                 GMIME_OBJECT(self->content), header);
> }
> 
> Reason I'm asking is that the same getheader function in libSieve's
> internal header parser returns a char **, one for each instance.
> 
> Aaron
> 
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 

-- 
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl

Reply via email to