/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* tests mime message file parsing */ #include "stdio.h" #include "camel-mime-message.h" #include "camel-mime-part.h" #include "camel-stream.h" #include "camel-stream-fs.h" #include "camel.h" int main (int argc, char**argv) { CamelMimeMessage *message; CamelStream *input_stream; CamelException *ex = camel_exception_new (); gtk_init (&argc, &argv); camel_init (); message = camel_mime_message_new (); input_stream = camel_stream_fs_new_with_name ("mail.test", O_RDONLY, 0, ex); if (!input_stream) { perror ("could not open input file\n"); printf ("You must create the file mail.test before running this test\n"); exit(2); } camel_data_wrapper_construct_from_stream ( CAMEL_DATA_WRAPPER (message), input_stream); camel_medium_get_content_object (CAMEL_MEDIUM (message)); #if 0 camel_stream_close (input_stream); gtk_object_unref (GTK_OBJECT (input_stream)); output_stream = camel_stream_fs_new_with_name ("mail2.test", O_WRONLY|O_TRUNC|O_CREAT, 0600); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), output_stream); camel_stream_close (output_stream); gtk_object_unref (GTK_OBJECT (output_stream)); //gtk_object_unref (GTK_OBJECT (message)); #endif return 0; } lass='form'>
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/shells/fish
Commit message (Expand)AuthorAgeFilesLines
* - Get Rid MD5 supportmiwi2011-03-191-1/+0
* Sync to new bsd.autotools.mkade2010-12-041-1/+1
* Punt autoconf267->autoconf268ade2010-10-161-1/+1
* Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-2/+2
* Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1
* - Fix plist if seq provided by base systemamdmi32010-04-162-2/+8
* - update to 1.4.1dinoex2010-03-281-1/+1
* - Install documentation into DOCSDIRwen2010-03-172-21/+22
* - Remote NLS support (been broken a long time)wxs2010-01-142-39/+39
* - Fix potential division by zero bugamdmi32010-01-142-0/+15
* - Update to 1.23.1miwi2009-09-214-55/+211
* - Fix plist with new doxygenpav2009-05-142-1/+2
* Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-06