summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog37
-rw-r--r--configure.ac11
-rw-r--r--examples/Makefile.am1
-rw-r--r--frm/Makefile.am1
-rw-r--r--from/Makefile.am1
-rw-r--r--guimb/Makefile.am1
-rw-r--r--imap4d/Makefile.am3
-rw-r--r--include/mailutils/nntp.h3
-rw-r--r--include/mailutils/pop3.h2
-rw-r--r--include/mailutils/registrar.h14
-rw-r--r--mail.local/Makefile.am2
-rw-r--r--mail/Makefile.am1
-rw-r--r--messages/Makefile.am1
-rw-r--r--movemail/Makefile.am1
-rw-r--r--pop3d/Makefile.am3
-rw-r--r--readmsg/Makefile.am1
-rw-r--r--sieve/Makefile.am1
17 files changed, 67 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index ff5a07096..bb42c44eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,40 @@
-2004-07-03 Sergey Poznyakoff
+2004-07-05 Alain Magloire
+
+ * configure.ac: enable NNTP support.
+
+ * example/Makefile.am: Enable NNTP.
+ * frm/Makefile.am: Enable NNTP.
+ * from/Makefile.am: Enable NNTP.
+ * messages/Makefile.am: Enable NNTP.
+ * readmsg/Makefile.am: Enable NNTP.
+ * guimb/Makefile.am: Enable NNTP.
+ * mail/Makefile.am: Enable NNTP.
+ * sieve/Makefile.am: Enable NNTP.
+
+ * imap4d/Makefile.am: Put @AUTHLIBS@ before libmailbox.a (failed on cygwin if not).
+ * pop3d/Makefile.am: Put @AUTHLIBS@ before libmailbox.a (failed on cygwin if not).
+ * mail.local/Makefile.am: Put @AUTHLIBS@ before libmailbox.a (failed on cygwin if not).
+
+ * mailbox/stream.c (stream_wait): Bugfix. If we buffer return true if the cache still
+ have data.
+
+ * include/mailutils/nntp.h: Define the default NNTP port number.
+ * include/mailutils/pop3.h: Define the default POP3 port number.
+ * include/mailutils/registrar.h: Enable NNTP.
+
+ * mailbox/nntp/folder.c: New file.
+ * mailbox/nntp/mbox.c: New file.
+ * mailbox/nntp/url.c: New file.
+ * mailbox/nntp/Makefile.am: Updated.
+
+2004-07-03 Sergey Poznyakoff
* mailbox/list.c (list_data_dup): Bugfix: *ptr was not assigned.
* doc/texinfo/muint.texi: Automake does not allow two independent
texi sources to include the same file (version.texi, in this
case). What a stupid lossage! However it handles all files whose
name matches "vers*.texi" as version.texi, which allows to
- override the bug: include vers-muint.texi instead of version.texi.
+ override the bug: include vers-muint.texi instead of version.texi.
2004-07-01 Sergey Poznyakoff
@@ -25,7 +54,7 @@
* examples/nntpclient.c: Fixed printf formats
(com_newgroups,com_newnews): Variable declarations are only allowed
before the statements.
-
+
* mailbox/nntp/nntp_article.c: Fixed printf formats
* mailbox/nntp/nntp_body.c: Likewise
* mailbox/nntp/nntp_head.c: Likewise
@@ -35,7 +64,7 @@
* mailbox/pop/pop3_iterator.c (pop3_itr_getitem): Changed
declaration
-
+
2004-06-30 Alain Magloire
* configure.ac: Add nntp directory.
diff --git a/configure.ac b/configure.ac
index c335c9478..072beeecc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
dnl Configuration for GNU Mailutils -- a suite of utilities for electronic mail
dnl
dnl Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
-dnl
+dnl
dnl GNU Mailutils is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
@@ -262,7 +262,7 @@ AC_CHECK_HEADERS(errno.h fcntl.h inttypes.h libgen.h limits.h\
malloc.h obstack.h paths.h shadow.h socket.h sys/socket.h stdarg.h stdio.h\
stdlib.h string.h strings.h sys/file.h sysexits.h syslog.h termcap.h\
termios.h termio.h sgtty.h utmp.h utmpx.h unistd.h)
-
+
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
@@ -426,7 +426,7 @@ AC_ARG_WITH([postgres],
AH_TEMPLATE(USE_SQL,[Enables SQL support])
AH_TEMPLATE(HAVE_MYSQL,[Define if you have libmysql])
-AH_TEMPLATE(HAVE_PGSQL,[Define if you have libpq])
+AH_TEMPLATE(HAVE_PGSQL,[Define if you have libpq])
if test x"$use_mysql" = x"yes" -a x"$use_postgres" = x"yes"; then
AC_MSG_ERROR(Use either --with-mysql or --with-postgres, not both)
@@ -471,6 +471,7 @@ AC_ARG_WITH([virtual-pwddir],
MU_ENABLE_SUPPORT(imap)
MU_ENABLE_SUPPORT(pop)
+MU_ENABLE_SUPPORT(nntp)
AC_SUBST(BUILD_SMTP_PROGRAMS)
AC_SUBST(RUN_SMTP_DEJATOOL)
@@ -590,12 +591,12 @@ if test x"$usereadline" = x"yes"; then
dnl FIXME This should only link in the curses libraries if it's
dnl really needed!
-
+
saved_LIBS=$LIBS
LIBS="$LIBS $CURSES_LIBS"
AC_CHECK_LIB(readline, readline, mu_have_readline=yes)
LIBS=$saved_LIBS
-
+
if test x"$mu_have_readline" = x"yes"; then
AC_CHECK_HEADERS(readline/readline.h,
AC_DEFINE(WITH_READLINE,1,[Enable use of readline]))
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 34c65002e..d595bcecc 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -68,6 +68,7 @@ sfrom_LDADD =\
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/frm/Makefile.am b/frm/Makefile.am
index bcf518efe..b485af499 100644
--- a/frm/Makefile.am
+++ b/frm/Makefile.am
@@ -27,6 +27,7 @@ frm_LDADD = \
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/from/Makefile.am b/from/Makefile.am
index 3aa5f7dc9..320ec2967 100644
--- a/from/Makefile.am
+++ b/from/Makefile.am
@@ -26,6 +26,7 @@ from_LDADD = \
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/guimb/Makefile.am b/guimb/Makefile.am
index d5c9b90d8..7b51bf527 100644
--- a/guimb/Makefile.am
+++ b/guimb/Makefile.am
@@ -31,6 +31,7 @@ guimb_LDADD = \
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/imap4d/Makefile.am b/imap4d/Makefile.am
index 458c53679..0ebb58f6c 100644
--- a/imap4d/Makefile.am
+++ b/imap4d/Makefile.am
@@ -62,12 +62,13 @@ imap4d_SOURCES = \
imap4d_LDADD = \
@IMAP_AUTHOBJS@\
+ @AUTHLIBS@ \
../mailbox/mbox/libmu_mbox.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
../lib/libmailutils.la\
- @AUTHLIBS@ @SERV_AUTHLIBS@ @MU_COMMON_LIBRARIES@
+ @SERV_AUTHLIBS@ @MU_COMMON_LIBRARIES@
## This kludge is necessary to correctly establish imap4d -> IMAP_AUTHOBJS
## dependency. Think about better approach --gray
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
diff --git a/mail.local/Makefile.am b/mail.local/Makefile.am
index 37c84b3f6..58a2c4128 100644
--- a/mail.local/Makefile.am
+++ b/mail.local/Makefile.am
@@ -26,9 +26,9 @@ mail_local_SOURCES = main.c mailquota.c script.c mail.local.h
mail_local_LDADD = \
@LIBMU_SCM@ @GUILE_LIBS@\
@LIBMU_SCM_DEPS@\
+ @AUTHLIBS@\
../mailbox/mbox/libmu_mbox.la \
../mailbox/libmailbox.la \
- @AUTHLIBS@\
../libsieve/libsieve.la\
../lib/libmailutils.la @MU_COMMON_LIBRARIES@
diff --git a/mail/Makefile.am b/mail/Makefile.am
index f5c92287c..92b4af5e3 100644
--- a/mail/Makefile.am
+++ b/mail/Makefile.am
@@ -27,6 +27,7 @@ mail_LDADD = \
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/messages/Makefile.am b/messages/Makefile.am
index 847247e6f..50fa497d0 100644
--- a/messages/Makefile.am
+++ b/messages/Makefile.am
@@ -27,6 +27,7 @@ messages_LDADD =\
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/movemail/Makefile.am b/movemail/Makefile.am
index 3b51db231..6d5a0632b 100644
--- a/movemail/Makefile.am
+++ b/movemail/Makefile.am
@@ -24,6 +24,7 @@ movemail_LDADD = \
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/pop3d/Makefile.am b/pop3d/Makefile.am
index c950b54c5..6afdf1c15 100644
--- a/pop3d/Makefile.am
+++ b/pop3d/Makefile.am
@@ -29,12 +29,13 @@ pop3d_SOURCES = apop.c auth.c capa.c dele.c extra.c pop3d.c pop3d.h \
uidl.c user.c logindelay.c expire.c
pop3d_LDADD = \
+ @AUTHLIBS@ \
../mailbox/mbox/libmu_mbox.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
../lib/libmailutils.la\
- @AUTHLIBS@ @MU_COMMON_LIBRARIES@
+ @MU_COMMON_LIBRARIES@
popauth_SOURCES = popauth.c
popauth_LDADD = ../mailbox/libmailbox.la ../lib/libmailutils.la @MU_COMMON_LIBRARIES@
diff --git a/readmsg/Makefile.am b/readmsg/Makefile.am
index b4f3b8f27..23836a7c1 100644
--- a/readmsg/Makefile.am
+++ b/readmsg/Makefile.am
@@ -28,6 +28,7 @@ readmsg_LDADD =\
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\
diff --git a/sieve/Makefile.am b/sieve/Makefile.am
index c783e74cd..5703e4bf6 100644
--- a/sieve/Makefile.am
+++ b/sieve/Makefile.am
@@ -27,6 +27,7 @@ sieve_LDADD =\
../mailbox/mbox/libmu_mbox.la\
../mailbox/imap/libmu_imap.la\
../mailbox/pop/libmu_pop.la\
+ ../mailbox/nntp/libmu_nntp.la\
../mailbox/mh/libmu_mh.la\
../mailbox/maildir/libmu_maildir.la\
../mailbox/libmailbox.la\

Return to:

Send suggestions and report system problems to the System administrator.