[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mailutils include/mailutils/auth.h mailbox/body...
From: |
Alain Magloire |
Subject: |
mailutils include/mailutils/auth.h mailbox/body... |
Date: |
Sat, 17 Nov 2001 14:11:26 -0500 |
CVSROOT: /home/cvs
Module name: mailutils
Changes by: Alain Magloire <address@hidden> 01/11/17 14:11:25
Modified files:
include/mailutils: auth.h
mailbox : body.c folder_imap.c header.c memory_stream.c
message.c wicket.c
mailbox/include: header0.h
Log message:
After exchange with Sam Roberts, it should possible to
set a stream on the message and have the message_t do
the rfc822 parsing.
{
message_t mesg = NULL;
header_t header = NULL;
stream_t stream = NULL;
char buffer[512];
off_t off = 0;
size_t n = 0;
message_create (mesg, NULL);
file_stream_crete (&stream, "/home/user/mh/mesg_1");
message_set_stream (mesg, stream, NULL);
stream = NULL;
message_get_header (mesg, &header);
header_get_stream (header, &stream);
while (stream_readline (stream, buffer, sizeof buffer, off, &n) == 0
&& n > 0) {
printf ("%s", buffer);
off += n;
}
message_destroy (&mesg, NULL);
}
* mailbox/message.c (message_header_fill): New
function implements a header if there was a stream set on the message.
(message_body_read): Implements the stream_read of body_t of
a message if there were a stream set.
(message_is_modified): Check if an object was set to message_t
and flag it as modified.
(message_get_body): If a stream was set on the message create a
temporary stream for the body.
(message_set_body): Set the message modified.
(message_set_header): Set the message modified.
(message_set_envelope): Set the message modified.
(message_set_attribute): Set the message modified.
* mailbox/wicket.c (wicket_destroy): return void.
* include/mailutils/auth.h: wicket_destroy ()
should return void.
* mailbox/body.c (body_is_modified): Implemented.
(body_clear_modified): Implemented.
* mailbox/body.c (body_is_modified): Implemented.
(body_clear_modified): Implemented.
(_body_get_size0): New function.
(_body_get_lines0): New function.
(body_get_lines): Call _body_get_lines0().
(body_get_size): Call _body_get_size0().
(body_lines): Fall back on the stream and iterate
the entire stream to find the line numbers.
(body_size): Fall back on the stream for the size.
* mailbox/folder_imap.c: Check if memory_stream_create()
succeed and bailout if not.
* mailbox/header.c (header_destroy): Free header->mstream.
(fill_blurb): Remove redundant code, header_free_cache was
doing the same. Implement the code in term of a memory
stream to hold the temporary header blurb.
(header_write): Implemented.
* mailbox/memory_stream.c (_memory_read): Cast the offset to size_t
(_memory_readline): Cast the offset to size_t.
(_memory_write): Cast the offset to size_t.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/include/mailutils/auth.h.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/body.c.diff?cvsroot=OldCVS&tr1=1.21&tr2=1.22&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/folder_imap.c.diff?cvsroot=OldCVS&tr1=1.41&tr2=1.42&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/header.c.diff?cvsroot=OldCVS&tr1=1.56&tr2=1.57&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/memory_stream.c.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/message.c.diff?cvsroot=OldCVS&tr1=1.55&tr2=1.56&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/wicket.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox/include/header0.h.diff?cvsroot=OldCVS&tr1=1.9&tr2=1.10&r1=text&r2=text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mailutils include/mailutils/auth.h mailbox/body...,
Alain Magloire <=