[SCM] GNU Mailutils branch, stream-cleanup, updated. rel-2_1-115-g96fb7b6

"Sergey Poznyakoff" <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=96fb7b6c2142e6da7ea4c56923c6289b1bfd244e

The branch, stream-cleanup has been updated
       via  96fb7b6c2142e6da7ea4c56923c6289b1bfd244e (commit)
      from  fbffe40a9758e084a98710e70f4c7b703cee315a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 96fb7b6c2142e6da7ea4c56923c6289b1bfd244e
Author: Sergey Poznyakoff <[email protected]>
Date:   Fri Sep 3 01:15:00 2010 +0300

    Minor change.
    
    * pop3d/extra.c (pop3d_setio): Use the canonic name of the CRLF
    filter, instead of the legacy "rfc822".
    * imap4d/fetch.c: Likewise.
    * imap4d/util.c: Likewise.

-----------------------------------------------------------------------

Summary of changes:
 imap4d/fetch.c |    2 +-
 imap4d/util.c  |    4 ++--
 pop3d/extra.c  |    7 ++++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/imap4d/fetch.c b/imap4d/fetch.c
index 7ada8fd..958703c 100644
--- a/imap4d/fetch.c
+++ b/imap4d/fetch.c
@@ -692,7 +692,7 @@ fetch_io (mu_stream_t stream, size_t start, size_t size, size_t max)
   
   size_t n = 0;
 
-  mu_filter_create (&rfc, stream, "rfc822", MU_FILTER_ENCODE,
+  mu_filter_create (&rfc, stream, "CRLF", MU_FILTER_ENCODE,
 		    MU_STREAM_READ|MU_STREAM_SEEK);
   
   if (start == 0 && size == (size_t) -1)
diff --git a/imap4d/util.c b/imap4d/util.c
index e6d828a..11cc49d 100644
--- a/imap4d/util.c
+++ b/imap4d/util.c
@@ -816,14 +816,14 @@ util_setio (FILE *in, FILE *out)
   if (mu_stdio_stream_create (&tmp, fileno (in), 0))
     imap4d_bye (ERR_NO_IFILE);
   mu_stream_set_buffer (tmp, mu_buffer_line, 1024);
-  mu_filter_create (&istream, tmp, "rfc822", MU_FILTER_DECODE,
+  mu_filter_create (&istream, tmp, "CRLF", MU_FILTER_DECODE,
                     MU_STREAM_READ | MU_STREAM_AUTOCLOSE);
   mu_stream_set_buffer (istream, mu_buffer_line, 1024);
   
   if (mu_stdio_stream_create (&tmp, fileno (out), 0))
     imap4d_bye (ERR_NO_OFILE);
   mu_stream_set_buffer (tmp, mu_buffer_line, 1024);
-  mu_filter_create (&ostream, tmp, "rfc822", MU_FILTER_ENCODE,
+  mu_filter_create (&ostream, tmp, "CRLF", MU_FILTER_ENCODE,
 		    MU_STREAM_WRITE | MU_STREAM_AUTOCLOSE);
   mu_stream_set_buffer (ostream, mu_buffer_line, 1024);
 }
diff --git a/pop3d/extra.c b/pop3d/extra.c
index c34e05c..52bb220 100644
--- a/pop3d/extra.c
+++ b/pop3d/extra.c
@@ -151,11 +151,12 @@ pop3d_setio (FILE *in, FILE *out)
 
   /* Convert all writes to CRLF form.
      There is no need to convert reads, as the code ignores extra \r anyway.
-     This also installs an extra full buffering, which is needed for TLS
-     code (see below). */
-  if (mu_filter_create (&iostream, str, "rfc822", MU_FILTER_ENCODE,
+  */
+  if (mu_filter_create (&iostream, str, "CRLF", MU_FILTER_ENCODE,
 			MU_STREAM_WRITE | MU_STREAM_RDTHRU))
     pop3d_abquit (ERR_NO_IFILE);
+  /* Change buffering scheme: filter streams are fully buffered by default. */
+  mu_stream_set_buffer (iostream, mu_buffer_line, 1024);
   
   if (pop3d_transcript)
     {


hooks/post-receive
-- 
GNU Mailutils
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.