1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU Lesser General Public
7 * License as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #include <camel/camel.h>
26 CamelSession *session;
28 CamelService *service;
32 printf ("Pass the account url argument \n");
37 system ("rm -rf /tmp/test-camel-imapx");
38 camel_init ("/tmp/test-camel-imapx", TRUE);
39 camel_provider_init ();
41 session = g_object_new (
43 "user-data-dir", "/tmp/test-camel-imapx", NULL);
45 service = camel_session_add_service (
46 session, "text-imapx", uri, CAMEL_PROVIDER_STORE, NULL);
47 camel_service_connect_sync (service, NULL);
49 camel_store_get_folder_info_sync (
50 CAMEL_STORE (service), "", 3, NULL, NULL);
51 folder = camel_store_get_folder_sync (
52 CAMEL_STORE (service), "INBOX", 0, NULL, NULL);
53 camel_folder_refresh_info_sync (folder, NULL, NULL);