[sylpheed:31471] Re: [Libsylph] Help for saving attached images

Massimiliano Calamelli mcalamelli at gmail.com
Tue Jun 19 17:26:57 JST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 19 Jun 2007 10:59:04 +0900
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp> wrote:

> See mimeview.c::mimeview_save_as().
> 
> To save the attached files, you can use the following functions:
> 
> MimeInfo *procmime_scan_message         (MsgInfo        *msginfo);
> 
> gint procmime_get_part                  (const gchar    *outfile,
>                                          const gchar    *infile,
>                                          MimeInfo       *mimeinfo);
> 
> First, look for the MimeInfo tree and find the image part, and pass it
> to procmime_get_part() to get the contents as a file.

Hi Hiroyuki, thanks a lot for your reply.
I've just another question: what is does procmime_get_all_parts() ?
I'll write a simple test program to extract image parts from
attachment, if it will be good i'll send to you.

Massimiliano
- -- 
Massimiliano Calamelli
http://mcalamelli.netsons.org
mcalamelli at gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFGd5NRleGEL56NNP4RAuaLAKDXsgSlgeWWHt61NROQ96bSKnWlngCgymcI
vs2wtrpz5k+qoZDqTd3AlXk=
=Wlfd
-----END PGP SIGNATURE-----


More information about the Sylpheed mailing list