summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlain Magloire <alainm@gnu.org>2004-07-05 05:07:37 +0000
committerAlain Magloire <alainm@gnu.org>2004-07-05 05:07:37 +0000
commitdce5e1fbf5c94871d4d7e663fab26909bf4037b9 (patch)
tree473d3954d4346be1488fd5b664a875c8374422af /include
parente58ae41328ab2134cc888355596c985bd7345986 (diff)
downloadmailutils-dce5e1fbf5c94871d4d7e663fab26909bf4037b9.tar.gz
mailutils-dce5e1fbf5c94871d4d7e663fab26909bf4037b9.tar.bz2
Enable NNTP.
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/nntp.h3
-rw-r--r--include/mailutils/pop3.h2
-rw-r--r--include/mailutils/registrar.h14
3 files changed, 14 insertions, 5 deletions
diff --git a/include/mailutils/nntp.h b/include/mailutils/nntp.h
index 3f943fb59..5cea85276 100644
--- a/include/mailutils/nntp.h
+++ b/include/mailutils/nntp.h
@@ -28,6 +28,9 @@ extern "C" {
struct _mu_nntp;
typedef struct _mu_nntp* mu_nntp_t;
+#define MU_NNTP_DEFAULT_PORT 119
+#define MU_NNTP_URL_SCHEME "nntp"
+
extern int mu_nntp_create (mu_nntp_t *nntp);
extern void mu_nntp_destroy (mu_nntp_t *nntp);
diff --git a/include/mailutils/pop3.h b/include/mailutils/pop3.h
index e9785c404..49c4a00c7 100644
--- a/include/mailutils/pop3.h
+++ b/include/mailutils/pop3.h
@@ -29,6 +29,8 @@ extern "C" {
struct _mu_pop3;
typedef struct _mu_pop3* mu_pop3_t;
+#define MU_POP3_DEFAULT_PORT 110
+
extern int mu_pop3_create (mu_pop3_t *pop3);
extern void mu_pop3_destroy (mu_pop3_t *pop3);
diff --git a/include/mailutils/registrar.h b/include/mailutils/registrar.h
index 3e45d45ee..745aa3b6f 100644
--- a/include/mailutils/registrar.h
+++ b/include/mailutils/registrar.h
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -88,16 +88,18 @@ extern int record_set_get_folder __P ((record_t, int (*_get_folder)
extern record_t imap_record;
/* Remote Mailbox POP3, pop:// */
extern record_t pop_record;
+/* Remote newsgroup NNTP, nntp:// */
+extern record_t nntp_record;
/* Local Mailbox Unix Mailbox, "mbox:" */
extern record_t mbox_record;
/* Local Folder/Mailbox, / */
extern record_t path_record;
-/* Local MH, "mh:" */
+/* Local MH, "mh:" */
extern record_t mh_record;
/* Maildir, "maildir:" */
extern record_t maildir_record;
-
+
/* SMTP mailer, "smtp://" */
extern record_t smtp_record;
/* Sendmail, "sendmail:" */
@@ -112,6 +114,7 @@ extern record_t sendmail_record;
list_append (bookie, imap_record);\
list_append (bookie, mh_record);\
list_append (bookie, maildir_record);\
+ list_append (bookie, nntp_record);\
} while (0)
#define mu_register_local_mbox_formats() do {\
@@ -128,8 +131,9 @@ extern record_t sendmail_record;
registrar_get_list (&bookie);\
list_append (bookie, pop_record);\
list_append (bookie, imap_record);\
+ list_append (bookie, nntp_record);\
} while (0)
-
+
#define mu_register_all_mailer_formats() do {\
list_t bookie = 0;\
registrar_get_list (&bookie);\
@@ -141,7 +145,7 @@ extern record_t sendmail_record;
mu_register_all_mbox_formats ();\
mu_register_all_mailer_formats ();\
} while (0)
-
+
#ifdef __cplusplus
}
#endif

Return to:

Send suggestions and report system problems to the System administrator.