commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-2.2-384-g4c82a26


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-384-g4c82a26
Date: Mon, 29 Aug 2011 06:57:39 +0000

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=4c82a261bcfd422dba0a2ea68b4ea415b42c6217

The branch, master has been updated
       via  4c82a261bcfd422dba0a2ea68b4ea415b42c6217 (commit)
       via  495b82090be28e7b1a2904a3346776576dcab0d1 (commit)
      from  ab2982d891ee8b788ec464dadedf8657c753735a (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 4c82a261bcfd422dba0a2ea68b4ea415b42c6217
Author: Sergey Poznyakoff <address@hidden>
Date:   Mon Aug 29 09:57:00 2011 +0300

    Minor fix
    
    * libmailutils/stream/message_stream.c (_message_open): Return
    MU_ERR_BAD_822_FORMAT if the input is not a valid RFC822.

commit 495b82090be28e7b1a2904a3346776576dcab0d1
Author: Sergey Poznyakoff <address@hidden>
Date:   Sun Aug 28 23:58:42 2011 +0300

    Minor fix.
    
    * libmailutils/stream/fltstream.c: Implement shutdown method.

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

Summary of changes:
 libmailutils/stream/fltstream.c      |    8 ++++++++
 libmailutils/stream/message_stream.c |    8 +-------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/libmailutils/stream/fltstream.c b/libmailutils/stream/fltstream.c
index 3477d62..ef5f2ba 100644
--- a/libmailutils/stream/fltstream.c
+++ b/libmailutils/stream/fltstream.c
@@ -446,6 +446,13 @@ filter_ctl (struct _mu_stream *stream, int code, int 
opcode, void *ptr)
   return 0;
 }
 
+static int
+filter_shutdown (struct _mu_stream *str, int how)
+{
+  struct _mu_filter_stream *fs = (struct _mu_filter_stream *)str;
+  return mu_stream_shutdown (fs->transport, how);
+}
+
 static const char *
 filter_error_string (struct _mu_stream *stream, int rc)
 {
@@ -576,6 +583,7 @@ mu_filter_stream_create (mu_stream_t *pflt,
   fs->stream.done = filter_done;
   if (flags & MU_STREAM_SEEK)
     fs->stream.seek = filter_seek;
+  fs->stream.shutdown = filter_shutdown;
   fs->stream.ctl = filter_ctl;
   fs->stream.wait = filter_wait;
   fs->stream.error_string = filter_error_string;
diff --git a/libmailutils/stream/message_stream.c 
b/libmailutils/stream/message_stream.c
index 2dd2f02..f0c5f80 100644
--- a/libmailutils/stream/message_stream.c
+++ b/libmailutils/stream/message_stream.c
@@ -230,13 +230,7 @@ _message_open (mu_stream_t stream)
                  offset += len;
                  continue;
                }
-             rc = mu_stream_seek (transport, - (mu_off_t) len,
-                                  MU_SEEK_CUR, &offset);
-             if (rc)
-               return rc;
-             str->mark_offset = offset;
-             str->mark_length = 0;
-             break;
+             return MU_ERR_BAD_822_FORMAT;
            }
          has_headers = 1;
          if (!env_from || !env_date)


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]