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=8b2f66dd690b7d45e92dbeb5e2900bca0b3d1a16 The branch, master has been updated via 8b2f66dd690b7d45e92dbeb5e2900bca0b3d1a16 (commit) from 74b2971a50804a51f83bea8c49648fe9d2b344c4 (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 8b2f66dd690b7d45e92dbeb5e2900bca0b3d1a16 Author: Sergey Poznyakoff <g...@gnu.org.ua> Date: Wed Jun 15 11:01:05 2016 +0300 Revert changes to msgset test utility. The changes would be nice, if it weren't for the fact that libproto is not yet built by the time libmailutils/tests are compiled. ----------------------------------------------------------------------- Summary of changes: libmailutils/tests/Makefile.am | 6 ------ libmailutils/tests/msgset.c | 21 +++++++-------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/libmailutils/tests/Makefile.am b/libmailutils/tests/Makefile.am index 63049b8..699d496 100644 --- a/libmailutils/tests/Makefile.am +++ b/libmailutils/tests/Makefile.am @@ -69,12 +69,6 @@ noinst_PROGRAMS = \ LDADD = ${MU_LIB_MAILUTILS} -msgset_LDADD = \ - ${MU_LIB_MBOX}\ - ${MU_LIB_MH}\ - ${MU_LIB_MAILDIR}\ - ${MU_LIB_MAILUTILS} - EXTRA_DIST += Encode Decode Wicketfile ## ------------ ## diff --git a/libmailutils/tests/msgset.c b/libmailutils/tests/msgset.c index f91e139..c93c07a 100644 --- a/libmailutils/tests/msgset.c +++ b/libmailutils/tests/msgset.c @@ -53,16 +53,16 @@ parse_msgrange (char *arg, struct mu_msgrange *range) } mu_msgset_t -parse_msgset (mu_mailbox_t mbox, const char *arg) +parse_msgset (const char *arg) { int rc; mu_msgset_t msgset; char *end; - MU_ASSERT (mu_msgset_create (&msgset, mbox, MU_MSGSET_NUM)); + MU_ASSERT (mu_msgset_create (&msgset, NULL, MU_MSGSET_NUM)); if (arg) { - rc = mu_msgset_parse_imap (msgset, MU_MSGSET_UID, arg, &end); + rc = mu_msgset_parse_imap (msgset, MU_MSGSET_NUM, arg, &end); if (rc) { mu_error ("mu_msgset_parse_imap: %s near %s", @@ -79,33 +79,26 @@ main (int argc, char **argv) int i; char *msgset_string = NULL; mu_msgset_t msgset; - mu_mailbox_t mbox = NULL; mu_set_program_name (argv[0]); - mu_register_local_mbox_formats (); for (i = 1; i < argc; i++) { char *arg = argv[i]; if (strcmp (arg, "-h") == 0 || strcmp (arg, "-help") == 0) { - mu_printf ("usage: %s [-mailbox=PATH] [-msgset=SET] [-add=X[:Y]] [-del=X[:Y]] " + mu_printf ("usage: %s [-msgset=SET] [-add=X[:Y]] [-del=X[:Y]] " "[-addset=SET] [-delset=SET] ...\n", mu_program_name); return 0; } else if (strncmp (arg, "-msgset=", 8) == 0) msgset_string = arg + 8; - else if (strncmp (arg, "-mailbox=", 9) == 0) - { - MU_ASSERT (mu_mailbox_create_default (&mbox, arg + 9)); - MU_ASSERT (mu_mailbox_open (mbox, MU_STREAM_READ)); - } else break; } - msgset = parse_msgset (mbox, msgset_string); + msgset = parse_msgset (msgset_string); for (; i < argc; i++) { @@ -126,7 +119,7 @@ main (int argc, char **argv) } else if (strncmp (arg, "-addset=", 8) == 0) { - mu_msgset_t tset = parse_msgset (mbox, arg + 8); + mu_msgset_t tset = parse_msgset (arg + 8); if (!msgset) msgset = tset; else @@ -137,7 +130,7 @@ main (int argc, char **argv) } else if (strncmp (arg, "-subset=", 8) == 0) { - mu_msgset_t tset = parse_msgset (mbox, arg + 8); + mu_msgset_t tset = parse_msgset (arg + 8); if (!msgset) { mu_error ("no initial message set"); hooks/post-receive -- GNU Mailutils _______________________________________________ Commit-mailutils mailing list Commit-mailutils@gnu.org https://lists.gnu.org/mailman/listinfo/commit-mailutils