packages (DEVEL): mutt/mutt-Muttrc_mbox_path.patch, mutt/mutt-bj.status-tim...

pawelz pawelz at pld-linux.org
Tue Jul 14 14:16:49 CEST 2009


Author: pawelz                       Date: Tue Jul 14 12:16:49 2009 GMT
Module: packages                      Tag: DEVEL
---- Log message:
- Copied from HEAD.

---- Files affected:
packages/mutt:
   mutt-Muttrc_mbox_path.patch (1.1 -> 1.1.2.1) , mutt-bj.status-time.patch (1.1.4.1 -> 1.1.4.2) , mutt-cd.signatures_menu.patch (1.1.4.2 -> 1.1.4.3) , mutt-folder_columns.patch (1.1 -> 1.1.4.1) , mutt-forcedotlock.patch (1.3 -> 1.3.4.1) , mutt-home_etc.patch (1.1.4.1 -> 1.1.4.2) , mutt-manual.patch (1.1.4.5 -> 1.1.4.6) , mutt-pgp_hook.patch (1.1 -> 1.1.4.1) , mutt-pl.po-update.patch (1.1.2.3 -> 1.1.2.4) , mutt-rr.compressed.patch (1.4.4.8 -> 1.4.4.9) , mutt-vvv.nntp.patch (1.1.2.2 -> 1.1.2.3) , mutt-vvv.quote.patch (1.1.2.1 -> 1.1.2.2) , mutt.desktop (1.12 -> 1.12.2.1) 

---- Diffs:

================================================================
Index: packages/mutt/mutt-Muttrc_mbox_path.patch
diff -u packages/mutt/mutt-Muttrc_mbox_path.patch:1.1 packages/mutt/mutt-Muttrc_mbox_path.patch:1.1.2.1
--- packages/mutt/mutt-Muttrc_mbox_path.patch:1.1	Thu Mar  4 18:25:04 2004
+++ packages/mutt/mutt-Muttrc_mbox_path.patch	Tue Jul 14 14:16:43 2009
@@ -1,6 +1,5 @@
-diff -Nur mutt-1.4.2.1.orig/Muttrc mutt-1.4.2.1/Muttrc
---- mutt-1.4.2.1.orig/Muttrc	2004-03-04 18:10:37.000000000 +0100
-+++ mutt-1.4.2.1/Muttrc	2004-03-04 18:17:10.000000000 +0100
+--- mutt-1.5.18.orig/doc/Muttrc	2004-03-04 18:10:37.000000000 +0100
++++ mutt-1.5.18/doc/Muttrc	2004-03-04 18:17:10.000000000 +0100
 @@ -1360,7 +1360,7 @@
  # will be shown. The match is always case-sensitive.
  # 

================================================================
Index: packages/mutt/mutt-bj.status-time.patch
diff -u packages/mutt/mutt-bj.status-time.patch:1.1.4.1 packages/mutt/mutt-bj.status-time.patch:1.1.4.2
--- packages/mutt/mutt-bj.status-time.patch:1.1.4.1	Fri Oct  7 10:07:10 2005
+++ packages/mutt/mutt-bj.status-time.patch	Tue Jul 14 14:16:43 2009
@@ -10,26 +10,16 @@
        {
  	menu_status_line (buf, sizeof (buf), menu, NONULL (Status));
  	CLEARLINE (option (OPTSTATUSONTOP) ? 0 : LINES-2);
-Only in mutt-1.5.10/doc: manual-1.html
-Only in mutt-1.5.10/doc: manual-2.html
-Only in mutt-1.5.10/doc: manual-3.html
-Only in mutt-1.5.10/doc: manual-4.html
-Only in mutt-1.5.10/doc: manual-5.html
-Only in mutt-1.5.10/doc: manual-6.html
-Only in mutt-1.5.10/doc: manual-7.html
-Only in mutt-1.5.10/doc: manual.html
-Only in mutt-1.5.10/doc: manual.txt
-diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/globals.h mutt-1.5.10/globals.h
---- mutt-1.5.10.orig/globals.h	2005-08-03 11:17:46.000000000 +0200
-+++ mutt-1.5.10/globals.h	2005-10-07 09:28:24.000000000 +0200
-@@ -174,6 +174,7 @@
- WHERE short ReadInc;
+--- mutt-1.5.18/globals.h.orig	2008-01-30 05:26:50.000000000 +0100
++++ mutt-1.5.18/globals.h	2008-07-25 17:41:02.532746787 +0200
+@@ -200,6 +200,7 @@
+ WHERE short SaveHist;
  WHERE short SendmailWait;
  WHERE short SleepTime INITVAL (1);
 +WHERE short StatusUpdate;
+ WHERE short TimeInc;
  WHERE short Timeout;
- WHERE short WrapMargin;
- WHERE short WriteInc;
+ WHERE short Wrap;
 diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/init.h mutt-1.5.10/init.h
 --- mutt-1.5.10.orig/init.h	2005-10-07 09:28:10.000000000 +0200
 +++ mutt-1.5.10/init.h	2005-10-07 09:28:24.000000000 +0200
@@ -40,9 +30,9 @@
 +  ** .dt %[fmt] .dd the current date and time. ``fmt'' is
 +  **                expanded by the system call ``strftime'';
 +  **                a leading bang disables locales 
-   ** .dt %>X .dd right justify the rest of the string and pad with "X"
-   ** .dt %|X .dd pad to the end of the line with "X"
-   ** .de
+   ** .dt %>X .dd right justify the rest of the string and pad with ``X''
+   ** .dt %|X .dd pad to the end of the line with ``X''
+   ** .dt %*X .dd soft-fill with character ``X'' as pad
 @@ -2671,6 +2674,16 @@
    ** Setting this variable causes the ``status bar'' to be displayed on
    ** the first line of the screen rather than near the bottom.

================================================================
Index: packages/mutt/mutt-cd.signatures_menu.patch
diff -u packages/mutt/mutt-cd.signatures_menu.patch:1.1.4.2 packages/mutt/mutt-cd.signatures_menu.patch:1.1.4.3
--- packages/mutt/mutt-cd.signatures_menu.patch:1.1.4.2	Mon Apr 17 18:17:37 2006
+++ packages/mutt/mutt-cd.signatures_menu.patch	Tue Jul 14 14:16:43 2009
@@ -179,7 +179,7 @@
 diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c
 --- mutt-1.3.27.orig/signature.c	Thu Jan  1 01:00:00 1970
 +++ mutt-1.3.27/signature.c	Wed Jan 23 22:35:32 2002
-@@ -0,0 +1,499 @@
+@@ -0,0 +1,505 @@
 +/*
 + * Copyright (C) 2001 Cedric Duval <cedricduval at free.fr>
 + * 
@@ -402,11 +402,10 @@
 +
 +  snprintf (title, sizeof (title), _("Signature : %s"), file);
 +
-+  menu = mutt_new_menu ();
++  menu = mutt_new_menu (MENU_SIG);
 +  menu->make_entry = sig_make_entry;
 +  menu->tag = NULL;
 +  menu->search = sig_menu_search;
-+  menu->menu = MENU_SIG;
 +  menu->title = title;
 +  menu->help = mutt_compile_help (helpstr, sizeof (helpstr),
 +				  MENU_SIG, SigHelp);
@@ -464,21 +463,29 @@
 +  return result;
 +}
 +
++extern char* SearchBuffers[MENU_MAX];
++
 +static SIG_LIST *sig_search_filter (MUTTMENU *menu, char *path)
 +{
 +  regex_t re;
 +  char buf[STRING];
 +  SIG_LIST *result = NULL;
 +  int i;
++  char* searchBuf = menu->menu >= 0 && menu->menu < MENU_MAX ?
++                    SearchBuffers[menu->menu] : NULL;
 +
-+  snprintf (buf, sizeof(buf), menu->searchBuf ? menu->searchBuf : "");
++  snprintf (buf, sizeof(buf), searchBuf ? searchBuf : "");
 +  if (mutt_get_field (_("Search for: "), buf,
 +		      sizeof (buf), M_CLEAR) != 0 || !buf[0])
 +    return (NULL);
-+  mutt_str_replace (&menu->searchBuf, buf);
++  if (menu->menu >= 0 && menu->menu < MENU_MAX)
++  {
++    mutt_str_replace (&SearchBuffers[menu->menu], buf);
++    searchBuf = SearchBuffers[menu->menu];
++  }
 +
-+  if ((i = regcomp (&re, menu->searchBuf, REG_NOSUB | REG_EXTENDED | REG_WORDS
-+		    | mutt_which_case (menu->searchBuf))) != 0)
++  if ((i = regcomp (&re, searchBuf, REG_NOSUB | REG_EXTENDED | REG_WORDS
++		    | mutt_which_case (searchBuf))) != 0)
 +  {
 +    regerror (i, &re, buf, sizeof (buf));
 +    regfree (&re);
@@ -589,11 +596,10 @@
 +
 +  snprintf (title, sizeof (title), "Signature directory : %s", path);
 +
-+  menu = mutt_new_menu ();
++  menu = mutt_new_menu (MENU_SIG_DIR);
 +  menu->make_entry = sig_dir_make_entry;
 +  menu->search = NULL; /* search within files with sig_search_filter() */
 +  menu->tag = sig_dir_tag;
-+  menu->menu = MENU_SIG_DIR;
 +  menu->title = title;
 +  menu->help = mutt_compile_help (helpstr, sizeof (helpstr),
 +				  MENU_SIG_DIR, SigDirHelp);
@@ -684,3 +690,24 @@
 +++ mutt-1.3.27/PATCHES Thu Dec  6 16:27:55 2001
 @@ -1,0 +1 @@
 +patch-1.3.27.cd.signatures_menu.2.1
+diff --git a/menu.c b/menu.c
+--- a/menu.c
++++ b/menu.c
+@@ -642,7 +640,7 @@
+     mutt_error _("No entries.");
+ }
+ 
+-static void menu_next_entry (MUTTMENU *menu)
++void menu_next_entry (MUTTMENU *menu)
+ {
+   if (menu->current < menu->max - 1)
+   {
+@@ -653,7 +651,7 @@
+     mutt_error _("You are on the last entry.");
+ }
+ 
+-static void menu_prev_entry (MUTTMENU *menu)
++void menu_prev_entry (MUTTMENU *menu)
+ {
+   if (menu->current)
+   {

================================================================
Index: packages/mutt/mutt-folder_columns.patch
diff -u packages/mutt/mutt-folder_columns.patch:1.1 packages/mutt/mutt-folder_columns.patch:1.1.4.1
--- packages/mutt/mutt-folder_columns.patch:1.1	Tue Feb 12 21:56:15 2002
+++ packages/mutt/mutt-folder_columns.patch	Tue Jul 14 14:16:43 2009
@@ -35,7 +35,7 @@
  WHERE short PagerIndexLines;
 --- mutt-1.3.23-orig/browser.c	Sun Oct 28 19:35:26 2001
 +++ mutt-1.3.23/browser.c	Tue Oct 30 22:44:18 2001
-@@ -476,12 +476,13 @@
+@@ -492,12 +492,13 @@
  }
  
  static void init_menu (struct browser_state *state, MUTTMENU *menu, char *title,
@@ -51,7 +51,7 @@
    if(menu->current >= menu->max)
      menu->current = menu->max - 1;
    if (menu->current < 0)
-@@ -634,7 +635,7 @@
+@@ -660,7 +661,7 @@
    menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_FOLDER,
      FolderHelp);
  
@@ -60,7 +60,7 @@
  
    FOREVER
    {
-@@ -765,7 +766,7 @@
+@@ -791,7 +792,7 @@
  	    }
  	    menu->current = 0; 
  	    menu->top = 0; 
@@ -69,7 +69,7 @@
  	    break;
  	  }
  	}
-@@ -863,7 +864,7 @@
+@@ -890,7 +891,7 @@
  	  menu->data = state.entry;
  	  menu->current = 0; 
  	  menu->top = 0; 
@@ -77,8 +77,8 @@
 +	  init_menu (&state, menu, title, sizeof (title), buffy, 1);
  	  MAYBE_REDRAW (menu->redraw);
  	}
- 	break;
-@@ -893,7 +894,7 @@
+ 	/* else leave error on screen */
+@@ -949,7 +950,7 @@
                    sizeof (struct folder_file) * (state.entrylen - (nentry+1)));
  	      state.entrylen--;
  	      mutt_message _("Mailbox deleted.");
@@ -87,7 +87,7 @@
  	      MAYBE_REDRAW (menu->redraw);
  	    }
  	  }
-@@ -933,7 +934,7 @@
+@@ -990,7 +991,7 @@
  	    menu->data = state.entry;
  	    menu->current = 0; 
  	    menu->top = 0; 
@@ -96,18 +96,18 @@
  	  }
  	  else
  #endif
-@@ -947,7 +948,7 @@
- 	      {
- 		menu->current = 0; 
- 		menu->top = 0; 
+@@ -1021,7 +1022,7 @@
+ 		}
+ 		menu->current = 0;
+ 		menu->top = 0;
 -		init_menu (&state, menu, title, sizeof (title), buffy);
 +		init_menu (&state, menu, title, sizeof (title), buffy, 1);
  	      }
  	      else
- 	      {
-@@ -1010,12 +1011,12 @@
- 	      state.imap_browse = 1;
+ 		mutt_error (_("%s is not a directory."), buf);
+@@ -1078,12 +1079,12 @@
  	      imap_browse (LastDir, &state);
+ 	      browser_sort (&state);
  	      menu->data = state.entry;
 -	      init_menu (&state, menu, title, sizeof (title), buffy);
 +	      init_menu (&state, menu, title, sizeof (title), buffy, 1);
@@ -120,7 +120,7 @@
  	    else
  	    {
  	      mutt_error _("Error scanning directory.");
-@@ -1099,7 +1100,7 @@
+@@ -1168,7 +1169,7 @@
  #endif
  	else if (examine_directory (menu, &state, LastDir, prefix) == -1)
  	  goto bail;
@@ -128,7 +128,7 @@
 +	init_menu (&state, menu, title, sizeof (title), buffy, 1);
  	break;
  
-       case OP_BROWSER_NEW_FILE:
+       case OP_BUFFY_LIST:
 --- mutt-1.3.23-orig/menu.c	Sun Oct 28 19:35:26 2001
 +++ mutt-1.3.23/menu.c	Wed Oct 31 09:30:28 2001
 @@ -126,14 +126,14 @@

================================================================
Index: packages/mutt/mutt-forcedotlock.patch
diff -u packages/mutt/mutt-forcedotlock.patch:1.3 packages/mutt/mutt-forcedotlock.patch:1.3.4.1
--- packages/mutt/mutt-forcedotlock.patch:1.3	Wed Jan 23 18:05:08 2002
+++ packages/mutt/mutt-forcedotlock.patch	Tue Jul 14 14:16:43 2009
@@ -1,17 +1,15 @@
-diff -urN mutt-1.3.27.org/configure.in mutt-1.3.27/configure.in
---- mutt-1.3.27.org/configure.in	Wed May  9 17:47:59 2001
-+++ mutt-1.3.27/configure.in	Wed May  9 17:48:59 2001
-@@ -350,12 +350,10 @@
-         exit (1);
- }], mutt_cv_groupwrite=yes, mutt_cv_groupwrite=no, mutt_cv_groupwrite=no)])
+--- mutt-1.5.15/Makefile.am.orig	2007-06-03 12:32:52.028633000 +0200
++++ mutt-1.5.15/Makefile.am	2007-06-03 13:05:48.801283592 +0200
+@@ -138,9 +138,9 @@
+ 		rm -f $(DESTDIR)$(bindir)/mutt.dotlock ;		\
+ 		ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
+ 	fi
+-	if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x at DOTLOCK_GROUP@ != x ; then \
+-		chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/mutt_dotlock && \
+-		chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/mutt_dotlock || \
++	if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x$(DOTLOCK_GROUP) != x ; then \
++		chgrp $(DOTLOCK_GROUP) $(DESTDIR)$(bindir)/mutt_dotlock && \
++		chmod $(DOTLOCK_PERMISSION) $(DESTDIR)$(bindir)/mutt_dotlock || \
+ 		{ echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
+ 	fi
  
--                if test $mutt_cv_groupwrite = yes; then
-+	fi
-                         AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
-                         AC_DEFINE(USE_SETGID,1,[ Define if mutt should run setgid "mail". ])
-                         mutt_cv_setgid=yes
--                fi
--        fi
- fi
- 
- AC_ARG_ENABLE(external_dotlock, [  --enable-external-dotlock  Force use of an external dotlock program],

================================================================
Index: packages/mutt/mutt-home_etc.patch
diff -u packages/mutt/mutt-home_etc.patch:1.1.4.1 packages/mutt/mutt-home_etc.patch:1.1.4.2
--- packages/mutt/mutt-home_etc.patch:1.1.4.1	Fri May 12 01:12:31 2006
+++ packages/mutt/mutt-home_etc.patch	Tue Jul 14 14:16:43 2009
@@ -1,6 +1,6 @@
-diff -Nur mutt-1.5.11.orig/configure.in mutt-1.5.11/configure.in
---- mutt-1.5.11.orig/configure.in	2006-05-11 23:23:13.000000000 +0200
-+++ mutt-1.5.11/configure.in	2006-05-12 00:58:13.000000000 +0200
+diff -Nur mutt-1.5.11.orig/configure.ac mutt-1.5.11/configure.ac
+--- mutt-1.5.11.orig/configure.ac	2006-05-11 23:23:13.000000000 +0200
++++ mutt-1.5.11/configure.ac	2006-05-12 00:58:13.000000000 +0200
 @@ -816,6 +816,32 @@
  fi])
  dnl -- end cache --
@@ -107,7 +107,7 @@
    }
  
    Tempdir = safe_strdup ((p = getenv ("TMPDIR")) ? p : "/tmp");
-@@ -2415,13 +2434,13 @@
+@@ -2981,15 +2981,15 @@
    
    if (!Muttrc)
    {
@@ -122,7 +122,10 @@
      if (access(buffer, F_OK) == -1)
 -      snprintf (buffer, sizeof (buffer), "%s/.mutt/muttrc", NONULL(Homedir));
 +      snprintf (buffer, sizeof (buffer), "%s/.mutt/muttrc", NONULL(H_CFDIR));
-     
+     if (access(buffer, F_OK) == -1) /* default to .muttrc for alias_file */
+-      snprintf (buffer, sizeof(buffer), "%s/.muttrc", NONULL(Homedir));
++      snprintf (buffer, sizeof(buffer), "%s/.muttrc", NONULL(H_CFDIR));
+ 
      default_rc = 1;
      Muttrc = safe_strdup (buffer);
 @@ -2526,10 +2545,10 @@

================================================================
Index: packages/mutt/mutt-manual.patch
diff -u packages/mutt/mutt-manual.patch:1.1.4.5 packages/mutt/mutt-manual.patch:1.1.4.6
--- packages/mutt/mutt-manual.patch:1.1.4.5	Wed Aug 23 22:36:13 2006
+++ packages/mutt/mutt-manual.patch	Tue Jul 14 14:16:43 2009
@@ -1,5 +1,5 @@
---- mutt-1.5.13/Muttrc.head.in.orig	2006-08-23 22:29:05.494260250 +0200
-+++ mutt-1.5.13/Muttrc.head.in	2006-08-23 22:29:30.383815750 +0200
+--- mutt-1.5.18/doc/Muttrc.head.in.orig	2006-08-23 22:29:05.494260250 +0200
++++ mutt-1.5.18/doc/Muttrc.head	2006-08-23 22:29:30.383815750 +0200
 @@ -15,7 +15,7 @@
  macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlview to extract URLs out of a message"
  

================================================================
Index: packages/mutt/mutt-pgp_hook.patch
diff -u packages/mutt/mutt-pgp_hook.patch:1.1 packages/mutt/mutt-pgp_hook.patch:1.1.4.1
--- packages/mutt/mutt-pgp_hook.patch:1.1	Thu May 23 15:21:13 2002
+++ packages/mutt/mutt-pgp_hook.patch	Tue Jul 14 14:16:43 2009
@@ -1,317 +1,30 @@
-diff -rU3 --new-file mutt-1.3.99-vanilla/PATCHES mutt-1.3.99/PATCHES
---- mutt-1.3.99-vanilla/PATCHES	Thu May 23 14:12:14 2002
-+++ mutt-1.3.99/PATCHES	Thu May 23 14:13:33 2002
-@@ -1,3 +1,4 @@
-+patch-1.3.28.dw.pgp-hook.3
- vvv.quote
- patch-1.3.27.cd.signatures_menu.2.1
- patch-1.3.25.cd.purge_command.2
-diff -rU3 --new-file mutt-1.3.99-vanilla/doc/manual.sgml.head mutt-1.3.99/doc/manual.sgml.head
---- mutt-1.3.99-vanilla/doc/manual.sgml.head	Thu May 23 14:12:14 2002
-+++ mutt-1.3.99/doc/manual.sgml.head	Thu May 23 14:13:33 2002
-@@ -1389,7 +1389,9 @@
- or because, for some reasons, you need to override the key Mutt would
- normally use.  The pgp-hook command provides a method by which you can
- specify the ID of the public key to be used when encrypting messages to
--a certain recipient.
-+a certain recipient.  You may use multiple pgp-hook's with the same
-+pattern; multiple matching pgp-hook's result in the use of multiple
-+keyids for recipient.
- 
- <sect1>Adding key sequences to the keyboard buffer<label id="push">
- <p>
-diff -rU3 --new-file mutt-1.3.99-vanilla/doc/manual.sgml.head.orig mutt-1.3.99/doc/manual.sgml.head.orig
---- mutt-1.3.99-vanilla/doc/manual.sgml.head.orig	Thu Apr 25 15:28:00 2002
-+++ mutt-1.3.99/doc/manual.sgml.head.orig	Thu May 23 14:12:14 2002
-@@ -525,6 +525,7 @@
- c       edit-cc                 edit the Cc field
- b       edit-bcc                edit the Bcc field
- y       send-message            send the message
-+ESC s	signature-menu		select a signature and append it to your mail
- s       edit-subject            edit the Subject
- f       edit-fcc                specify an ``Fcc'' mailbox
- p       pgp-menu                select PGP options (``i'' version only)
-@@ -2115,8 +2116,40 @@
- with large volume mailing lists easier because you can easily delete
- uninteresting threads and quickly find topics of value.
- 
-+<sect1>Editing threads
-+<p>
-+Mutt has the ability to dynamically restructure threads that are broken
-+either by misconfigured software or bad behaviour from some
-+correspondents. This allows to clean your mailboxes (<em/mbox/ and <em/mmdf/
-+formats) from these annoyances which make it hard to follow a discussion.
-+
-+<sect2>Linking threads
-+<p>
-+
-+Some mailers tend to "forget" to correctly set the "In-Reply-To:" and
-+"References:" headers when replying to a message. This results in broken
-+discussions because Mutt has not enough information to guess the correct
-+threading.
-+You can fix this by tagging the reply to a mail, then go onto this mail
-+and use the ``link-threads'' function (bound to & by default). The
-+reply will then be connected to its "parent" message.
-+
-+You can also connect multiple childs at once, tagging them and using the
-+tag-prefix command (';') or the auto_tag option.
-+
-+<sect2>Breaking threads
-+<p>
-+
-+On mailing lists, some people are in the bad habit of starting a new
-+discussion by hitting "reply" to any message from the list and changing
-+the subject to a totally unrelated one.
-+You can fix such threads by using the ``break-thread'' function (bound
-+by default to #), which will turn the subthread starting from the
-+current message into a whole different thread.
-+
- <sect1>Delivery Status Notification (DSN) Support
- <p>
-+
- RFC1894 defines a set of MIME content types for relaying information
- about the status of electronic mail messages.  These can be thought of as
- ``return receipts.'' Berkeley sendmail 8.8.x currently has some command
-@@ -2319,6 +2352,176 @@
- macro pager \cb |urlview\n
- </verb></tscreen>
- 
-+<sect1>Compressed folders Support (OPTIONAL)
-+<p>
-+
-+If Mutt was compiled with compressed folders support (by running the
-+<em/configure/ script with the <em/--enable-compressed/ 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 (<ref id="open-hook" name="open-hook">,
-+<ref id="close-hook" name="close-hook"> and <ref id="append-hook"
-+name="append-hook">) which define commands to uncompress and compress
-+a folder and to append messages to an existing compressed folder 
-+respectively.
-+
-+For example:
-+
-+<tscreen><verb>
-+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" 
-+</verb></tscreen>
-+
-+You do not have to specify all of the commands. If you omit <ref
-+id="append-hook" name="append-hook">, the folder will be open and
-+closed again each time you will add to it. If you omit <ref
-+id="close-hook" name="close-hook"> (or give empty command) , the
-+folder will be open in the  mode. If you specify <ref
-+id="append-hook" name="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
-+&dquot;.&dquot; as a regexp. But this may be surprising if your
-+compressing script produces empty files. In this situation, unset <ref
-+id="save_empty" name="&dollar;save&lowbar;empty">, so that the compressed file
-+will be removed if you delete all of the messages.
-+
-+<sect2>Open a compressed mailbox for reading<label id="open-hook">
-+<p>
-+Usage: <tt/open-hook/ <em/regexp/ &dquot;<em/command/&dquot;
-+
-+The <em/command/ is the command that can be used for opening the
-+folders whose names match <em/regexp/.
-+
-+The <em/command/ string is the printf-like format string, and it
-+should accept two parameters: &percnt;f, which is replaced with the
-+(compressed) folder name, and &percnt;t which is replaced with the
-+name of the temporary folder to which to write.
-+
-+&percnt;f and &percnt;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, &percnt;&percnt; is replaced by
-+&percnt;, as in printf, and any other &percnt;anything is left as is.
-+
-+The <em/command/ should <bf/not/ remove the original compressed file.
-+The <em/command/ should return non-zero exit status if it fails, so
-+mutt knows something's wrong.
-+
-+Example:
-+
-+<tscreen><verb>
-+open-hook \\.gz$ "gzip -cd %f &gt; %t" 
-+</verb></tscreen>
-+
-+If the <em/command/ is empty, this operation is disabled for this file
-+type.
-+
-+<sect2>Write a compressed mailbox<label id="close-hook">
-+<p>
-+Usage: <tt/close-hook/ <em/regexp/ &dquot;<em/command/&dquot;
-+
-+This is used to close the folder that was open with the <ref id="open-hook" 
-+name="open-hook"> command after some changes were made to it.
-+
-+The <em/command/ string is the command that can be used for closing the
-+folders whose names match <em/regexp/. It has the same format as in 
-+the <ref id="open-hook" name="open-hook"> command. Temporary folder
-+in this case is the folder previously produced by the <ref id="open-hook"
-+name="open-hook"> command.
-+
-+The <em/command/ should <bf/not/ remove the decompressed file. The
-+<em/command/ should return non-zero exit status if it fails, so mutt
-+knows something's wrong.
-+
-+Example:
-+
-+<tscreen><verb>
-+close-hook \\.gz$ "gzip -c %t &gt; %f"
-+</verb></tscreen>
-+
-+If the <em/command/ is empty, this operation is disabled for this file
-+type, and the file can only be open in the read-only mode.
-+
-+<ref id="close-hook" name ="close-hook"> is not called when you exit
-+from the folder if the folder was not changed.
-+
-+<sect2>Append a message to a compressed mailbox<label id="append-hook">
-+<p>
-+Usage: <tt/append-hook/ <em/regexp/ &dquot;<em/command/&dquot;
-+
-+This command is used for saving to an existing compressed folder.
-+The <em/command/ is the command that can be used for appending to the
-+folders whose names match <em/regexp/. It has the same format as in 
-+ the <ref id="open-hook" name="open-hook"> command.
-+The temporary folder in this case contains the messages that are being
-+appended. 
-+
-+The <em/command/ should <bf/not/ remove the decompressed file. The
-+<em/command/ should return non-zero exit status if it fails, so mutt
-+knows something's wrong.
-+
-+Example:
-+
-+<tscreen><verb>
-+append-hook \\.gz$ "gzip -c %t &gt;&gt; %f" 
-+</verb></tscreen>
-+
-+When <ref id="append-hook" name="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 (<ref id="mbox_type"
-+name="&dollar;mbox&lowbar;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, <ref id="close-hook"
-+name="close-hook"> is called, and not <ref id="append-hook"
-+name="append-hook">. <ref id="append-hook" name="append-hook"> is only
-+for appending to existing folders.
-+
-+If the <em/command/ is empty, this operation is disabled for this file
-+type. In this case, the folder will be open and closed again (using
-+<ref id="open-hook" name="open-hook"> and <ref id="close-hook" 
-+name="close-hook">respectively) each time you will add to it.
-+
-+<sect2>Encrypted folders
-+<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:
-+
-+<tscreen><verb>
-+open-hook  \\.pgp$ "pgp -f &lt; %f &gt; %t"
-+close-hook \\.pgp$ "pgp -fe YourPgpUserIdOrKeyId &lt; %t &gt; %f"
-+</verb></tscreen>
-+
-+Please note, that PGP does not support appending to an encrypted
-+folder, so there is no append-hook defined.
-+
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-Muttrc_mbox_path.patch?r1=1.1&r2=1.1.2.1&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-bj.status-time.patch?r1=1.1.4.1&r2=1.1.4.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-cd.signatures_menu.patch?r1=1.1.4.2&r2=1.1.4.3&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-folder_columns.patch?r1=1.1&r2=1.1.4.1&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-forcedotlock.patch?r1=1.3&r2=1.3.4.1&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-home_etc.patch?r1=1.1.4.1&r2=1.1.4.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-manual.patch?r1=1.1.4.5&r2=1.1.4.6&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-pgp_hook.patch?r1=1.1&r2=1.1.4.1&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-pl.po-update.patch?r1=1.1.2.3&r2=1.1.2.4&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-rr.compressed.patch?r1=1.4.4.8&r2=1.4.4.9&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-vvv.nntp.patch?r1=1.1.2.2&r2=1.1.2.3&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt-vvv.quote.patch?r1=1.1.2.1&r2=1.1.2.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mutt/mutt.desktop?r1=1.12&r2=1.12.2.1&f=u



More information about the pld-cvs-commit mailing list