/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #include "camel.h" #include "camel-mbox-folder.h" #include "camel-mbox-parser.h" #include "camel-mbox-utils.h" #include "camel-mbox-summary.h" #include "camel-exception.h" #include #include #include #include #include #include #include int main (int argc, char**argv) { GArray *message_info_array; gint test_file_fd; CamelException *ex; CamelMboxSummary *sum1, *sum2; GArray *mbox_summary_info; CamelMboxSummaryInformation *msg_info; int i; guint32 next_uid; guint32 mbox_file_size; gtk_init (&argc, &argv); camel_init (); ex = camel_exception_new (); test_file_fd = open (argv[1], O_RDONLY); message_info_array = camel_mbox_parse_file (test_file_fd, "From ", 0, &mbox_file_size, &next_uid, TRUE, NULL, 0, ex); close (test_file_fd); #warning This test is no longer valid. #if 0 /* needs a folder to work with (indexing) */ camel_mbox_write_xev (argv[1], message_info_array, &mbox_file_size, 1, ex); #endif if (camel_exception_get_id (ex)) { printf ("Exception caught in camel_mbox_write_xev : %s\n", camel_exception_get_description (ex)); } mbox_summary_info = parsed_information_to_mbox_summary (message_info_array); sum1 = CAMEL_MBOX_SUMMARY (gtk_object_new (camel_mbox_summary_get_type (), NULL)); sum1->nb_message = mbox_summary_info->len; sum1->message_info = mbox_summary_info; camel_mbox_summary_save (sum1, "ev-summary.mbox", ex); sum2 = camel_mbox_summary_load ("ev-summary.mbox", ex); for (i=0; inb_message; i++) { msg_info = (CamelMboxSummaryInformation *)(sum1->message_info->data) + i; printf ("Message %d :\n" " From : %s\n", i, msg_info->headers.sender); } return 1; } rn/devel/electron4/files/ini-1.3.7 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-0/+1
* biology/p5-transdecoder: Upgrade to 5.4.0Jason W. Bacon2018-10-234-30/+44
* Bump PORTREVISIONs of all users of math/mpc that we just updated toGerald Pfeifer2018-03-111-0/+1
* Multiple ports:Jason W. Bacon2018-01-311-2/+1
* Never set WRKSRC when using USE_GITHUB.Mathieu Arnold2017-01-041-2/+0
* Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.Mathieu Arnold2016-04-011-2/+2