]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm dump: Rename type imapzlib -> imap-compress
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 11 Aug 2022 11:09:38 +0000 (13:09 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 15 Aug 2022 07:34:57 +0000 (07:34 +0000)
doc/man/doveadm-dump.1.in
src/doveadm/doveadm-compress.c
src/doveadm/doveadm-dump.c
src/doveadm/doveadm-dump.h

index 95d446df651547d37a0973663374cf5cfd1dd425..70be388effc8e77f95126f093a360ef0b8f77b34 100644 (file)
@@ -51,8 +51,8 @@ Dump the keywords indexed in
 .I fts\-flatcurve
 indexes directory and their frequencies.
 .TP
-.B imapzlib
-Uncompress an IMAP traffic log, which contains data compressed using the
+.B imap\-compress
+Decompress an IMAP traffic log, which contains data compressed using the
 IMAP COMPRESSION extension.
 .TP
 .B dcrypt-file
@@ -90,4 +90,4 @@ Look at the contents of a mailbox\(aqs index:
 @INCLUDE:reporting-bugs@
 .\"------------------------------------------------------------------------
 .SH SEE ALSO
-.BR doveadm (1)
\ No newline at end of file
+.BR doveadm (1)
index d159114ab2461fd7cf4d2fd8d39899bf9111497f..41aac0898b106fca3ab75d9d265e903f66af2252 100644 (file)
@@ -15,7 +15,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-static bool test_dump_imapzlib(const char *path)
+static bool test_dump_imap_compress(const char *path)
 {
        const char *p;
        char buf[4096];
@@ -42,7 +42,7 @@ static bool test_dump_imapzlib(const char *path)
 }
 
 static void
-cmd_dump_imapzlib(const char *path, const char *const *args ATTR_UNUSED)
+cmd_dump_imap_compress(const char *path, const char *const *args ATTR_UNUSED)
 {
        struct istream *input, *input2;
        const unsigned char *data;
@@ -268,10 +268,10 @@ static void cmd_compress_connect(struct doveadm_cmd_context *cctx)
                i_fatal("close() failed: %m");
 }
 
-struct doveadm_cmd_dump doveadm_cmd_dump_zlib = {
-       "imapzlib",
-       test_dump_imapzlib,
-       cmd_dump_imapzlib
+struct doveadm_cmd_dump doveadm_cmd_dump_imap_compress = {
+       "imap-compress",
+       test_dump_imap_compress,
+       cmd_dump_imap_compress
 };
 
 struct doveadm_cmd_ver2 doveadm_cmd_compress_connect = {
index eb08e96a801b80875a905539728af00614bd419b..eb7091408ef1f64e3e9394387b898960c82a15af 100644 (file)
@@ -131,7 +131,7 @@ static const struct doveadm_cmd_dump *dumps_builtin[] = {
        &doveadm_cmd_dump_log,
        &doveadm_cmd_dump_mailboxlog,
        &doveadm_cmd_dump_thread,
-       &doveadm_cmd_dump_zlib,
+       &doveadm_cmd_dump_imap_compress,
        &doveadm_cmd_dump_dcrypt_file,
        &doveadm_cmd_dump_dcrypt_key,
        &doveadm_cmd_dump_multiplex,
index 57762609ca41cbf6b1b20ea8020a1dfba09acc2c..24ca45aadcd5099adb68ab6d0660b3c731686bcf 100644 (file)
@@ -14,7 +14,7 @@ extern struct doveadm_cmd_dump doveadm_cmd_dump_index;
 extern struct doveadm_cmd_dump doveadm_cmd_dump_log;
 extern struct doveadm_cmd_dump doveadm_cmd_dump_mailboxlog;
 extern struct doveadm_cmd_dump doveadm_cmd_dump_thread;
-extern struct doveadm_cmd_dump doveadm_cmd_dump_zlib;
+extern struct doveadm_cmd_dump doveadm_cmd_dump_imap_compress;
 extern struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_file;
 extern struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_key;