aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test1.c
blob: 7ec4b49145f88053524d983467a07819f2bfd28c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "camel-mime-message.h"
#include "stdio.h"

void
main (int argc, char**argv)
{
    CamelMimeMessage *message;
    FILE *output_file;

    gtk_init (&argc, &argv);
    message = camel_mime_message_new_with_session( (CamelSession *)NULL);
    camel_mime_part_set_description (CAMEL_MIME_PART (message), g_string_new ("a test"));
    camel_mime_message_set_received_date (message, g_string_new ("Thu, 20 May 1999, 10:39:14 +0200"));
    camel_mime_message_set_subject (message, g_string_new ("A test message"));
    camel_mime_message_set_reply_to (message, g_string_new ("toto@toto.com"));
    camel_mime_message_set_from (message, g_string_new ("Bertrand.Guiheneuf@inria.fr"));
    camel_mime_message_add_recipient (message, g_string_new ("To"), g_string_new ("franck.dechamps@alseve.fr"));
    

    output_file = fopen ("mail.test", "w");
    if (!output_file) {
        perror("could not open output file");
        exit(2);
    }
    camel_data_wrapper_write_to_file (CAMEL_DATA_WRAPPER (message), output_file);
    fclose (output_file);
    
                       
    
    gtk_main();
}
sd-ports-gnome/commit/devel/p5-Attribute-Handlers?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=3ff0383d3a2fb21cdb1e80822419f4aac7fd522f'>Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Convert to new perl frameworkmat2013-08-031-6/+3 * - Update to 0.93culot2011-12-202-3/+3 * - Fix LICENSE (Artistic 1 instead of Artistic 2)culot2011-10-071-1/+1 * - update to 0.91bapt2011-06-012-3/+6 * - Cleaning MD5 in perl@'s ports.jadawin2011-05-171-1/+0 * Update to 0.88.tobez2010-04-062-4/+4 * Update to 0.87.tobez2009-09-222-4/+4 * Update to 0.86.tobez2009-08-102-4/+4 * Utilize %%SITE_PERL%% and %%PERL_ARCH%% in pkg-plistspgollucci2009-07-311-3/+3 * - update to 0.85leeym2009-06-122-5/+5 * - Update to 0.83miwi2009-03-212-4/+4 * - Update to 0.82miwi2009-03-142-4/+4 * Reassign my p5-* ports to perl@ so more than one personerwin2009-01-301-1/+1 * Update to 0.81erwin2008-11-262-4/+4 * Update to 0.80erwin2008-10-282-4/+4 * - Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_C...araujo2008-04-171-2/+1