SOURCES: mutt-rr.compressed.patch - updated for 1.5.16

qboosh qboosh at pld-linux.org
Fri Jun 15 19:43:49 CEST 2007


Author: qboosh                       Date: Fri Jun 15 17:43:49 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for 1.5.16

---- Files affected:
SOURCES:
   mutt-rr.compressed.patch (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/mutt-rr.compressed.patch
diff -u SOURCES/mutt-rr.compressed.patch:1.8 SOURCES/mutt-rr.compressed.patch:1.9
--- SOURCES/mutt-rr.compressed.patch:1.8	Sat Jun  2 12:47:07 2007
+++ SOURCES/mutt-rr.compressed.patch	Fri Jun 15 19:43:43 2007
@@ -1,7 +1,60 @@
-diff -urN mutt-1.5.15/compress.c mutt-1.5.15-ro/compress.c
---- mutt-1.5.15/compress.c	1970-01-01 01:00:00.000000000 +0100
-+++ mutt-1.5.15-ro/compress.c	2007-05-27 14:20:23.000000000 +0200
-@@ -0,0 +1,499 @@
+diff -udprP mutt-1.5.16.orig/Makefile.am mutt-1.5.16/Makefile.am
+--- mutt-1.5.16.orig/Makefile.am	2007-06-04 07:20:01.000000000 +0300
++++ mutt-1.5.16/Makefile.am	2007-06-12 14:22:35.000000000 +0300
+@@ -18,6 +18,7 @@ BUILT_SOURCES = keymap_defs.h patchlist.
+ bin_PROGRAMS = mutt @DOTLOCK_TARGET@ @PGPAUX_TARGET@
+ mutt_SOURCES = $(BUILT_SOURCES) \
+ 	addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c \
++	compress.c \
+ 	crypt.c cryptglue.c \
+ 	commands.c complete.c compose.c copy.c curs_lib.c curs_main.c date.c \
+ 	edit.c enter.c flags.c init.c filter.c from.c \
+@@ -67,6 +68,7 @@ EXTRA_mutt_SOURCES = account.c md5c.c mu
+ 
+ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO UPDATING \
+ 	configure account.h \
++	compress.h \
+ 	attach.h buffy.h charset.h copy.h crypthash.h dotlock.h functions.h gen_defs \
+ 	globals.h hash.h history.h init.h keymap.h mutt_crypt.h \
+ 	mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \
+diff -udprP mutt-1.5.16.orig/Makefile.in mutt-1.5.16/Makefile.in
+--- mutt-1.5.16.orig/Makefile.in	2007-06-10 05:43:26.000000000 +0300
++++ mutt-1.5.16/Makefile.in	2007-06-12 14:22:35.000000000 +0300
+@@ -14,6 +14,10 @@
+ 
+ @SET_MAKE@
+ 
++mutt_SOURCES += compress.c
++EXTRA_DIST += compress.h
++mutt_OBJECTS += compress.o
++
+ 
+ srcdir = @srcdir@
+ top_srcdir = @top_srcdir@
+diff -udprP mutt-1.5.16.orig/Muttrc.head mutt-1.5.16/Muttrc.head
+--- mutt-1.5.16.orig/Muttrc.head	2007-06-06 19:02:56.000000000 +0300
++++ mutt-1.5.16/Muttrc.head	2007-06-12 14:22:35.000000000 +0300
+@@ -24,6 +24,11 @@ macro generic,pager <F1> "<shell-escape>
+ macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
+ bind browser y exit
+ 
++# Use folders which match on \\.gz$ as gzipped folders:
++# open-hook \\.gz$ "gzip -cd %f > %t"
++# close-hook \\.gz$ "gzip -c %t > %f"
++# append-hook \\.gz$ "gzip -c %t >> %f"
++
+ # If Mutt is unable to determine your site's domain name correctly, you can
+ # set the default here.
+ #
+diff -udprP mutt-1.5.16.orig/PATCHES mutt-1.5.16/PATCHES
+--- mutt-1.5.16.orig/PATCHES	2007-04-30 05:07:48.000000000 +0300
++++ mutt-1.5.16/PATCHES	2007-06-12 14:22:35.000000000 +0300
+@@ -0,0 +1 @@
++rr.compressed
+diff -udprP mutt-1.5.16.orig/compress.c mutt-1.5.16/compress.c
+--- mutt-1.5.16.orig/compress.c	1970-01-01 03:00:00.000000000 +0300
++++ mutt-1.5.16/compress.c	2007-06-12 14:22:35.000000000 +0300
+@@ -0,0 +1,490 @@
 +/*
 + * Copyright (C) 1997 Alain Penders <Alain at Finale-Dev.com>
 + *
@@ -45,8 +98,9 @@
 +  off_t size;		/* size of real folder */
 +} COMPRESS_INFO;
 +
++char echo_cmd[HUGE_STRING];
 +
-+/*
++/* parameters:
 + * ctx - context to lock
 + * excl - exclusive lock?
 + * retry - should retry if unable to lock?
@@ -93,42 +147,29 @@
 +  return find_compress_hook (M_OPENHOOK, path) ? 1 : 0;
 +}
 +
-+/*
-+ * if the file is new, we really do not append, but create, and so use
-+ * close-hook, and not append-hook
++/* if the file is new, we really do not append, but create, and so use
++ * close-hook, and not append-hook 
 + */
 +static const char* get_append_command (const char *path, const CONTEXT* ctx)
 +{
 +  COMPRESS_INFO *ci = (COMPRESS_INFO *) ctx->compressinfo;
 +  return (is_new (path)) ? ci->close : ci->append;
 +}
-+
++    
 +int mutt_can_append_compressed (const char *path)
 +{
 +  int magic;
 +
 +  if (is_new (path))
-+  {
-+    char *dir_path = safe_strdup(path);
-+    char *aux = strrchr(dir_path, '/');
-+    int dir_valid = 1;
-+    if (aux)
-+    {
-+      *aux='\0';
-+      if (access(dir_path, W_OK|X_OK))
-+        dir_valid = 0;
-+    }
-+    safe_free((void**)&dir_path);
-+    return dir_valid && (find_compress_hook (M_CLOSEHOOK, path) ? 1 : 0);
-+  }
++    return (find_compress_hook (M_CLOSEHOOK, path) ? 1 : 0);
 +
 +  magic = mx_get_magic (path);
-+
++  
 +  if (magic != 0 && magic != M_COMPRESSED)
 +    return 0;
 +
 +  return (find_compress_hook (M_APPENDHOOK, path)
-+	  || (find_compress_hook (M_OPENHOOK, path)
++	  || (find_compress_hook (M_OPENHOOK, path) 
 +	      && find_compress_hook (M_CLOSEHOOK, path))) ? 1 : 0;
 +}
 +
@@ -145,7 +186,7 @@
 +  ci->close = find_compress_hook (M_CLOSEHOOK, ctx->path);
 +  return ci;
 +}
-+
++  
 +static void set_path (CONTEXT* ctx)
 +{
 +  char tmppath[_POSIX_PATH_MAX];
@@ -159,7 +200,7 @@
 +  strcpy (ctx->path, tmppath);
 +}
 +
-+static int get_size (const char* path)
++static int get_size (const char* path) 
 +{
 +  struct stat sb;
 +  if (stat (path, &sb) != 0)
@@ -167,7 +208,7 @@
 +  return (sb.st_size);
 +}
 +
-+static void store_size (CONTEXT* ctx)
++static void store_size (CONTEXT* ctx) 
 +{
 +  COMPRESS_INFO *ci = (COMPRESS_INFO *) ctx->compressinfo;
 +  ci->size = get_size (ctx->realpath);
@@ -175,12 +216,12 @@
 +
 +static const char *
 +compresshook_format_str (char *dest, size_t destlen, char op, const char *src,
-+			 const char *fmt, const char *ifstring,
-+			 const char *elsestring, unsigned long data,
++			 const char *fmt, const char *ifstring, 
++			 const char *elsestring, unsigned long data, 
 +			 format_flag flags)
 +{
 +  char tmp[SHORT_STRING];
-+
++  
 +  CONTEXT *ctx = (CONTEXT *) data;
 +  switch (op)
 +  {
@@ -196,8 +237,7 @@
 +  return (src);
 +}
 +
-+/*
-+ * check that the command has both %f and %t
++/* check that the command has both %f and %t
 + * 0 means OK, -1 means error
 + */
 +int mutt_test_compress_command (const char* cmd)
@@ -208,7 +248,7 @@
 +static char *get_compression_cmd (const char* cmd, const CONTEXT* ctx)
 +{
 +  char expanded[_POSIX_PATH_MAX];
-+  mutt_FormatString (expanded, sizeof (expanded), cmd, compresshook_format_str,
++  mutt_FormatString (expanded, sizeof (expanded), 0, cmd, compresshook_format_str,
 +		     (unsigned long) ctx, 0);
 +  return safe_strdup (expanded);
 +}
@@ -235,7 +275,7 @@
 +  COMPRESS_INFO *ci = set_compress_info (ctx);
 +  if (!ci->open) {
 +    ctx->magic = 0;
-+    FREE (&ctx->compressinfo);
++    FREE (ctx->compressinfo);
 +    return (-1);
 +  }
 +  if (!ci->close || access (ctx->path, W_OK) != 0)
@@ -248,7 +288,7 @@
 +    mutt_message (_("Decompressing %s..."), ctx->realpath);
 +
 +  cmd = get_compression_cmd (ci->open, ctx);
-+  if (cmd == NULL)
++  if (cmd == NULL) 
 +    return (-1);
 +  dprint (2, (debugfile, "DecompressCmd: '%s'\n", cmd));
 +
@@ -270,7 +310,8 @@
 +
 +  endwin ();
 +  fflush (stdout);
-+  fprintf (stderr, _("Decompressing %s...\n"),ctx->realpath);
++  sprintf(echo_cmd,_("echo Decompressing %s..."),ctx->realpath); 
++  mutt_system(echo_cmd);
 +  rc = mutt_system (cmd);
 +  mbox_unlock_compressed (ctx, fp);
 +  mutt_unblock_signals ();
@@ -280,11 +321,11 @@
 +  {
 +    mutt_any_key_to_continue (NULL);
 +    ctx->magic = 0;
-+    FREE (&ctx->compressinfo);
++    FREE (ctx->compressinfo);
 +    mutt_error (_("Error executing: %s : unable to open the mailbox!\n"), cmd);
 +  }
 +  FREE (&cmd);
-+  if (rc)
++  if (rc) 
 +    return (-1);
 +
 +  if (mutt_check_mailbox_compressed (ctx))
@@ -302,7 +343,7 @@
 +}
 +
 +/* remove the temporary mailbox */
-+void remove_file (CONTEXT* ctx)
++void remove_file (CONTEXT* ctx) 
 +{
 +  if (ctx->magic == M_MBOX || ctx->magic == M_MMDF)
 +    remove (ctx->path);
@@ -348,9 +389,7 @@
 +      fclose (ctx->fp);
 +    ctx->fp = NULL;
 +    /* if the folder was removed, remove the gzipped folder too */
-+    if ((ctx->magic > 0) 
-+	&& (access (ctx->path, F_OK) != 0) 
-+	&& ! option (OPTSAVEEMPTY))
++    if (access (ctx->path, F_OK) != 0 && ! option (OPTSAVEEMPTY))
 +      remove (ctx->realpath);
 +    else
 +      remove_file (ctx);
@@ -372,7 +411,7 @@
 +    mutt_message (_("Compressing %s..."), ctx->realpath);
 +
 +  cmd = get_compression_cmd (ci->close, ctx);
-+  if (cmd == NULL)
++  if (cmd == NULL) 
 +    return (-1);
 +
 +  if ((fp = fopen (ctx->realpath, "a")) == NULL)
@@ -387,7 +426,9 @@
 +    fclose (fp);
 +    mutt_unblock_signals ();
 +    mutt_error _("Unable to lock mailbox!");
-+    store_size (ctx);
++
++  store_size (ctx);
++
 +    FREE (&cmd);
 +    return (-1);
 +  }
@@ -396,7 +437,8 @@
 +
 +  endwin ();
 +  fflush (stdout);
-+  fprintf (stderr, _("Compressing %s...\n"), ctx->realpath);
++  sprintf(echo_cmd,_("echo Compressing %s..."), ctx->realpath); 
++  mutt_system(echo_cmd);
 +  if (mutt_system (cmd))
 +  {
 +    mutt_any_key_to_continue (NULL);
@@ -409,7 +451,7 @@
 +  fclose (fp);
 +
 +  FREE (&cmd);
-+
++  
 +  store_size (ctx);
 +
 +  return (rc);
@@ -422,15 +464,16 @@
 +  char *cmd;
 +  COMPRESS_INFO *ci = (COMPRESS_INFO *) ctx->compressinfo;
 +
-+  dprint (2, (debugfile, "mutt_slow_close_compressed called on '%s'\n",
++  dprint (2, (debugfile, "mutt_slow_close_compressed called on '%s'\n", 
 +	      ctx->path));
 +
-+  if (! (ctx->append
++  if (! (ctx->append 
 +	 && ((append = get_append_command (ctx->realpath, ctx))
 +	     || (append = ci->close))))
-+  { 
-+    /* if we can not or should not append, we only have to remove the */
-+    /* compressed info, because sync was already called               */
++  { /* if we can not or should not append,
++     * we only have to remove the compressed info, because sync was already
++     * called 
++     */
 +    mutt_fast_close_compressed (ctx);
 +    return (0);
 +  }
@@ -448,7 +491,7 @@
 +  }
 +
 +  cmd = get_compression_cmd (append, ctx);
-+  if (cmd == NULL)
++  if (cmd == NULL) 
 +    return (-1);
 +
 +  if ((fp = fopen (ctx->realpath, "a")) == NULL)
@@ -473,9 +516,10 @@
 +  fflush (stdout);
 +
 +  if (append == ci->close)
-+    fprintf (stderr, _("Compressing %s...\n"), ctx->realpath);
++    sprintf(echo_cmd,_("echo Compressing %s..."), ctx->realpath); 
 +  else
-+    fprintf (stderr, _("Compressed-appending to %s...\n"), ctx->realpath);
++    sprintf(echo_cmd,_("echo Compressed-appending to %s..."), ctx->realpath); 
++  mutt_system(echo_cmd);
 +
 +  if (mutt_system (cmd))
 +  {
@@ -501,9 +545,9 @@
 +}
 +
 +#endif /* USE_COMPRESSED */
-diff -urN mutt-1.5.15/compress.h mutt-1.5.15-ro/compress.h
---- mutt-1.5.15/compress.h	1970-01-01 01:00:00.000000000 +0100
-+++ mutt-1.5.15-ro/compress.h	2007-05-27 14:20:23.000000000 +0200
+diff -udprP mutt-1.5.16.orig/compress.h mutt-1.5.16/compress.h
+--- mutt-1.5.16.orig/compress.h	1970-01-01 03:00:00.000000000 +0300
++++ mutt-1.5.16/compress.h	2007-06-12 14:22:35.000000000 +0300
 @@ -0,0 +1,27 @@
 +/*
 + * Copyright (C) 1997 Alain Penders <Alain at Finale-Dev.com>
@@ -532,67 +576,68 @@
 +int mutt_test_compress_command (const char *);
 +int mutt_check_mailbox_compressed (CONTEXT *);
 +void mutt_fast_close_compressed (CONTEXT *);
-diff -urN mutt-1.5.15/config.h.in mutt-1.5.15-ro/config.h.in
---- mutt-1.5.15/config.h.in	2007-04-06 09:18:47.000000000 +0200
-+++ mutt-1.5.15-ro/config.h.in	2007-05-27 14:20:23.000000000 +0200
-@@ -513,6 +513,9 @@
+diff -udprP mutt-1.5.16.orig/config.h.in mutt-1.5.16/config.h.in
+--- mutt-1.5.16.orig/config.h.in	2007-06-10 05:44:57.000000000 +0300
++++ mutt-1.5.16/config.h.in	2007-06-12 14:22:35.000000000 +0300
+@@ -512,6 +512,9 @@
+ 
  /* Define to enable Sun mailtool attachments support. */
  #undef SUN_ATTACHMENT
- 
-+/* Define to enable compressed mailboxes support */
++  
++/* The compressed mailboxes support */
 +#undef USE_COMPRESSED
-+
+ 
  /* Define to use dotlocking for mailboxes. */
  #undef USE_DOTLOCK
- 
-diff -urN mutt-1.5.15/configure mutt-1.5.15-ro/configure
---- mutt-1.5.15/configure	2007-04-06 09:17:16.000000000 +0200
-+++ mutt-1.5.15-ro/configure	2007-05-27 14:20:23.000000000 +0200
-@@ -1354,6 +1354,7 @@
-   --enable-hcache         Enable header caching
-   --disable-iconv         Disable iconv support
-   --disable-nls           Do not use Native Language Support
+diff -udprP mutt-1.5.16.orig/configure mutt-1.5.16/configure
+--- mutt-1.5.16.orig/configure	2007-06-10 05:43:29.000000000 +0300
++++ mutt-1.5.16/configure	2007-06-12 14:22:35.000000000 +0300
+@@ -1350,6 +1350,7 @@ Optional Features:
+   --disable-warnings      Turn off compiler warnings (not recommended)
+   --enable-nfs-fix        Work around an NFS with broken attributes caching
+   --enable-mailtool       Enable Sun mailtool attachments support
 +  --enable-compressed     Enable compressed folders support
- 
- Optional Packages:
-   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
-@@ -17502,6 +17503,17 @@
+   --enable-locales-fix    The result of isprint() is unreliable
+   --enable-exact-address  Enable regeneration of email addresses
+   --enable-hcache         Enable header caching
+@@ -14414,6 +14415,18 @@ echo "${ECHO_T}$mutt_cv_regex_broken" >&
+         fi
  fi
  
- 
++
 +# Check whether --enable-compressed or --disable-compressed was given.
 +if test "${enable_compressed+set}" = set; then
-+  enableval="$enable_compressed"; if test x$enableval = xyes; then
-+
-+cat >>confdefs.h <<\_ACEOF
++  enableval="$enable_compressed"
++  if test x$enableval = xyes; then
++                cat >> confdefs.h <<\EOF
 +#define USE_COMPRESSED 1
-+_ACEOF
++EOF
 +
 +        fi
 +fi
 +
+ if test $mutt_cv_regex = yes; then
  
- # Check whether --with-exec-shell was given.
- if test "${with_exec_shell+set}" = set; then
-diff -urN mutt-1.5.15/configure.ac mutt-1.5.15-ro/configure.ac
---- mutt-1.5.15/configure.ac	2007-04-06 09:11:53.000000000 +0200
-+++ mutt-1.5.15-ro/configure.ac	2007-05-27 14:33:52.000000000 +0200
-@@ -803,6 +803,11 @@
-                 AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ])
+ cat >>confdefs.h <<\_ACEOF
+diff -udprP mutt-1.5.16.orig/configure.ac mutt-1.5.16/configure.ac
+--- mutt-1.5.16.orig/configure.ac	2007-06-04 07:20:01.000000000 +0300
++++ mutt-1.5.16/configure.ac	2007-06-12 14:22:35.000000000 +0300
+@@ -780,6 +780,11 @@ AC_ARG_ENABLE(mailtool, AC_HELP_STRING([
+                 AC_DEFINE(SUN_ATTACHMENT,1,[ Define to enable Sun mailtool attachments support. ])
          fi])
  
 +AC_ARG_ENABLE(compressed, AC_HELP_STRING([--enable-compressed], [Enable compressed folders support]),
-+	[if test x$enableval = xyes; then
-+                AC_DEFINE(USE_COMPRESSED,1, [ Define to support compressed folders. ])
++        [if test x$enableval = xyes; then
++                AC_DEFINE(USE_COMPRESSED,1,[ Define to enable compressed folders support. ])
 +        fi])
 +
- AC_ARG_WITH(exec-shell, AC_HELP_STRING([--with-exec-shell=SHELL], [Specify alternate shell (ONLY if /bin/sh is broken)]),
-         [if test $withval != yes; then
-                 AC_DEFINE_UNQUOTED(EXECSHELL, "$withval",
-diff -urN mutt-1.5.15/curs_main.c mutt-1.5.15-ro/curs_main.c
---- mutt-1.5.15/curs_main.c	2007-04-03 19:41:14.000000000 +0200
-+++ mutt-1.5.15-ro/curs_main.c	2007-05-27 14:20:26.000000000 +0200
-@@ -1096,6 +1096,11 @@
+ AC_ARG_ENABLE(locales-fix, AC_HELP_STRING([--enable-locales-fix], [The result of isprint() is unreliable]),
+         [if test x$enableval = xyes; then
+                 AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ])
+diff -udprP mutt-1.5.16.orig/curs_main.c mutt-1.5.16/curs_main.c
+--- mutt-1.5.16.orig/curs_main.c	2007-05-20 10:30:00.000000000 +0300
++++ mutt-1.5.16/curs_main.c	2007-06-12 14:22:35.000000000 +0300
+@@ -1111,6 +1111,11 @@ int mutt_index_menu (void)
          {
  	  int check;
  
@@ -604,14 +649,63 @@
  	  mutt_str_replace (&LastFolder, Context->path);
  	  oldcount = Context ? Context->msgcount : 0;
  
-diff -urN mutt-1.5.15/doc/manual.xml.head mutt-1.5.15-ro/doc/manual.xml.head
---- mutt-1.5.15/doc/manual.xml.head	2007-04-04 07:37:13.000000000 +0200
-+++ mutt-1.5.15-ro/doc/manual.xml.head	2007-05-27 14:20:26.000000000 +0200
-@@ -4910,6 +4910,205 @@
+diff -udprP mutt-1.5.16.orig/doc/Makefile.am mutt-1.5.16/doc/Makefile.am
+--- mutt-1.5.16.orig/doc/Makefile.am	2007-04-13 19:43:45.000000000 +0300
++++ mutt-1.5.16/doc/Makefile.am	2007-06-12 14:22:35.000000000 +0300
+@@ -27,7 +27,7 @@ EXTRA_DIST = dotlock.man		\
+ 
+ HTML_DOCFILES = manual.html index.html intro.html gettingstarted.html \
+ 	configuration.html mimesupport.html advancedusage.html \
+-	tuning.html reference.html miscellany.html
++	tuning.html reference.html miscellany.html compressed-folders.html
+ 
+ BUILT_DISTFILES = stamp-doc-xml stamp-doc-chunked manual.txt $(HTML_DOCFILES)
+ 
+diff -udprP mutt-1.5.16.orig/doc/Makefile.in mutt-1.5.16/doc/Makefile.in
+--- mutt-1.5.16.orig/doc/Makefile.in	2007-06-10 05:43:25.000000000 +0300
++++ mutt-1.5.16/doc/Makefile.in	2007-06-12 14:22:35.000000000 +0300
+@@ -223,7 +223,7 @@ EXTRA_DIST = dotlock.man		\
+ 
+ HTML_DOCFILES = manual.html index.html intro.html gettingstarted.html \
+ 	configuration.html mimesupport.html advancedusage.html \
+-	tuning.html reference.html miscellany.html
++	tuning.html reference.html miscellany.html compressed-folders.html
+ 
+ BUILT_DISTFILES = stamp-doc-xml stamp-doc-chunked manual.txt $(HTML_DOCFILES)
+ srcdir_DOCFILES = PGP-Notes.txt applying-patches.txt	\
+diff -udprP mutt-1.5.16.orig/doc/manual.xml.head mutt-1.5.16/doc/manual.xml.head
+--- mutt-1.5.16.orig/doc/manual.xml.head	2007-04-04 08:37:13.000000000 +0300
++++ mutt-1.5.16/doc/manual.xml.head	2007-06-12 14:22:35.000000000 +0300
+@@ -4083,6 +4083,24 @@ configuration option/command.  See
+ <link linkend="fcc-save-hook">fcc-save-hook</link>
+ </para>
+ </listitem>
++<listitem>
++
++<para>
++<link linkend="open-hook">open-hook</link>
++</para>
++</listitem>
++<listitem>
++
++<para>
++<link linkend="close-hook">close-hook</link>
++</para>
++</listitem>
++<listitem>
++
++<para>
++<link linkend="append-hook">append-hook</link>
++</para>
++</listitem>
+ 
+ </itemizedlist>
+ 
+@@ -4910,6 +4928,254 @@ becomes an issue as mutt will silently f
  
  </chapter>
  
-+<sect1 id="compressedfolders">
++<chapter id="compressed-folders">
 +<title>Compressed folders Support (OPTIONAL)</title>
 +
 +<para>
@@ -620,166 +714,217 @@
 +<emphasis>--enable-compressed</emphasis> flag), Mutt can open folders
 +stored in an arbitrary format, provided that the user has a script to
 +convert from/to this format to one of the accepted.
++</para>
 +
++<para>
 +The most common use is to open compressed archived folders e.g. with
 +gzip.
++</para>
 +
++<para>
 +In addition, the user can provide a script that gets a folder in an
 +accepted format and appends its context to the folder in the
 +user-defined format, which may be faster than converting the entire
 +folder to the accepted format, appending to it and converting back to
 +the user-defined format.
++</para>
 +
-+There are three hooks defined (<link
-+linkend="open-hook">open-hook</link>, <link
-+linkend="close-hook">close-hook</link> and <link
-+linkend="append-hook">append-hook</link>) which define commands to
-+uncompress and compress a folder and to append messages to an existing
-+compressed folder respectively.
++<para>
++There are three hooks defined
++(<link linkend="open-hook">open-hook</link>,
++<link linkend="close-hook">close-hook</link> and
++<link linkend="append-hook">append-hook</link>) which define commands
++to uncompress and compress a folder and to append messages to an
++existing compressed folder respectively.
++</para>
 +
++<para>
 +For example:
 +
 +<screen>
-+open-hook \\.gz$ "gzip -cd %f &gt; %t" 
-+close-hook \\.gz$ "gzip -c %t &gt; %f"
-+append-hook \\.gz$ "gzip -c %t &gt;&gt; %f" 
++open-hook \\.gz$ "gzip -cd %f > %t" 
++close-hook \\.gz$ "gzip -c %t > %f"
++append-hook \\.gz$ "gzip -c %t >> %f" 
 +</screen>
++</para>
 +
-+You do not have to specify all of the commands. If you omit <link
-+linkend="append-hook">append-hook</link>, the folder will be open and
-+closed again each time you will add to it. If you omit <link
-+linkend="close-hook">close-hook</link> (or give empty command) , the
-+folder will be open in the mode. If you specify <link
-+linkend="append-hook">append-hook</link> though you'll be able to
++<para>
++You do not have to specify all of the commands. If you omit
++<link linkend="append-hook">append-hook</link>, the folder will be open
++and closed again each time you will add to it. If you omit
++<link linkend="close-hook">close-hook</link> (or give empty command),
++the folder will be open in the  mode. If you specify
++<link linkend="append-hook">append-hook</link> though you'll be able to
 +append to the folder.
++</para>
 +
++<para>
 +Note that Mutt will only try to use hooks if the file is not in one of
 +the accepted formats. In particular, if the file is empty, mutt
 +supposes it is not compressed. This is important because it allows the
 +use of programs that do not have well defined extensions. Just use
-+&quot;.&quot; as a regexp. But this may be surprising if your
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/mutt-rr.compressed.patch?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list