/* -*- 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; gtk_init (&argc, &argv); camel_init (); message = camel_mime_message_new (); input_stream = camel_stream_fs_new_with_name ("mail.test", O_RDONLY, 0); 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; } thod='get'> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/games/xye
Commit message (Expand)AuthorAgeFilesLines
* Really fix build on FreeBSD 9+bapt2013-05-041-1/+1
* Fix extraction on FreeBSD 9+bapt2013-05-041-1/+1
* Bump PORTREVISION after DESKTOP_ENTRIES updatemakc2013-01-231-0/+1
* - Fix startup notification setting for DESKTOP_ENTRIESmva2013-01-151-1/+1
* - Update to 0.12.1mva2013-01-146-28/+250
* - update png to 1.5.10dinoex2012-06-011-1/+1
* - Update devel/sdl12 to 1.2.15mva2012-02-181-1/+1
* -remove MD5ohauer2011-07-031-1/+0
* - Update graphics/sdl_ttf to version 2.0.10mva2010-08-111-1/+1
* - update to 1.4.1dinoex2010-03-281-1/+1
* - update to jpeg-8dinoex2010-02-051-1/+1
* - Update devel/sdl12 to version 1.2.14.mva2010-01-301-0/+1
* - Update to 0.9.1amdmi32009-09-163-19/+20
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1
* Fix plist with -DNOPORT*.itetcu2009-04-081-0/+6
* - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-0/+1
* - Update to 0.8.0miwi2008-01-213-9/+9
* Remove always-false/true conditions based on OSVERSION 500000edwin2007-10-041-7/+1
* - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1
* - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directorystas2006-09-201-3/+1
* - Mark BROKEN on 4.x, does not buildrafan2006-08-101-1/+7