Re: [Evolution-hackers] Raw access to message



On Do, 2010-03-11 at 10:45 -0500, Jeffrey Stedfast wrote:
> On 03/11/2010 09:16 AM, Stefan Schulze Frielinghaus wrote:
> > Hi,
> >
> > Is it possible to get raw access to an email (including header and
> > body)? Or, if that is not possible, raw access to the body of the
> > message?
> >
> > Raw access is important for me because I want to write a plugin which
> > uses some kind of cryptography, e.g. character encoding is important to
> > me.
> >   
> 
> You can get the raw message from a CamelMimeMessage object by writing it
> to a stream buffer.

This sounds great. I'm quite new to evolution could you give me a hint
how to do that? I'm starting with an EMEventTargetMessage object where I
can get an CamelMimeMessage object from. But how can I dump this one
into a stream? Writing to a stream requires a buffer of type gchar, but
I have a CamelMimeMessage object and I even do not know the length of
the message. What function calls could I look at?

cheers,
Stefan



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