Re: How to encode Subject to encoded form?

"DINH Viêt Hoà" <[email protected]> Fri, 15 Jun 2007 17:45:33 +0200
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
On 6/15/07, [email protected] <[email protected]> wrote:
> Hello
>
>  I test compose-msg.c to try to create a MIME file
>
>  How could I encode words in Subject field to encoded form?
>
>  Like: encode "This is a subject" to "=?utf8?b?xfrenoeefincd=?"
>
>  and how could I and nickname in From field?
>
>  Could someone teach me how to call libetpan API?

Sorry for my last message. There was a bug either in gmail or my web browser ...

etpanX is a good codebase for the use of libetpan.
https://libetpan.svn.sourceforge.net/svnroot/libetpan/etpanX/trunk

src/backend/etpan-lep.[ch] has what you are looking for :

char * etpan_encode_mime_header(char * phrase);
char * etpan_decode_mime_header(char * phrase);

-- 
DINH Viêt Hoà

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/