/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #include #include "camel.h" #include "camel-nntp-store.h" #include "camel-session.h" #include "camel-exception.h" static char* authenticator (char *prompt, gboolean secret, CamelService *service, char *item, CamelException *ex) { } static void print_name(gpointer data, gpointer foo) { printf ("%s\n", (char*)data); } int main (int argc, char **argv) { CamelSession *session; CamelException *ex; CamelStore *store; CamelFolder *n_p_m_a; GList *groups; const gchar *news_url = "news://news.mozilla.org"; gtk_init (&argc, &argv); camel_init (); ex = camel_exception_new (); g_assert (camel_provider_register_as_module ("/usr/local/lib/evolution/camel-providers/0.0.1/libcamelnntp.so")); session = camel_session_new (authenticator); store = camel_session_get_store (session, news_url, ex); g_assert (store); camel_nntp_store_subscribe_group (store, "netscape.public.mozilla.announce"); printf ("subscribed groups on %s\n", news_url); groups = camel_nntp_store_list_subscribed_groups (store); g_list_foreach(groups, print_name, NULL); n_p_m_a = camel_store_get_folder (store, "netscape.public.mozilla.announce", ex); camel_folder_open(n_p_m_a, FOLDER_OPEN_READ, ex); camel_folder_close(n_p_m_a, FALSE, ex); } df72'/> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gnat
Commit message (Expand)AuthorAgeFilesLines
* The libc.so.4 is only needed when building it, so add a build-dependencyedwin2005-12-061-1/+1
* After unbreaking, also fixing pkg-plist and PERL5 dependency for running.edwin2005-12-052-7/+2
* Add dependency on bisonedwin2005-12-051-1/+2
* When using the bootstrap ada distfile, correctly set the path so itdeischen2005-12-021-1/+1
* Fix a typo (missing space) when building without shared libraries.deischen2005-11-291-1/+1
* Oops, forgot to add these patch files.deischen2005-11-292-0/+24
* Update the antiquated version of the GNAT compiler to the GPL-2005deischen2005-11-2930-3661/+2203
* Use the right syntax for a ${MASTER_SITE_foo} with a distfile group.fenner2005-11-281-1/+1
* - Fix fetch: workaround problems with site groups and :foopav2005-07-141-1/+1
* Add another site to MASTER_SITES.deischen2005-02-191-0/+1
* Fix build. Ports that formerly attempted to work around problemsdas2005-02-122-1/+4