/* -*- 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); } 88c85f'/> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/galax
Commit message (Expand)AuthorAgeFilesLines
* Do not use JDK 1.5 until I have time to find out what it's doing differentvs2006-04-121-1/+1
* SHA256ifyedwin2006-01-241-0/+1
* Drop unused INSTALLS_SHLIB/LDCONFIG_DIRS (mispelled anyway ;)vs2005-11-031-3/+1
* Update to current home. 0.5 is available, but I haven't had time to port it, ...vs2005-10-101-1/+1
* Fix plistvs2005-01-131-0/+7
* Fix Java-includes in previous commit ("jni_md.h")vs2004-06-301-1/+2
* Build the Java-API as well.vs2004-06-302-2/+52
* SIZE-ify distinfovs2004-03-221-0/+1
* - Update MAINTAINER-line of my ports to new @FreeBSD.org addressvs2004-03-101-1/+1
* BROKEN on !i386: Does not compilekris2004-02-261-1/+7
* Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1
* Update to 0.3.5clement2004-01-175-249/+241
* De-pkg-comment.knu2003-02-212-1/+1
* Upgrade to 0.3.0.obraun2003-02-114-27/+97