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-3.1.1-12-g48bfe14


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-3.1.1-12-g48bfe14
Date: Wed, 21 Dec 2016 16:25:02 +0000 (UTC)

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=48bfe14edfa7612b2aea89f408ffa7952e88940a

The branch, master has been updated
       via  48bfe14edfa7612b2aea89f408ffa7952e88940a (commit)
      from  4323d352150c7af79b9f1699d2130c4cae1e4b88 (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 48bfe14edfa7612b2aea89f408ffa7952e88940a
Author: Sergey Poznyakoff <address@hidden>
Date:   Wed Dec 21 18:20:33 2016 +0200

    Bugfixes in imap client code
    
    * libproto/imap/mbox.c (_imap_message_unseen): Fix type of
    pointer returned by mu_list_head
    * libproto/imap/resproc.c (parse_response_code): Fix parser

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

Summary of changes:
 libproto/imap/mbox.c    |    4 ++--
 libproto/imap/resproc.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libproto/imap/mbox.c b/libproto/imap/mbox.c
index 03c077c..b775b14 100644
--- a/libproto/imap/mbox.c
+++ b/libproto/imap/mbox.c
@@ -875,10 +875,10 @@ _imap_message_unseen (mu_mailbox_t mbox, size_t *pn)
       rc = mu_msgset_get_list (msgset, &list);
       if (rc == 0)
        {
-         struct mu_msgrange r;
+         struct mu_msgrange *r;
          rc = mu_list_head (list, (void **) &r);
          if (rc == 0)
-           *pn = r.msg_beg;
+           *pn = r->msg_beg;
        }
       mu_msgset_free (msgset);
       return rc;
diff --git a/libproto/imap/resproc.c b/libproto/imap/resproc.c
index 93e971c..e6755bc 100644
--- a/libproto/imap/resproc.c
+++ b/libproto/imap/resproc.c
@@ -72,7 +72,7 @@ parse_response_code (mu_imap_t imap, mu_list_t resp)
       if (mu_kwd_xlat_name (mu_imap_response_codes, arg->v.string, &rcode))
        return -1;
       
-      arg = _mu_imap_list_at (resp, 3);
+      arg = _mu_imap_list_at (resp, 4);
       if (!arg || !_mu_imap_list_element_is_string (arg, "]"))
        return -1;
     }


hooks/post-receive
-- 
GNU Mailutils



reply via email to

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