/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2001 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "folder.h"
#include "session.h"
+#include "nntp.h"
typedef struct _NNTPSession NNTPSession;
+typedef struct _NewsGroupInfo NewsGroupInfo;
#define NNTP_SESSION(obj) ((NNTPSession *)obj)
{
Session session;
+ NNTPSockInfo *nntp_sock;
gchar *group;
};
+struct _NewsGroupInfo
+{
+ gchar *name;
+ gchar first;
+ gchar last;
+ gchar type;
+};
-Session *news_session_new (const gchar *server,
- gushort port);
void news_session_destroy (NNTPSession *session);
NNTPSession *news_session_get (Folder *folder);
void news_scan_group (Folder *folder,
FolderItem *item);
+GSList *news_get_group_list (Folder *folder);
+void news_group_list_free (GSList *group_list);
+void news_remove_group_list_cache (Folder *folder);
+
gint news_post (Folder *folder,
const gchar *file);
-GSList * news_get_group_list(FolderItem *item);
-void news_reset_group_list();
-
#endif /* __NEWS_H__ */