diff options
author | Alain Magloire <alainm@gnu.org> | 2004-07-05 05:07:37 +0000 |
---|---|---|
committer | Alain Magloire <alainm@gnu.org> | 2004-07-05 05:07:37 +0000 |
commit | dce5e1fbf5c94871d4d7e663fab26909bf4037b9 (patch) | |
tree | 473d3954d4346be1488fd5b664a875c8374422af /include | |
parent | e58ae41328ab2134cc888355596c985bd7345986 (diff) | |
download | mailutils-dce5e1fbf5c94871d4d7e663fab26909bf4037b9.tar.gz mailutils-dce5e1fbf5c94871d4d7e663fab26909bf4037b9.tar.bz2 |
Enable NNTP.
Diffstat (limited to 'include')
-rw-r--r-- | include/mailutils/nntp.h | 3 | ||||
-rw-r--r-- | include/mailutils/pop3.h | 2 | ||||
-rw-r--r-- | include/mailutils/registrar.h | 14 |
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 @@ -30,2 +30,5 @@ 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); 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 @@ -31,2 +31,4 @@ typedef struct _mu_pop3* mu_pop3_t; +#define MU_POP3_DEFAULT_PORT 110 + extern int mu_pop3_create (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,3 +1,3 @@ /* 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. @@ -90,2 +90,4 @@ extern record_t imap_record; extern record_t pop_record; +/* Remote newsgroup NNTP, nntp:// */ +extern record_t nntp_record; @@ -95,3 +97,3 @@ extern record_t mbox_record; extern record_t path_record; -/* Local MH, "mh:" */ +/* Local MH, "mh:" */ extern record_t mh_record; @@ -99,3 +101,3 @@ extern record_t mh_record; extern record_t maildir_record; - + /* SMTP mailer, "smtp://" */ @@ -114,2 +116,3 @@ extern record_t sendmail_record; list_append (bookie, maildir_record);\ + list_append (bookie, nntp_record);\ } while (0) @@ -130,4 +133,5 @@ extern record_t sendmail_record; list_append (bookie, imap_record);\ + list_append (bookie, nntp_record);\ } while (0) - + #define mu_register_all_mailer_formats() do {\ @@ -143,3 +147,3 @@ extern record_t sendmail_record; } while (0) - + #ifdef __cplusplus |