Re: write fetched mime section
Marko Ivancic <[email protected]> Sun, 16 Apr 2006 18:21:32 +0200
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Tnx Mr Dinh I will try with thi. But I have another question. I tried to set the text mime part with mailmime_set_body_text for all my single parts. Then I try to write it back with mailmime_write_mem into a MMAPString. For the Html and plain txt works but then the write is not more complete (missing a part of MIME). So it is not posible to use the mailmeime_set_body_text function for all single parts ?? tnx By Marko DINH Viet Hoa wrote: > Marko Ivancic wrote : > > >> My question now is how do I insert on this position my fetched data ?? I >> looked all the examplse in libetpan and etpanX but I can not find the >> answer to this. >> > > int mailprivacy_get_mime(struct mailprivacy * privacy, > int check_privacy, int reencode, > char * content, size_t content_len, > struct mailmime ** result_mime) > > This is the function you may be looking for (it is on libetpan side). > You can implement a function to get a MIME part from fetched data using > this function as a model (this function is rather internal to libetpan). > >