[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Mailutils branch, master, updated. release-2.2-652-gae06384
From: |
Sergey Poznyakoff |
Subject: |
[SCM] GNU Mailutils branch, master, updated. release-2.2-652-gae06384 |
Date: |
Wed, 03 Apr 2013 10:32:50 +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=ae06384d11d4b1f6ca576630f833ec2f32e6b05a
The branch, master has been updated
via ae06384d11d4b1f6ca576630f833ec2f32e6b05a (commit)
from 8fcdf7455d1948df3c6ed48cfe10a32d393742dd (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 ae06384d11d4b1f6ca576630f833ec2f32e6b05a
Author: Sergey Poznyakoff <address@hidden>
Date: Wed Apr 3 13:33:23 2013 +0300
Add support for Unseen-Sequence in inc.
* mh/inc.c (main): Append the numbers of incorporated messages to
Unseen-Sequence, if defined in .mh_profile.
-----------------------------------------------------------------------
Summary of changes:
mh/inc.c | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/mh/inc.c b/mh/inc.c
index 16e1206..a07ddd1 100644
--- a/mh/inc.c
+++ b/mh/inc.c
@@ -351,7 +351,7 @@ incmbx (void *item, void *data)
mh_audit_close (audit_fp);
audit_fp = NULL;
}
-
+
mu_mailbox_close (input);
mu_mailbox_destroy (&input);
@@ -365,7 +365,9 @@ main (int argc, char **argv)
int rc;
int f_truncate = 0;
int f_changecur = 0;
-
+ size_t lastseen;
+ char *unseen_seq;
+
/* Native Language Support */
MU_APP_INIT_NLS ();
@@ -390,6 +392,7 @@ main (int argc, char **argv)
mu_strerror (errno));
exit (1);
}
+ lastseen = incdat.lastmsg + 1;
/* Fixup options */
if (!input_file_list)
@@ -403,12 +406,20 @@ main (int argc, char **argv)
incmbx (NULL, &incdat);
else
mu_list_foreach (input_file_list, incmbx, &incdat);
-
- if (!changecur)
+
+ unseen_seq = mh_global_profile_get ("Unseen-Sequence", NULL);
+ if (unseen_seq)
{
- mu_property_t prop = mh_mailbox_get_property (incdat.output);
- mu_property_invalidate (prop);
+ mu_msgset_t unseen;
+
+ mu_msgset_create (&unseen, NULL, MU_MSGSET_NUM);
+ mu_msgset_add_range (unseen, lastseen, incdat.lastmsg, MU_MSGSET_NUM);
+ mh_seq_add (incdat.output,
+ unseen_seq,
+ unseen, 0);
+ mu_msgset_free (unseen);
}
+
mh_global_save_state ();
mu_mailbox_close (incdat.output);
hooks/post-receive
--
GNU Mailutils
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Mailutils branch, master, updated. release-2.2-652-gae06384,
Sergey Poznyakoff <=