diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-06-23 10:03:35 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-06-23 10:03:35 +0800 |
commit | 61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0 (patch) | |
tree | 10f5113029f696b542b83b549d36c570f4ceee81 /camel/providers/nntp/test-newsrc.c | |
parent | afa7176eab5a2c495a8f10de4c430f443cdcfb99 (diff) | |
download | gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.tar gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.tar.gz gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.tar.bz2 gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.tar.lz gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.tar.xz gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.tar.zst gsoc2013-evolution-61ec5b754bb8acf189d0ac083bf8e0cb0c98ebc0.zip |
ignore test-newsrc
2000-06-22 Chris Toshok <toshok@helixcode.com>
* providers/nntp/.cvsignore: ignore test-newsrc
* providers/nntp/camel-nntp-store.c,
providers/nntp/camel-nntp-store.h,
providers/nntp/camel-nntp-folder.c,
providers/nntp/camel-nntp-folder.h,
providers/nntp/camel-nntp-utils.c: Bring the nntp provider up to a
state where it builds and is usable with the current camel. there
are still warts (semi-broken .newsrc file handling, and a lack of
a subscribe ui -- in fact no way to add a new server, really), but
it'll display news messages.
* providers/nntp/Makefile.am (libcamelnntp_la_SOURCES): add
camel-nntp-newsrc.c
(libcamelnntpinclude_HEADERS): add camel-nntp-newsrc.h
also, add test-newsrc stuff.
* providers/nntp/test-newsrc.c: new file that tests the newsrc
stuff by parsing and regurgitating a .newsrc file for a particular
server.
* providers/nntp/camel-nntp-newsrc.c,
providers/nntp/camel-nntp-newsrc.h: new files, initial support for .newsrc files.
svn path=/trunk/; revision=3702
Diffstat (limited to 'camel/providers/nntp/test-newsrc.c')
-rw-r--r-- | camel/providers/nntp/test-newsrc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/providers/nntp/test-newsrc.c b/camel/providers/nntp/test-newsrc.c new file mode 100644 index 0000000000..c4b985e565 --- /dev/null +++ b/camel/providers/nntp/test-newsrc.c @@ -0,0 +1,10 @@ +#include <stdio.h> +#include <glib.h> +#include "camel-nntp-newsrc.h" + +int +main(int argc, char *argv[]) +{ + CamelNNTPNewsrc *newsrc = camel_nntp_newsrc_read_for_server (argv[1]); + camel_nntp_newsrc_write_to_file (newsrc, stdout); +} |