Commit 241c78af 241c78af83d5ffda185cc00f0561bc79a918789f by Alain Magloire

README-alpha : Tell them to run autogen.sh, the last person trying

to configure from CVS wasted his time and mine.

doc/auth.texi doc/body.texi doc/headers.texi doc/mailbox.texi doc/message.texi
doc/sfrom.c.texi doc/stream.texi : Very shy tentative to get some docs.
1 parent 4290bdcd
This is the GNU mailutils package.
This is a *pre-release* version, and not ready for production use yet. If you
are taking source from CVS, you will need to have libtool, automake, and autoconf
installed to help contribute. See the file 'INSTALL' for (generic) installation
instructions.
are taking source from CVS, you will need to have libtool, automake, and
autoconf installed to help contribute. The script autogen.sh is provided to
help autoconfigure mailutils from the cvs src. See the file 'INSTALL' for
(generic) installation instructions.
Report bugs to <bug-mailutils@gnu.org>
......
......@@ -12,21 +12,12 @@ if not set, this function can be override by a custom method.
@deftypefun int auth_prologue (auth_t @var{auth})
@end deftypefun
@deftypefun int auth_set_prologue (auth_t @var{auth}, int (*@var{_prologue})(auth_t), void *@var{owner})
@end deftypefun
@deftypefun int auth_authenticate (auth_t @var{auth}, char **@var{user}, char **@var{passwd})
@end deftypefun
@deftypefun int auth_set_authenticate (auth_t auth, int (*@var{_authenticate}) (auth_t, char **, char **), void *@var{owner})
@end deftypefun
@deftypefun int auth_epilogue (auth_t @var{auth})
@end deftypefun
@deftypefun int auth_set_epilogue (auth_t @var{auth}, int (*@var{_epilogue})(auth_t), void *@var{owner})
@end deftypefun
A simple example of an authenticate function:
@example
#include <mailutils/auth.h>
......
......@@ -23,11 +23,5 @@ The resources allocate are release.
@deftypefun int body_size (body_t @var{body}, size_t*@var{psize})
@end deftypefun
@deftypefun int body_set_size (body_t @var{body}, int (*@var{_size})(body_t, size_t*), void *@var{owner})
@end deftypefun
@deftypefun int body_lines (body_t @var{body}, size_t *@var{plines})
@end deftypefun
@deftypefun int body_set_lines (body_t @var{body}, int (*@var{_lines})(body_t, size_t*), void *@var{owner})
@end deftypefun
......
......@@ -77,9 +77,6 @@ Value of field-name @var{fn} is returned in buffer @var{fv} of size @var{len}.
The number of bytes written is put in @var{n}.
@end deftypefun
@deftypefun int header_set_get_value (header_t @var{hdr}, int (*@var{_get_value}) (header_t, const char *, char *, size_t, size_t *), void *@var{owner})
@end deftypefun
@deftypefun int header_get_stream (header_t @var{hdr}, stream_t *@var{pstream})
@end deftypefun
......
......@@ -53,15 +53,9 @@ Return non-zero value if message is multi-part.
@deftypefun int message_get_num_parts (message_t @var{msg}, size_t *nparts)
@end deftypefun
@deftypefun int message_set_get_num_parts (message_t @var{msg}, size_t *nparts)
@end deftypefun
@deftypefun int message_get_part (message_t @var{msg}, size_t part, message_t *msg)
@end deftypefun
@deftypefun int message_set_get_part ((message_t @var{msg}, size_t part, message_t *msg)
@end deftypefun
@deftypefun int message_add_part (message_t @var{msg}, message_t @var{msg})
@end deftypefun
......
......@@ -18,6 +18,14 @@ main (int argc, const char **argv)
mail = (argc == 2) ? argv[1] : getenv ("MAIL");
/* Register the type of mailbox. IMAP4, POP3 and local format */
@{
list_t registrar;
registrar_get_list (&registrar);
list_append (registrar, imap_record);
list_append (registrar, path_record);
list_append (registrar, pop_record);
@}
status = mailbox_create (&mbox, mail, 0);
if (status != 0)
@{
......@@ -32,12 +40,7 @@ main (int argc, const char **argv)
exit (EXIT_FAILURE);
@}
status = mailbox_scan (mbox, &total);
if (status != 0)
@{
fprintf (stderr, "mailbox_scan: failed\n");
exit (EXIT_FAILURE);
@}
mailbox_messages_count (mbox, &total);
for (msgno = 1; msgno <= total; msgno++)
@{
......
......@@ -29,69 +29,36 @@ Stream is destroyed without checking for the owner.
@deftypefun void stream_destroy (stream_t *@var{pstream}, void *@var{owner})
@end deftypefun
@deftypefun int stream_set_destroy (stream_t @var{stream}, void (*@var{_destroy})(stream_t @var{stream}), void *@var{owner})
@end deftypefun
@deftypefun int stream_open (stream_t @var{stream}, const char *@var{name}, int@var{port}, int @var{flag})
@end deftypefun
@deftypefun int stream_set_open (stream_t @var{stream}, int (*@var{_open})(stream_t, const char *, int, int), void *@var{owner})
@end deftypefun
@deftypefun int stream_close (stream_t @var{stream})
@end deftypefun
@deftypefun int stream_set_close (stream_t @var{stream}, int (*@var{_close})(stream_t), void *@var{owner})
@end deftypefun
@deftypefun int stream_get_fd (stream_t @var{stream}, int *@var{pfd})
@end deftypefun
@deftypefun int stream_set_fd (stream_t @var{stream}, int (*@var{_get_fd})(stream_t, int *), void *@var{owner})
@end deftypefun
@deftypefun int stream_read (stream_t @var{stream}, char *@var{buffer}, size_t @var{buflen}, off_t @var{offset}, size_t *@var{pwriten})
@end deftypefun
@deftypefun int stream_set_read (stream_t @var{stream}, int (*@var{_read})(stream_t, char *, size_t, off_t, size_t *), void *@var{owner})
@end deftypefun
@deftypefun int stream_readline (stream_t @var{stream}, char *@var{buffer}, size_t @var{buflen}, off_t @var{offset}, size_t *@var{pwriten})
@end deftypefun
@deftypefun int stream_set_readline (stream_t @var{stream}, int (*@var{_readline})(stream_t, char *, size_t, off_t, size_t *), void *@var{owner})
@end deftypefun
@deftypefun int stream_size (stream_t @var{stream}, off_t *@var{psize})
@end deftypefun
@deftypefun int stream_set_size (stream_t @var{stream}, int (*@var{_size})(stream_t, off_t *), void *@var{owner})
@end deftypefun
@deftypefun int stream_truncate (stream_t @var{stream}, off_t @var{size})
@end deftypefun
@deftypefun int stream_set_truncate (stream_t @var{stream}, int (*@var{_truncate})(stream_t, off_t), void *@var{owner})
@end deftypefun
@deftypefun int stream_write (stream_t @var{stream}, const char *@var{buffer}, size_t @var{buflen}, off_t @var{offset}, size_t *@var{pwriten})
@end deftypefun
@deftypefun int stream_set_write (stream_t @var{stream}, int (*@var{_write})(stream_t, const char *, size_t, off_t, size_t *), void *@var{owner})
@end deftypefun
@deftypefun int stream_flush (stream_t @var{stream})
@end deftypefun
@deftypefun int stream_set_flush (stream_t @var{stream}, int (*@var{_flush})(stream_t), void *@var{owner})
@end deftypefun
@deftypefun int stream_get_flags (stream_t @var{stream}, int *@var{pflags})
@end deftypefun
@deftypefun int stream_set_flags (stream_t @var{stream}, int @var{flags}, void *@var{owner})
@end deftypefun
@deftypefun int stream_get_state (stream_t @var{stream}, int *@var{pstate})
@table @code
@item MU_STREAM_STATE_OPEN
......