summaryrefslogtreecommitdiff
path: root/mu
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-12-23 17:10:58 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-12-23 17:25:00 +0200
commit2b62203b38aebd3cac815de74813a0bbacb086a6 (patch)
tree65d8a721d3d606e478fc87e73cf89195b1c20ffd /mu
parente4dc7185c62a3042b9a05828be83c1f1ca308dcb (diff)
downloadmailutils-2b62203b38aebd3cac815de74813a0bbacb086a6.tar.gz
mailutils-2b62203b38aebd3cac815de74813a0bbacb086a6.tar.bz2
Finish imap mailbox implementation.
Some features are missing (notably, quick access), but overall the implementation offers all necessary features and performs a lot better than 2.x. Additionally, this commit fixes a minor bug in the imap4d implementation: the STORE command did not accept empty flag list. * NEWS: Update. * imap4d/store.c (store_thunk): Accept empty list as "items" argument. * include/mailutils/imap.h (mu_imap_store_flags): New proto. * include/mailutils/imaputil.h (mu_imap_format_flags): Add new argument. * include/mailutils/sys/imap.h (_MU_IMAP_MSG_ATTRCHG): New flag. * libmailutils/imapio/flags.c: Accept three arguments, last one being a boolean flag specifying whether we want \Recent in the output. * libproto/imap/storeflg.c: New flag. * libproto/imap/Makefile.am (libmu_imap_la_SOURCES): Add storeflg.c. * libproto/imap/mbox.c: Finish the basic implementation. * imap4d/sync.c: Update calls to mu_imap_format_flags. * imap4d/util.c: Likewise. * mu/imap.c: Likewise. * libmailutils/imapio/sendflg.c (mu_imapio_send_flags): Likewise.
Diffstat (limited to 'mu')
-rw-r--r--mu/imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mu/imap.c b/mu/imap.c
index c280740df..0069ff541 100644
--- a/mu/imap.c
+++ b/mu/imap.c
@@ -422,7 +422,7 @@ fetch_response_printer (void *item, void *data)
case MU_IMAP_FETCH_FLAGS:
mu_stream_printf (str, " flags = ");
- mu_imap_format_flags (str, resp->flags.flags);
+ mu_imap_format_flags (str, resp->flags.flags, 1);
mu_stream_printf (str, "\n");
break;
@@ -796,13 +796,13 @@ print_imap_stats (struct mu_imap_stat *st)
if (st->flags & MU_IMAP_STAT_DEFINED_FLAGS)
{
mu_printf (_("Flags defined: "));
- mu_imap_format_flags (mu_strout, st->defined_flags);
+ mu_imap_format_flags (mu_strout, st->defined_flags, 0);
mu_printf ("\n");
}
if (st->flags & MU_IMAP_STAT_PERMANENT_FLAGS)
{
mu_printf (_("Flags permanent: "));
- mu_imap_format_flags (mu_strout, st->permanent_flags);
+ mu_imap_format_flags (mu_strout, st->permanent_flags, 0);
mu_printf ("\n");
}

Return to:

Send suggestions and report system problems to the System administrator.