/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* testing mh providers do not use CamelMhFolder and CamelMhStore directly. We do it here for test purpose only */ #include "camel-folder.h" #include "camel-mh-folder.h" #include "camel-mh-store.h" #include "camel.h" int main (int argc, char**argv) { CamelStore *store; CamelFolder *inbox_folder; CamelFolder *root_mh_folder; GList *mh_subfolders_name; CamelMimeMessage *message_1; gboolean inbox_exists; gtk_init (&argc, &argv); camel_init (); store = gtk_type_new (CAMEL_MH_STORE_TYPE); camel_store_init (store, (CamelSession *)NULL, g_strdup ("mh:///root/Mail")); root_mh_folder = camel_store_get_folder (store, ""); mh_subfolders_name = camel_folder_list_subfolders (root_mh_folder, NULL); printf ("\n------------- Listing root Mh folder subfolders --------\n"); while (mh_subfolders_name) { printf ("\t\"%s\"\n", (gchar *)mh_subfolders_name->data); mh_subfolders_name = mh_subfolders_name->next; } printf ("--------------------------------------------------------\n\n"); inbox_folder = camel_store_get_folder (store, "inbox"); if (!inbox_folder) { printf ("** Error: could not get inbox folder from store\n"); return 1; } /* test existence */ inbox_exists = camel_folder_exists (inbox_folder, NULL); if (inbox_exists) printf ("MH folder inbox exists, continuing tests\n"); else { printf ("MH folder inbox does not exist. Stopping \n"); return 1; } printf ("\n Inbox folder contains %d messages\n", camel_folder_get_message_count (inbox_folder, NULL)); printf ("\n------------- Gettting message numer 3 in inbox --------\n"); message_1 = camel_folder_get_message (inbox_folder, 3, NULL); printf ("--------------------------------------------------------\n\n"); return 1; } 6.5.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/math/oleo
Commit message (Expand)AuthorAgeFilesLines
* math/oleo: document ncurses and remove extern errnomarino2016-08-2423-82/+98
* - Clarify LICENSEamdmi32016-06-241-25/+16
* - Fix trailing whitespace in pkg-descrs, categories [g-n]*amdmi32016-05-191-1/+1
* Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.mat2016-04-011-3/+3
* Remove $FreeBSD$ from patches files everywhere.mat2015-05-232-4/+0
* MASTER_SITES cleanup.mat2015-05-141-2/+1
* Fix build with Perl 5.21.1+mat2015-04-211-0/+23
* - Reset maintainership of my portsgahr2014-12-111-1/+1
* Cleanup plistantoine2014-11-151-3/+0
* Remove USE_AUTOTOOLS and remove DATADIRNAME patchtijl2014-09-252-21/+5
* Rename math/ patch-xy patches to reflect the files they modify.adamw2014-07-2917-0/+0
* Support LIBS like LDFLAGS.tijl2014-06-111-1/+1