commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-2.2-545-g09be781


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-545-g09be781
Date: Thu, 22 Dec 2011 16:45:29 +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=09be781f34bd43f47f65eee4ce757e8c9ab742e6

The branch, master has been updated
       via  09be781f34bd43f47f65eee4ce757e8c9ab742e6 (commit)
      from  e218f1ec00749701a00c074c4574a75a6f156d2b (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 09be781f34bd43f47f65eee4ce757e8c9ab742e6
Author: Sergey Poznyakoff <address@hidden>
Date:   Thu Dec 22 18:44:30 2011 +0200

    mu imap: implement copy command.
    
    * mu/imap.c (com_copy): New function.
    (print_list_item): Treat 0 separator as '/' to avoid preliminary
    truncating the output.

-----------------------------------------------------------------------

Summary of changes:
 mu/imap.c |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/mu/imap.c b/mu/imap.c
index 9e6e387..c280740 100644
--- a/mu/imap.c
+++ b/mu/imap.c
@@ -1074,6 +1074,15 @@ com_append (int argc, char **argv)
 }
 
 static int
+com_copy (int argc, char **argv)
+{
+  int status = mu_imap_copy (imap, uid_mode, argv[1], argv[2]);
+  if (status)
+    report_failure ("copy", status);
+  return 0;
+}
+
+static int
 print_list_item (void *item, void *data)
 {
   struct mu_list_response *resp = item;
@@ -1083,7 +1092,8 @@ print_list_item (void *item, void *data)
                    "%c%c %c %4d %s\n",
                    (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-',
                    (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-',
-                   resp->separator,
+                   resp->separator ?
+                       resp->separator : MU_HIERARCHY_DELIMITER,
                    resp->level,
                    resp->name);
   return 0;
@@ -1220,6 +1230,10 @@ struct mutool_command imap_comtab[] = {
     com_append,
     N_("[-time DATETIME] [-flag FLAG] MAILBOX FILE"),
     N_("append message text from FILE to MAILBOX") },
+  { "copy",         3, 3, 0,
+    com_copy,
+    N_("MSGSET MAILBOX"),
+    N_("Copy messages from MSGSET to MAILBOX") },
   { "list",         3, 3, 0,
     com_list,
     N_("REF MBOX"),


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]