]> git.pld-linux.org Git - packages/mutt.git/blobdiff - mutt-rr.compressed.patch
- new
[packages/mutt.git] / mutt-rr.compressed.patch
index dc8f07e6f053d98b4780af96f7f72e203e3790b4..e5988bb59ef38df365d2d170ef2d8174a51bd58a 100644 (file)
@@ -22,55 +22,10 @@ diff -Nur mutt-1.3.27.orig/Makefile.am mutt-1.3.27/Makefile.am
        mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \
        mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
        mx.h pager.h pgp.h pop.h protos.h reldate.h rfc1524.h rfc2047.h \
-diff -Nur mutt-1.3.27.orig/Makefile.in mutt-1.3.27/Makefile.in
---- mutt-1.3.27.orig/Makefile.in       Tue Jan  1 21:18:15 2002
-+++ mutt-1.3.27/Makefile.in    Fri Feb  1 22:51:32 2002
-@@ -117,7 +117,7 @@
- BUILT_SOURCES = keymap_defs.h patchlist.c
- 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  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 getdomain.c       handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c     main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c        postpone.c query.c recvattach.c recvcmd.c       rfc822.c rfc1524.c rfc2047.c rfc2231.c  score.c send.c sendlib.c signal.c sort.c        status.c system.c thread.c charset.c history.c lib.c    muttlib.c editmsg.c utf8.c mbyte.c wcwidth.c    url.c ascii.c
-+mutt_SOURCES = $(BUILT_SOURCES)       addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c  commands.c complete.c compose.c compress.c copy.c curs_lib.c curs_main.c date.c         edit.c enter.c flags.c init.c filter.c from.c getdomain.c       handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c     main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c        postpone.c query.c recvattach.c recvcmd.c       rfc822.c rfc1524.c rfc2047.c rfc2231.c  score.c send.c sendlib.c signal.c sort.c        status.c system.c thread.c charset.c history.c lib.c    muttlib.c editmsg.c utf8.c mbyte.c wcwidth.c    url.c ascii.c
- mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(MUTTLIBS)      $(INTLLIBS) $(LIBICONV)
-@@ -152,7 +152,7 @@
- EXTRA_mutt_SOURCES = account.c md5c.c mutt_sasl.c mutt_socket.c mutt_ssl.c    mutt_tunnel.c pop.c pop_auth.c pop_lib.c pgp.c pgpinvoke.c pgpkey.c     pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c  browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c pgppacket.c 
--EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h    attach.h buffy.h charset.h copy.h dotlock.h functions.h gen_defs        globals.h hash.h history.h init.h keymap.h      mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h       mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h         mx.h pager.h pgp.h pop.h protos.h reldate.h rfc1524.h rfc2047.h         rfc2231.h rfc822.h sha1.h sort.h mime.types VERSION prepare     _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h        mbyte.h lib.h extlib.c pgpewrap.c pgplib.h Muttrc.head Muttrc   makedoc.c stamp-doc-rc README.SSL       muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh
-+EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h    attach.h buffy.h charset.h compress.h copy.h dotlock.h functions.h gen_defs     globals.h hash.h history.h init.h keymap.h      mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h       mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h         mx.h pager.h pgp.h pop.h protos.h reldate.h rfc1524.h rfc2047.h         rfc2231.h rfc822.h sha1.h sort.h mime.types VERSION prepare     _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h        mbyte.h lib.h extlib.c pgpewrap.c pgplib.h Muttrc.head Muttrc   makedoc.c stamp-doc-rc README.SSL       muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh
- mutt_dotlock_SOURCES = mutt_dotlock.c
-@@ -187,7 +187,7 @@
- makedoc_OBJECTS =  makedoc.o
- makedoc_LDFLAGS = 
- mutt_OBJECTS =  patchlist.o addrbook.o alias.o attach.o base64.o \
--browser.o buffy.o color.o commands.o complete.o compose.o copy.o \
-+browser.o buffy.o color.o commands.o complete.o compose.o compress.o copy.o \
- curs_lib.o curs_main.o date.o edit.o enter.o flags.o init.o filter.o \
- from.o getdomain.o handler.o hash.o hdrline.o headers.o help.o hook.o \
- keymap.o main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o \
-diff -Nur mutt-1.3.27.orig/Muttrc mutt-1.3.27/Muttrc
---- mutt-1.3.27.orig/Muttrc    Tue Jan  1 21:18:05 2002
-+++ mutt-1.3.27/Muttrc Fri Feb  1 22:51:32 2002
-@@ -19,6 +19,11 @@
- macro index   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
- macro pager   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
-+# 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 -Nur mutt-1.3.27.orig/Muttrc.head mutt-1.3.27/Muttrc.head
 --- mutt-1.3.27.orig/Muttrc.head       Tue Jan  1 21:18:02 2002
 +++ mutt-1.3.27/Muttrc.head    Fri Feb  1 22:51:32 2002
-@@ -19,6 +19,11 @@
+@@ -19,6 +19,15 @@
  macro index   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
  macro pager   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
  
@@ -78,6 +33,10 @@ diff -Nur mutt-1.3.27.orig/Muttrc.head mutt-1.3.27/Muttrc.head
 +# open-hook \\.gz$ "gzip -cd %f > %t"
 +# close-hook \\.gz$ "gzip -c %t > %f"
 +# append-hook \\.gz$ "gzip -c %t >> %f"
++
++# open-hook \\.bz2$ "bzip2 -cd %f > %t"
++# close-hook \\.bz2$ "bzip2 -c %t > %f"
++# append-hook \\.bz2$ "bzip2 -c %t >> %f"
 +
  # If Mutt is unable to determine your site's domain name correctly, you can
  # set the default here.
@@ -85,7 +44,7 @@ diff -Nur mutt-1.3.27.orig/Muttrc.head mutt-1.3.27/Muttrc.head
 diff -Nur mutt-1.3.27.orig/Muttrc.head.in mutt-1.3.27/Muttrc.head.in
 --- mutt-1.3.27.orig/Muttrc.head.in    Mon Mar 20 11:25:49 2000
 +++ mutt-1.3.27/Muttrc.head.in Fri Feb  1 22:51:32 2002
-@@ -19,6 +19,11 @@
+@@ -19,6 +19,15 @@
  macro index   <f1> "!less @docdir@/manual.txt\n" "Show Mutt documentation"
  macro pager   <f1> "!less @docdir@/manual.txt\n" "Show Mutt documentation"
  
@@ -93,6 +52,10 @@ diff -Nur mutt-1.3.27.orig/Muttrc.head.in mutt-1.3.27/Muttrc.head.in
 +# open-hook \\.gz$ "gzip -cd %f > %t"
 +# close-hook \\.gz$ "gzip -c %t > %f"
 +# append-hook \\.gz$ "gzip -c %t >> %f"
++
++# open-hook \\.bz2$ "bzip2 -cd %f > %t"
++# close-hook \\.bz2$ "bzip2 -c %t > %f"
++# append-hook \\.bz2$ "bzip2 -c %t >> %f"
 +
  # If Mutt is unable to determine your site's domain name correctly, you can
  # set the default here.
@@ -620,50 +583,6 @@ diff -Nur mutt-1.3.27.orig/compress.h mutt-1.3.27/compress.h
 +int mutt_test_compress_command (const char *);
 +int mutt_check_mailbox_compressed (CONTEXT *);
 +void mutt_fast_close_compressed (CONTEXT *);
-diff -Nur mutt-1.3.27.orig/config.h.in mutt-1.3.27/config.h.in
---- mutt-1.3.27.orig/config.h.in       Fri Aug  3 18:52:17 2001
-+++ mutt-1.3.27/config.h.in    Fri Feb  1 22:52:59 2002
-@@ -151,6 +151,9 @@
- /* The Sun mailtool attachments support */
- #undef SUN_ATTACHMENT 
-+/* Define to enable compressed mailboxes support */
-+#undef USE_COMPRESSED
-+
- /* The result of isprint() is unreliable? */
- #undef LOCALES_HACK
-diff -Nur mutt-1.3.27.orig/configure mutt-1.3.27/configure
---- mutt-1.3.27.orig/configure Tue Jan  1 21:17:56 2002
-+++ mutt-1.3.27/configure      Fri Feb  1 22:51:32 2002
-@@ -60,6 +60,8 @@
- ac_help="$ac_help
-   --enable-locales-fix       The result of isprint() is unreliable "
- ac_help="$ac_help
-+  --enable-compressed        Enable compressed folders support "
-+ac_help="$ac_help
-   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)"
- ac_help="$ac_help
-   --enable-exact-address     Enable regeneration of email addresses"
-@@ -5793,6 +5795,18 @@
- EOF
-         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 <<\EOF
-+#define USE_COMPRESSED 1
-+EOF
-+
-+        fi
- fi
 diff -Nur mutt-1.3.27.orig/configure.in mutt-1.3.27/configure.in
 --- mutt-1.3.27.orig/configure.in      Fri Feb  1 22:51:17 2002
 +++ mutt-1.3.27/configure.in   Fri Feb  1 22:51:32 2002
@@ -694,215 +613,6 @@ diff -Nur mutt-1.3.27.orig/curs_main.c mutt-1.3.27/curs_main.c
          mutt_str_replace (&LastFolder, Context->path);
          oldcount = Context ? Context->msgcount : 0;
  
-diff -Nur mutt-1.3.27.orig/doc/manual-4.html mutt-1.3.27/doc/manual-4.html
---- mutt-1.3.27.orig/doc/manual-4.html Tue Jan  1 21:18:11 2002
-+++ mutt-1.3.27/doc/manual-4.html      Fri Feb  1 22:51:32 2002
-@@ -788,7 +788,176 @@
- macro pager \cb |urlview\n
- </PRE>
- </CODE></BLOCKQUOTE>
-+</P>
-+
-+<H2><A NAME="ss4.14">4.14 Compressed folders Support (OPTIONAL)</A>
-+</H2>
-+
-+
-+<P>If Mutt was compiled with compressed folders support (by running the
-+<EM>configure</EM> script with the <EM>--enable-compressed</EM> 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.</P>
-+<P>The most common use is to open compressed archived folders e.g. with
-+gzip.</P>
-+<P>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.</P>
-+<P>There are three hooks defined (
-+<A HREF="#open-hook">open-hook</A>,
-+<A HREF="#close-hook">close-hook</A> and 
-+<A HREF="#append-hook">append-hook</A>) which define commands to uncompress and compress
-+a folder and to append messages to an existing compressed folder 
-+respectively.</P>
-+<P>For example:</P>
- <P>
-+<BLOCKQUOTE><CODE>
-+<PRE>
-+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" 
-+</PRE>
-+</CODE></BLOCKQUOTE>
-+</P>
-+<P>You do not have to specify all of the commands. If you omit 
-+<A HREF="#append-hook">append-hook</A>, the folder will be open and
-+closed again each time you will add to it. If you omit 
-+<A HREF="#close-hook">close-hook</A> (or give empty command) , the
-+folder will be open in the  mode. If you specify 
-+<A HREF="#append-hook">append-hook</A> though you'll be able to append
-+to the folder.</P>
-+<P>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
-+compressing script produces empty files. In this situation, unset 
-+<A HREF="manual-6.html#save_empty">$save_empty</A>, so that the compressed file
-+will be removed if you delete all of the messages.</P>
-+
-+<H3><A NAME="open-hook"></A> Open a compressed mailbox for reading</H3>
-+
-+<P>Usage: <CODE>open-hook</CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</P>
-+<P>The <EM>command</EM> is the command that can be used for opening the
-+folders whose names match <EM>regexp</EM>.</P>
-+<P>The <EM>command</EM> string is the printf-like format string, and it
-+should accept two parameters: %f, which is replaced with the
-+(compressed) folder name, and %t which is replaced with the
-+name of the temporary folder to which to write.</P>
-+<P>%f and %t can be repeated any number of times in the
-+command string, and all of the entries are replaced with the
-+appropriate folder name. In addition, %% is replaced by
-+%, as in printf, and any other %anything is left as is.</P>
-+<P>The <EM>command</EM> should <B>not</B> remove the original compressed file.
-+The <EM>command</EM> should return non-zero exit status if it fails, so
-+mutt knows something's wrong.</P>
-+<P>Example:</P>
-+<P>
-+<BLOCKQUOTE><CODE>
-+<PRE>
-+open-hook \\.gz$ "gzip -cd %f &gt; %t" 
-+</PRE>
-+</CODE></BLOCKQUOTE>
-+</P>
-+<P>If the <EM>command</EM> is empty, this operation is disabled for this file
-+type.</P>
-+
-+<H3><A NAME="close-hook"></A> Write a compressed mailbox</H3>
-+
-+<P>Usage: <CODE>close-hook</CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</P>
-+<P>This is used to close the folder that was open with the 
-+<A HREF="#open-hook">open-hook</A> command after some changes were made to it.</P>
-+<P>The <EM>command</EM> string is the command that can be used for closing the
-+folders whose names match <EM>regexp</EM>. It has the same format as in 
-+the 
-+<A HREF="#open-hook">open-hook</A> command. Temporary folder
-+in this case is the folder previously produced by the 
-+<A HREF="#open-hook">open-hook</A> command.</P>
-+<P>The <EM>command</EM> should <B>not</B> remove the decompressed file. The
-+<EM>command</EM> should return non-zero exit status if it fails, so mutt
-+knows something's wrong.</P>
-+<P>Example:</P>
-+<P>
-+<BLOCKQUOTE><CODE>
-+<PRE>
-+close-hook \\.gz$ "gzip -c %t &gt; %f"
-+</PRE>
-+</CODE></BLOCKQUOTE>
-+</P>
-+<P>If the <EM>command</EM> is empty, this operation is disabled for this file
-+type, and the file can only be open in the read-only mode.</P>
-+<P>
-+<A HREF="#close-hook">close-hook</A> is not called when you exit
-+from the folder if the folder was not changed.</P>
-+
-+<H3><A NAME="append-hook"></A> Append a message to a compressed mailbox</H3>
-+
-+<P>Usage: <CODE>append-hook</CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</P>
-+<P>This command is used for saving to an existing compressed folder.
-+The <EM>command</EM> is the command that can be used for appending to the
-+folders whose names match <EM>regexp</EM>. It has the same format as in 
-+the 
-+<A HREF="#open-hook">open-hook</A> command.
-+The temporary folder in this case contains the messages that are being
-+appended. </P>
-+<P>The <EM>command</EM> should <B>not</B> remove the decompressed file. The
-+<EM>command</EM> should return non-zero exit status if it fails, so mutt
-+knows something's wrong.</P>
-+<P>Example:</P>
-+<P>
-+<BLOCKQUOTE><CODE>
-+<PRE>
-+append-hook \\.gz$ "gzip -c %t &gt;&gt; %f" 
-+</PRE>
-+</CODE></BLOCKQUOTE>
-+</P>
-+<P>When 
-+<A HREF="#append-hook">append-hook</A> is used, the folder is
-+not opened, which saves time, but this means that we can not find out
-+what the folder type is. Thus the default (
-+<A HREF="manual-6.html#mbox_type">$mbox_type</A>) type is always supposed (i.e.
-+this is the format used for the temporary folder).</P>
-+<P>If the file does not exist when you save to it, 
-+<A HREF="#close-hook">close-hook</A> is called, and not 
-+<A HREF="#append-hook">append-hook</A>. 
-+<A HREF="#append-hook">append-hook</A> is only
-+for appending to existing folders.</P>
-+<P>If the <EM>command</EM> is empty, this operation is disabled for this file
-+type. In this case, the folder will be open and closed again (using
-+<A HREF="#open-hook">open-hook</A> and 
-+<A HREF="#close-hook">close-hook</A>respectively) each time you will add to it.</P>
-+
-+<H3>Encrypted folders</H3>
-+
-+<P>The compressed folders support can also be used to handle encrypted
-+folders. If you want to encrypt a folder with PGP, you may want to use
-+the following hooks:</P>
-+<P>
-+<BLOCKQUOTE><CODE>
-+<PRE>
-+open-hook  \\.pgp$ "pgp -f &lt; %f &gt; %t"
-+close-hook \\.pgp$ "pgp -fe YourPgpUserIdOrKeyId &lt; %t &gt; %f"
-+</PRE>
-+</CODE></BLOCKQUOTE>
-+</P>
-+<P>Please note, that PGP does not support appending to an encrypted
-+folder, so there is no append-hook defined.</P>
-+<P>If you are using GnuPG instead of PGP, you may use the following hooks
-+instead:</P>
-+<P>
-+<BLOCKQUOTE><CODE>
-+<PRE>
-+open-hook  \\.gpg$ "gpg --decrypt &lt; %f &gt; %t"
-+close-hook \\.gpg$ "gpg --encrypt --recipient YourGpgUserIdOrKeyId &lt; %t &gt; %f"
-+</PRE>
-+</CODE></BLOCKQUOTE>
-+</P>
-+<P><B>Note:</B> the folder is temporary stored decrypted in the /tmp
-+directory, where it can be read by your system administrator. So think
-+about the security aspects of this.</P>
-+
- <HR>
- <A HREF="manual-5.html">Next</A>
- <A HREF="manual-3.html">Previous</A>
-diff -Nur mutt-1.3.27.orig/doc/manual-6.html mutt-1.3.27/doc/manual-6.html
---- mutt-1.3.27.orig/doc/manual-6.html Tue Jan  1 21:18:13 2002
-+++ mutt-1.3.27/doc/manual-6.html      Fri Feb  1 22:51:32 2002
-@@ -70,12 +70,16 @@
- <LI><CODE>
- <A HREF="manual-5.html#alternative_order">alternative_order</A></CODE> <EM>mimetype</EM> [ <EM>mimetype</EM> ... ]</LI>
- <LI><CODE>
-+<A HREF="manual-4.html#append-hook">append-hook</A></CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</LI>
-+<LI><CODE>
- <A HREF="manual-5.html#auto_view">auto_view</A></CODE> <EM>mimetype</EM> [ <EM>mimetype</EM> ... ]</LI>
- <LI><CODE>
- <A HREF="manual-3.html#bind">bind</A></CODE> <EM>map</EM> <EM>key</EM> <EM>function</EM></LI>
- <LI><CODE>
- <A HREF="manual-3.html#charset-hook">charset-hook</A></CODE> <EM>alias</EM> <EM>charset</EM></LI>
- <LI><CODE>
-+<A HREF="manual-4.html#close-hook">close-hook</A></CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</LI>
-+<LI><CODE>
- <A HREF="manual-3.html#color">color</A></CODE> <EM>object</EM> <EM>foreground</EM> <EM>background</EM> [ <EM>regexp</EM> ]</LI>
- <LI><CODE>
- <A HREF="manual-3.html#color">uncolor</A></CODE> <EM>index</EM> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</LI>
-@@ -118,6 +122,8 @@
- <LI><CODE>
- <A HREF="manual-3.html#my_hdr">unmy_hdr</A></CODE> <EM>field</EM> [ <EM>field</EM> ... ]</LI>
- <LI><CODE>
-+<A HREF="manual-4.html#open-hook">open-hook</A></CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</LI>
-+<LI><CODE>
- <A HREF="manual-3.html#pgp-hook">pgp-hook</A></CODE> <EM>pattern</EM> <EM>key-id</EM></LI>
- <LI><CODE>
- <A HREF="manual-3.html#push">push</A></CODE> <EM>string</EM></LI>
 diff -Nur mutt-1.3.27.orig/doc/manual.sgml mutt-1.3.27/doc/manual.sgml
 --- mutt-1.3.27.orig/doc/manual.sgml   Tue Jan  1 21:18:05 2002
 +++ mutt-1.3.27/doc/manual.sgml        Fri Feb  1 22:51:32 2002
@@ -1315,187 +1025,6 @@ diff -Nur mutt-1.3.27.orig/doc/manual.sgml.head mutt-1.3.27/doc/manual.sgml.head
  <tt><ref id="pgp-hook" name="pgp-hook"></tt> <em/pattern/ <em/key-id/
  <item>
  <tt><ref id="push" name="push"></tt> <em/string/
-diff -Nur mutt-1.3.27.orig/doc/manual.txt mutt-1.3.27/doc/manual.txt
---- mutt-1.3.27.orig/doc/manual.txt    Tue Jan  1 21:18:08 2002
-+++ mutt-1.3.27/doc/manual.txt Fri Feb  1 22:51:32 2002
-@@ -78,6 +78,11 @@
-         4.11.2 Authentication
-      4.12 Managing multiple IMAP/POP accounts (OPTIONAL)
-      4.13 Start a WWW Browser on URLs (EXTERNAL)
-+     4.14 Compressed folders Support (OPTIONAL)
-+        4.14.1 Open a compressed mailbox for reading
-+        4.14.2 Write a compressed mailbox
-+        4.14.3 Append a message to a compressed mailbox
-+        4.14.4 Encrypted folders
-   5. Mutt's MIME Support
-      5.1 Using MIME in Mutt
-@@ -2554,6 +2559,156 @@
-        macro index \cb |urlview\n
-        macro pager \cb |urlview\n
-+  4\b4.\b.1\b14\b4.\b.  C\bCo\bom\bmp\bpr\bre\bes\bss\bse\bed\bd f\bfo\bol\bld\bde\ber\brs\bs S\bSu\bup\bpp\bpo\bor\brt\bt (\b(O\bOP\bPT\bTI\bIO\bON\bNA\bAL\bL)\b)
-+
-+  If Mutt was compiled with compressed folders support (by running the
-+  _\bc_\bo_\bn_\bf_\bi_\bg_\bu_\br_\be script with the _\b-_\b-_\be_\bn_\ba_\bb_\bl_\be_\b-_\bc_\bo_\bm_\bp_\br_\be_\bs_\bs_\be_\bd 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.
-+
-+  The most common use is to open compressed archived folders e.g. with
-+  gzip.
-+
-+  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.
-+
-+  There are three hooks defined (``open-hook'', ``close-hook'' and
-+  ``append-hook'') which define commands to uncompress and compress a
-+  folder and to append messages to an existing compressed folder
-+  respectively.
-+
-+  For example:
-+
-+       open-hook \\.gz$ "gzip -cd %f > %t"
-+       close-hook \\.gz$ "gzip -c %t > %f"
-+       append-hook \\.gz$ "gzip -c %t >> %f"
-+
-+  You do not have to specify all of the commands. If you omit ``append-
-+  hook'', the folder will be open and closed again each time you will
-+  add to it. If you omit ``close-hook'' (or give empty command) , the
-+  folder will be open in the  mode. If you specify ``append-hook''
-+  though you'll be able to append to the folder.
-+
-+  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 "."
-+  as a regexp. But this may be surprising if your compressing script
-+  produces empty files. In this situation, unset ``$save_empty'', so
-+  that the compressed file will be removed if you delete all of the
-+  messages.
-+
-+  4\b4.\b.1\b14\b4.\b.1\b1.\b.  O\bOp\bpe\ben\bn a\ba c\bco\bom\bmp\bpr\bre\bes\bss\bse\bed\bd m\bma\bai\bil\blb\bbo\box\bx f\bfo\bor\br r\bre\bea\bad\bdi\bin\bng\bg
-+
-+  Usage: open-hook _\br_\be_\bg_\be_\bx_\bp "_\bc_\bo_\bm_\bm_\ba_\bn_\bd"
-+
-+  The _\bc_\bo_\bm_\bm_\ba_\bn_\bd is the command that can be used for opening the folders
-+  whose names match _\br_\be_\bg_\be_\bx_\bp.
-+
-+  The _\bc_\bo_\bm_\bm_\ba_\bn_\bd string is the printf-like format string, and it should
-+  accept two parameters: %f, which is replaced with the (compressed)
-+  folder name, and %t which is replaced with the name of the temporary
-+  folder to which to write.
-+
-+  %f and %t can be repeated any number of times in the command string,
-+  and all of the entries are replaced with the appropriate folder name.
-+  In addition, %% is replaced by %, as in printf, and any other
-+  %anything is left as is.
-+
-+  The _\bc_\bo_\bm_\bm_\ba_\bn_\bd should n\bno\bot\bt remove the original compressed file.  The
-+  _\bc_\bo_\bm_\bm_\ba_\bn_\bd should return non-zero exit status if it fails, so mutt knows
-+  something's wrong.
-+
-+  Example:
-+
-+       open-hook \\.gz$ "gzip -cd %f > %t"
-+
-+  If the _\bc_\bo_\bm_\bm_\ba_\bn_\bd is empty, this operation is disabled for this file
-+  type.
-+
-+  4\b4.\b.1\b14\b4.\b.2\b2.\b.  W\bWr\bri\bit\bte\be a\ba c\bco\bom\bmp\bpr\bre\bes\bss\bse\bed\bd m\bma\bai\bil\blb\bbo\box\bx
-+
-+  Usage: close-hook _\br_\be_\bg_\be_\bx_\bp "_\bc_\bo_\bm_\bm_\ba_\bn_\bd"
-+
-+  This is used to close the folder that was open with the ``open-hook''
-+  command after some changes were made to it.
-+
-+  The _\bc_\bo_\bm_\bm_\ba_\bn_\bd string is the command that can be used for closing the
-+  folders whose names match _\br_\be_\bg_\be_\bx_\bp. It has the same format as in the
-+  ``open-hook'' command. Temporary folder in this case is the folder
-+  previously produced by the ``open-hook'' command.
-+
-+  The _\bc_\bo_\bm_\bm_\ba_\bn_\bd should n\bno\bot\bt remove the decompressed file. The _\bc_\bo_\bm_\bm_\ba_\bn_\bd
-+  should return non-zero exit status if it fails, so mutt knows
-+  something's wrong.
-+
-+  Example:
-+
-+       close-hook \\.gz$ "gzip -c %t > %f"
-+
-+  If the _\bc_\bo_\bm_\bm_\ba_\bn_\bd is empty, this operation is disabled for this file
-+  type, and the file can only be open in the read-only mode.
-+
-+  ``close-hook'' is not called when you exit from the folder if the
-+  folder was not changed.
-+
-+  4\b4.\b.1\b14\b4.\b.3\b3.\b.  A\bAp\bpp\bpe\ben\bnd\bd a\ba m\bme\bes\bss\bsa\bag\bge\be t\bto\bo a\ba c\bco\bom\bmp\bpr\bre\bes\bss\bse\bed\bd m\bma\bai\bil\blb\bbo\box\bx
-+
-+  Usage: append-hook _\br_\be_\bg_\be_\bx_\bp "_\bc_\bo_\bm_\bm_\ba_\bn_\bd"
-+
-+  This command is used for saving to an existing compressed folder.  The
-+  _\bc_\bo_\bm_\bm_\ba_\bn_\bd is the command that can be used for appending to the folders
-+  whose names match _\br_\be_\bg_\be_\bx_\bp. It has the same format as in the ``open-
-+  hook'' command.  The temporary folder in this case contains the
-+  messages that are being appended.
-+
-+  The _\bc_\bo_\bm_\bm_\ba_\bn_\bd should n\bno\bot\bt remove the decompressed file. The _\bc_\bo_\bm_\bm_\ba_\bn_\bd
-+  should return non-zero exit status if it fails, so mutt knows
-+  something's wrong.
-+
-+  Example:
-+
-+       append-hook \\.gz$ "gzip -c %t >> %f"
-+
-+  When ``append-hook'' is used, the folder is not opened, which saves
-+  time, but this means that we can not find out what the folder type is.
-+  Thus the default (``$mbox_type'') type is always supposed (i.e.  this
-+  is the format used for the temporary folder).
-+
-+  If the file does not exist when you save to it, ``close-hook'' is
-+  called, and not ``append-hook''. ``append-hook'' is only for appending
-+  to existing folders.
-+
-+  If the _\bc_\bo_\bm_\bm_\ba_\bn_\bd is empty, this operation is disabled for this file
-+  type. In this case, the folder will be open and closed again (using
-+  ``open-hook'' and ``close-hook''respectively) each time you will add
-+  to it.
-+
-+  4\b4.\b.1\b14\b4.\b.4\b4.\b.  E\bEn\bnc\bcr\bry\byp\bpt\bte\bed\bd f\bfo\bol\bld\bde\ber\brs\bs
-+
-+  The compressed folders support can also be used to handle encrypted
-+  folders. If you want to encrypt a folder with PGP, you may want to use
-+  the following hooks:
-+
-+       open-hook  \\.pgp$ "pgp -f < %f > %t"
-+       close-hook \\.pgp$ "pgp -fe YourPgpUserIdOrKeyId < %t > %f"
-+
-+  Please note, that PGP does not support appending to an encrypted
-+  folder, so there is no append-hook defined.
-+
-+  If you are using GnuPG instead of PGP, you may use the following hooks
-+  instead:
-+
-+       open-hook  \\.gpg$ "gpg --decrypt < %f > %t"
-+       close-hook \\.gpg$ "gpg --encrypt --recipient YourGpgUserIdOrKeyId < %t > %f"
-+
-+  N\bNo\bot\bte\be:\b: the folder is temporary stored decrypted in the /tmp directory,
-+  where it can be read by your system administrator. So think about the
-+  security aspects of this.
-+
-   5\b5.\b.  M\bMu\but\btt\bt'\b's\bs M\bMI\bIM\bME\bE S\bSu\bup\bpp\bpo\bor\brt\bt
-   Quite a bit of effort has been made to make Mutt the premier text-mode
-@@ -3148,6 +3303,8 @@
-   ·  ``unmy_hdr'' _\bf_\bi_\be_\bl_\bd [ _\bf_\bi_\be_\bl_\bd ... ]
-+  ·  ``open-hook'' _\br_\be_\bg_\be_\bx_\bp "_\bc_\bo_\bm_\bm_\ba_\bn_\bd"
-+
-   ·  ``pgp-hook'' _\bp_\ba_\bt_\bt_\be_\br_\bn _\bk_\be_\by_\b-_\bi_\bd
-   ·  ``push'' _\bs_\bt_\br_\bi_\bn_\bg
 diff -Nur mutt-1.3.27.orig/doc/muttrc.man mutt-1.3.27/doc/muttrc.man
 --- mutt-1.3.27.orig/doc/muttrc.man    Fri Dec 28 18:14:28 2001
 +++ mutt-1.3.27/doc/muttrc.man Fri Feb  1 22:51:32 2002
This page took 0.064226 seconds and 4 git commands to generate.