summaryrefslogtreecommitdiffabout
path: root/mu/libexec/imap.c
authorSergey Poznyakoff <gray@gnu.org.ua>2017-06-19 21:39:18 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2017-06-19 21:39:18 (GMT)
commit455554b8b04054e1db41b72426f7ee9d8579acf5 (patch) (side-by-side diff)
tree8b6ff512af954dcf4c6cc1525b58b11e35788d1d /mu/libexec/imap.c
parent1ddc81a18a3f1491494ff7ec3a21e1bbcabf265a (diff)
downloadmailutils-455554b8b04054e1db41b72426f7ee9d8579acf5.tar.gz
mailutils-455554b8b04054e1db41b72426f7ee9d8579acf5.tar.bz2
API for formatting message sets on output
* libmailutils/msgset/print.c (mu_msgset_formats): New global. (mu_stream_msgset_format): New function. * include/mailutils/msgset.h (mu_msgset_format): New struct. (mu_msgset_fmt_imap, mu_msgset_fmt_mh): New defines. (MU_MSGSET_IGNORE_TRANSERR): New flag (mu_msgset_copy, mu_msgset_translate): New protos. (mu_stream_msgset_format, mu_msgset_imap_print): New protos. (mu_msgset_print): Deprecate. * libmailutils/imapio/sendmsgset.c: Use mu_msgset_imap_print instead of mu_msgset_print. * mu/libexec/imap.c: Likewise. * libmailutils/msgset/Makefile.am: Add copy.c * libmailutils/msgset/add.c (mu_msgset_add_range): Translate if message set mode doesn't match the requested one. * libmailutils/msgset/sub.c (mu_msgset_sub_range): Likewise. * libmailutils/msgset/trans.c (_mu_msgset_translate_pair): Act according to the mode argument. (mu_msgset_translate): New function. * libmailutils/tests/msgset.c: New option -mh * mh/mh_sequence.c (write_sequence): Rewrite. * testsuite/msgset.c: Optionally translate uids to msgnums and vice-versa.
Diffstat (limited to 'mu/libexec/imap.c') (more/less context) (ignore whitespace changes)
-rw-r--r--mu/libexec/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mu/libexec/imap.c b/mu/libexec/imap.c
index a56af8c..37d494a 100644
--- a/mu/libexec/imap.c
+++ b/mu/libexec/imap.c
@@ -1100,7 +1100,7 @@ com_search (int argc, char **argv)
return 0;
}
mu_printf ("%lu matches:", (unsigned long) count);
- mu_msgset_print (mu_strout, mset);
+ mu_msgset_imap_print (mu_strout, mset);
mu_printf ("\n");
mu_msgset_free (mset);

Return to:

Send suggestions and report system problems to the System administrator.