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-546-g22ec491


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-546-g22ec491
Date: Thu, 22 Dec 2011 23:11:37 +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=22ec4913c13137b497c6d6ee7f433d0b94e059cd

The branch, master has been updated
       via  22ec4913c13137b497c6d6ee7f433d0b94e059cd (commit)
      from  09be781f34bd43f47f65eee4ce757e8c9ab742e6 (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 22ec4913c13137b497c6d6ee7f433d0b94e059cd
Author: Sergey Poznyakoff <address@hidden>
Date:   Fri Dec 23 01:10:58 2011 +0200

    Bugfixes in imap client.
    
    * libproto/imap/fetch.c (_fetch_fold): Fix parsing of BODY[].
    (_mu_imap_parse_fetch_response): Fix return value.

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

Summary of changes:
 libproto/imap/fetch.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/libproto/imap/fetch.c b/libproto/imap/fetch.c
index e448041..aa5c090 100644
--- a/libproto/imap/fetch.c
+++ b/libproto/imap/fetch.c
@@ -1052,6 +1052,12 @@ _fetch_fold (void *item, void *data)
        }
       else if (strncmp (elt->v.string, "HEADER.FIELDS", 13) == 0)
        env->state = resp_body_hlist;
+      else if (strcmp (elt->v.string, "]") == 0)
+       {
+         env->section = NULL;
+         env->state = resp_val;
+         break;
+       }
       else
        env->state = resp_body_end;
       env->section = elt->v.string;
@@ -1109,5 +1115,5 @@ _mu_imap_parse_fetch_response (mu_list_t input, mu_list_t 
*result_list)
   else
     *result_list = result;
   mu_list_destroy (&env.hlist);
-  return status;
+  return env.status;
 }


hooks/post-receive
-- 
GNU Mailutils



reply via email to

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