[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] MH: message removal speedup
From: |
Sergey Poznyakoff |
Subject: |
[bug-mailutils] MH: message removal speedup |
Date: |
Mon, 01 Apr 2013 12:28:32 +0300 |
Hi,
To the attention of those who use MU MH 2.99.98: please try the attached
patch. It should speed up the message removal operations.
Regards,
Sergey
>From 796d9aef17c932732aa9fa79602f8955ac8f7454 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <address@hidden>
Date: Mon, 1 Apr 2013 12:15:58 +0300
Subject: [PATCH] Bugfix.
* libmailutils/base/amd.c (_amd_update_message): Return
immediately if the message is not modified. Always use
initialized value of flg.
---
libmailutils/base/amd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libmailutils/base/amd.c b/libmailutils/base/amd.c
index 8e563d2..b259270 100644
--- a/libmailutils/base/amd.c
+++ b/libmailutils/base/amd.c
@@ -1288,7 +1288,9 @@ _amd_update_message (struct _amd_data *amd, struct
_amd_message *mhm,
flg = mu_message_is_modified (mhm->message);
else if (mhm->attr_flags & MU_ATTRIBUTE_MODIFIED)
flg = MU_MSG_ATTRIBUTE_MODIFIED;
-
+ else
+ return 0;
+
if (!flg)
return 0;
--
1.6.0.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-mailutils] MH: message removal speedup,
Sergey Poznyakoff <=