Re: [Evolution-hackers] Getting raw headers from CamelMimeMessage
- From: Not Zed <notzed ximian com>
- To: Jeffrey Stedfast <fejj ximian com>
- Cc: Dave Kelly <dave ravelox co uk>, evolution-hackers ximian com
- Subject: Re: [Evolution-hackers] Getting raw headers from CamelMimeMessage
- Date: 24 Jan 2003 14:36:06 +1030
Jeff is correct, although you should probably use the
camel_medium_get_headers() method, it will return a GPtrArray of
CamelMediumHeader values, in the correct order.
These values can recreate the raw headers by just concatening header +
":" + value (that will preserve any leading whitespace in the header).
I can't remember if it folds the lines first, or if they are stored
unfolded - either way it should be parsable into the same content.
On Wed, 2003-01-22 at 01:15, Jeffrey Stedfast wrote:
> CamelMimePart::headers is a linked list of name/value pairs (I think it
> might also have an off_t offset into the stream).
>
> Jeff
>
> On Tue, 2003-01-21 at 09:27, Dave Kelly wrote:
> > Hello,
> >
> > I'd like to be able to write the headers of a message to a separate file
> > but I can't find a way to get the raw headers from CamelMimeMessage (or
> > CamelMimePart / CamelMedium). The only method I can see is to get them
> > as a GArray.
> >
> > Is there a method I may have missed ?
> >
> > Cheers
> >
> > Dave.
> >
> >
> > _______________________________________________
> > evolution-hackers maillist - evolution-hackers ximian com
> > http://lists.ximian.com/mailman/listinfo/evolution-hackers
> --
> Jeffrey Stedfast
> Evolution Hacker - Ximian, Inc.
> fejj ximian com - www.ximian.com
>
>
> _______________________________________________
> evolution-hackers maillist - evolution-hackers ximian com
> http://lists.ximian.com/mailman/listinfo/evolution-hackers
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]