summaryrefslogtreecommitdiffstats
path: root/libmail/nntpadd.H
diff options
context:
space:
mode:
Diffstat (limited to 'libmail/nntpadd.H')
-rw-r--r--libmail/nntpadd.H39
1 files changed, 39 insertions, 0 deletions
diff --git a/libmail/nntpadd.H b/libmail/nntpadd.H
new file mode 100644
index 0000000..0eb3654
--- /dev/null
+++ b/libmail/nntpadd.H
@@ -0,0 +1,39 @@
+/*
+** Copyright 2003, Double Precision Inc.
+**
+** See COPYING for distribution information.
+*/
+#ifndef libmail_nntpadd_H
+#define libmail_nntpadd_H
+
+#include "libmail_config.h"
+
+#include "nntp.H"
+#include "addmessage.H"
+
+#include <stdio.h>
+
+LIBMAIL_START
+
+// Posting messages to an nntp server
+
+class mail::nntp::add : public addMessage {
+
+ nntp *myServer;
+ mail::callback *origCallback;
+
+ FILE *tfile;
+
+ unsigned long byteCount;
+
+public:
+ add(mail::nntp *myServerArg, mail::callback *callbackArg);
+ ~add();
+
+ void saveMessageContents(std::string);
+ void go();
+ void fail(std::string errmsg);
+};
+
+LIBMAIL_END
+#endif