commit-mailutils
[Top][All Lists]
Advanced

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

[SCM] GNU Mailutils branch, master, updated. rel-2_1-37-gbb3a903


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. rel-2_1-37-gbb3a903
Date: Wed, 17 Feb 2010 21:20:14 +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=bb3a903e6c9e590ba8397219255d399c99621042

The branch, master has been updated
       via  bb3a903e6c9e590ba8397219255d399c99621042 (commit)
      from  f9766e22019f9d1fa51351b339b75137450be73f (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 bb3a903e6c9e590ba8397219255d399c99621042
Author: Sergey Poznyakoff <address@hidden>
Date:   Wed Feb 17 23:19:21 2010 +0200

    Bugfix
    
    * libproto/mbox/mbox.c (mbox_append_message): Fix qid calculation.

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

Summary of changes:
 libproto/mbox/mbox.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/libproto/mbox/mbox.c b/libproto/mbox/mbox.c
index d073c02..826098d 100644
--- a/libproto/mbox/mbox.c
+++ b/libproto/mbox/mbox.c
@@ -1263,7 +1263,7 @@ mbox_append_message (mu_mailbox_t mailbox, mu_message_t 
msg)
 {
   int status = 0;
   mbox_data_t mud = mailbox->data;
-  mu_off_t size;
+  mu_off_t qid;
   
   if (msg == NULL || mud == NULL)
     return EINVAL;
@@ -1284,9 +1284,11 @@ mbox_append_message (mu_mailbox_t mailbox, mu_message_t 
msg)
 
     default:
       {
+       mu_off_t size;
        /* Move to the end of the file, not necesary if _APPEND mode.  */
        if ((status = mu_stream_size (mailbox->stream, &size)) != 0
-           || (status = mbox_append_message0 (mailbox, msg,
+           || (qid = size,
+               status = mbox_append_message0 (mailbox, msg,
                                               &size, 0, 0)) != 0)
          {
            if (status != EAGAIN)
@@ -1300,7 +1302,7 @@ mbox_append_message (mu_mailbox_t mailbox, mu_message_t 
msg)
   if (mailbox->observable)
     {
       char *buf = NULL;
-      mu_asprintf (&buf, "%lu", (unsigned long) size);
+      mu_asprintf (&buf, "%lu", (unsigned long) qid);
       mu_observable_notify (mailbox->observable, MU_EVT_MESSAGE_APPEND, buf);
       free (buf);
     }


hooks/post-receive
-- 
GNU Mailutils




reply via email to

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