X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/4c13acfc45a942f5f481ce6a3dfcea461da505ad..9039efff71e58683a07dc3eee8ca706ce789716a:/upstream/extra-patches/compressed-folders diff --git a/upstream/extra-patches/compressed-folders b/upstream/extra-patches/compressed-folders index f12621e..3a5c3ae 100644 --- a/upstream/extra-patches/compressed-folders +++ b/upstream/extra-patches/compressed-folders @@ -7,19 +7,18 @@ The home page for this patch is: http://www.spinnaker.de/mutt/compressed/ * Patch last synced with upstream: - - Date: 2005-03-10 - - File: http://www.spinnaker.de/mutt/compressed/patch-1.5.8.rr.compressed.1.gz + - Date: 2005-08-14 + - File: http://www.spinnaker.de/mutt/compressed/patch-1.5.10.rr.compressed.1.gz * Changes made: - filterdiff -p1 \ - $(for f in Makefile.in config.h.in configure Muttrc doc/manual.txt \ + $(for f in Makefile.in config.h.in configure 'Muttrc*' doc/manual.txt \ doc/manual.sgml 'doc/manual*.html' doc/muttrc.man; do echo "-x $f"; done) - - 2005-03-10: fix configure.in to match latest CVS. == END PATCH -diff -urN mutt-1.5.8/compress.c mutt-1.5.8-ro/compress.c ---- mutt-1.5.8/compress.c 1970-01-01 01:00:00.000000000 +0100 -+++ mutt-1.5.8-ro/compress.c 2005-02-13 18:54:39.000000000 +0100 +diff -urN mutt-1.5.10/compress.c mutt-1.5.10-ro/compress.c +--- mutt-1.5.10/compress.c 1970-01-01 01:00:00.000000000 +0100 ++++ mutt-1.5.10-ro/compress.c 2005-08-14 12:10:21.000000000 +0200 @@ -0,0 +1,487 @@ +/* + * Copyright (C) 1997 Alain Penders @@ -508,9 +507,9 @@ diff -urN mutt-1.5.8/compress.c mutt-1.5.8-ro/compress.c +} + +#endif /* USE_COMPRESSED */ -diff -urN mutt-1.5.8/compress.h mutt-1.5.8-ro/compress.h ---- mutt-1.5.8/compress.h 1970-01-01 01:00:00.000000000 +0100 -+++ mutt-1.5.8-ro/compress.h 2005-02-13 18:54:39.000000000 +0100 +diff -urN mutt-1.5.10/compress.h mutt-1.5.10-ro/compress.h +--- mutt-1.5.10/compress.h 1970-01-01 01:00:00.000000000 +0100 ++++ mutt-1.5.10-ro/compress.h 2005-08-14 12:10:21.000000000 +0200 @@ -0,0 +1,27 @@ +/* + * Copyright (C) 1997 Alain Penders @@ -539,12 +538,12 @@ diff -urN mutt-1.5.8/compress.h mutt-1.5.8-ro/compress.h +int mutt_test_compress_command (const char *); +int mutt_check_mailbox_compressed (CONTEXT *); +void mutt_fast_close_compressed (CONTEXT *); -diff -urN mutt-1.5.8/config.h.in mutt-1.5.8-ro/config.h.in -diff -urN mutt-1.5.8/configure mutt-1.5.8-ro/configure -diff -urN mutt-1.5.8/configure.in mutt-1.5.8-ro/configure.in ---- mutt-1.5.8/configure.in 2005-02-12 21:57:16.000000000 +0100 -+++ mutt-1.5.8-ro/configure.in 2005-02-13 18:54:39.000000000 +0100 -@@ -776,6 +776,11 @@ +diff -urN mutt-1.5.10/config.h.in mutt-1.5.10-ro/config.h.in +diff -urN mutt-1.5.10/configure mutt-1.5.10-ro/configure +diff -urN mutt-1.5.10/configure.in mutt-1.5.10-ro/configure.in +--- mutt-1.5.10/configure.in 2005-08-11 23:49:24.000000000 +0200 ++++ mutt-1.5.10-ro/configure.in 2005-08-14 12:10:21.000000000 +0200 +@@ -753,6 +753,11 @@ AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ]) fi]) @@ -556,10 +555,10 @@ diff -urN mutt-1.5.8/configure.in mutt-1.5.8-ro/configure.in 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.8/curs_main.c mutt-1.5.8-ro/curs_main.c ---- mutt-1.5.8/curs_main.c 2005-02-12 20:22:15.000000000 +0100 -+++ mutt-1.5.8-ro/curs_main.c 2005-02-13 18:54:39.000000000 +0100 -@@ -1076,6 +1076,11 @@ +diff -urN mutt-1.5.10/curs_main.c mutt-1.5.10-ro/curs_main.c +--- mutt-1.5.10/curs_main.c 2005-08-11 21:37:01.000000000 +0200 ++++ mutt-1.5.10-ro/curs_main.c 2005-08-14 12:10:21.000000000 +0200 +@@ -1087,6 +1087,11 @@ { int check; @@ -571,222 +570,16 @@ diff -urN mutt-1.5.8/curs_main.c mutt-1.5.8-ro/curs_main.c mutt_str_replace (&LastFolder, Context->path); oldcount = Context ? Context->msgcount : 0; -diff -urN mutt-1.5.8/doc/manual-4.html mutt-1.5.8-ro/doc/manual-4.html -diff -urN mutt-1.5.8/doc/manual-6.html mutt-1.5.8-ro/doc/manual-6.html -diff -urN mutt-1.5.8/doc/manual.html mutt-1.5.8-ro/doc/manual.html -diff -urN mutt-1.5.8/doc/manual.sgml mutt-1.5.8-ro/doc/manual.sgml -diff -urN mutt-1.5.8/doc/manual.sgml.head mutt-1.5.8-ro/doc/manual.sgml.head ---- mutt-1.5.8/doc/manual.sgml.head 2005-02-12 20:41:36.000000000 +0100 -+++ mutt-1.5.8-ro/doc/manual.sgml.head 2005-02-13 18:54:39.000000000 +0100 -@@ -2537,6 +2537,176 @@ - macro pager \cb |urlview\n - - -+Compressed folders Support (OPTIONAL) -+

-+ -+If Mutt was compiled with compressed folders support (by running the -+, -+ and ) 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 , the folder will be open and -+closed again each time you will add to it. If you omit (or give empty command) , the -+folder will be open in the mode. If you specify 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 , so that the compressed file -+will be removed if you delete all of the messages. -+ -+Open a compressed mailbox for reading

-+Usage: -+open-hook \\.gz$ "gzip -cd %f > %t" -+ -+ -+If the Write a compressed mailbox

-+Usage: command after some changes were made to it. -+ -+The command. Temporary folder -+in this case is the folder previously produced by the command. -+ -+The -+close-hook \\.gz$ "gzip -c %t > %f" -+ -+ -+If the is not called when you exit -+from the folder if the folder was not changed. -+ -+Append a message to a compressed mailbox

-+Usage: command. -+The temporary folder in this case contains the messages that are being -+appended. -+ -+The -+append-hook \\.gz$ "gzip -c %t >> %f" -+ -+ -+When 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 () 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, is called, and not . is only -+for appending to existing folders. -+ -+If the and respectively) each time you will add to it. -+ -+Encrypted folders -+

-+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" -+ -+ -+Mutt's MIME Support -

- Quite a bit of effort has been made to make Mutt the premier text-mode -@@ -3116,6 +3286,8 @@ - - -+ - - - -+ - - - -+ - - #include #include -@@ -1020,6 +1024,12 @@ +@@ -1014,6 +1018,12 @@ int mbox_close_mailbox (CONTEXT *ctx) { mx_unlock_file (ctx->path, fileno (ctx->fp), 1); @@ -923,10 +716,10 @@ diff -urN mutt-1.5.8/mbox.c mutt-1.5.8-ro/mbox.c mutt_unblock_signals (); mx_fastclose_mailbox (ctx); return 0; -diff -urN mutt-1.5.8/mutt.h mutt-1.5.8-ro/mutt.h ---- mutt-1.5.8/mutt.h 2005-02-12 21:01:20.000000000 +0100 -+++ mutt-1.5.8-ro/mutt.h 2005-02-13 18:54:40.000000000 +0100 -@@ -159,6 +159,11 @@ +diff -urN mutt-1.5.10/mutt.h mutt-1.5.10-ro/mutt.h +--- mutt-1.5.10/mutt.h 2005-08-11 21:37:23.000000000 +0200 ++++ mutt-1.5.10-ro/mutt.h 2005-08-14 12:10:21.000000000 +0200 +@@ -161,6 +161,11 @@ #define M_ACCOUNTHOOK (1<<9) #define M_REPLYHOOK (1<<10) #define M_SEND2HOOK (1<<11) @@ -938,7 +731,7 @@ diff -urN mutt-1.5.8/mutt.h mutt-1.5.8-ro/mutt.h /* tree characters for linearize_tree and print_enriched_string */ #define M_TREE_LLCORNER 1 -@@ -823,6 +828,11 @@ +@@ -829,6 +834,11 @@ void *data; /* driver specific data */ #endif /* USE_IMAP */ @@ -950,40 +743,12 @@ diff -urN mutt-1.5.8/mutt.h mutt-1.5.8-ro/mutt.h short magic; /* mailbox type */ unsigned int locked : 1; /* is the mailbox locked? */ -diff -urN mutt-1.5.8/Muttrc mutt-1.5.8-ro/Muttrc -diff -urN mutt-1.5.8/Muttrc.head mutt-1.5.8-ro/Muttrc.head ---- mutt-1.5.8/Muttrc.head 2005-02-12 21:57:45.000000000 +0100 -+++ mutt-1.5.8-ro/Muttrc.head 2005-02-13 18:54:40.000000000 +0100 -@@ -19,6 +19,11 @@ - macro index "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" - macro pager "!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 -urN mutt-1.5.8/Muttrc.head.in mutt-1.5.8-ro/Muttrc.head.in ---- mutt-1.5.8/Muttrc.head.in 2002-01-24 13:10:47.000000000 +0100 -+++ mutt-1.5.8-ro/Muttrc.head.in 2005-02-13 18:54:40.000000000 +0100 -@@ -19,6 +19,11 @@ - macro index "!less @docdir@/manual.txt\n" "Show Mutt documentation" - macro pager "!less @docdir@/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 -urN mutt-1.5.8/mx.c mutt-1.5.8-ro/mx.c ---- mutt-1.5.8/mx.c 2005-02-03 19:47:53.000000000 +0100 -+++ mutt-1.5.8-ro/mx.c 2005-02-13 18:54:40.000000000 +0100 +diff -urN mutt-1.5.10/Muttrc mutt-1.5.10-ro/Muttrc +diff -urN mutt-1.5.10/Muttrc.head mutt-1.5.10-ro/Muttrc.head +diff -urN mutt-1.5.10/Muttrc.head.in mutt-1.5.10-ro/Muttrc.head.in +diff -urN mutt-1.5.10/mx.c mutt-1.5.10-ro/mx.c +--- mutt-1.5.10/mx.c 2005-08-02 09:08:01.000000000 +0200 ++++ mutt-1.5.10-ro/mx.c 2005-08-14 12:10:21.000000000 +0200 @@ -30,6 +30,10 @@ #include "keymap.h" #include "url.h" @@ -1070,7 +835,7 @@ diff -urN mutt-1.5.8/mx.c mutt-1.5.8-ro/mx.c mx_fastclose_mailbox (ctx); return 0; -@@ -1325,6 +1360,11 @@ +@@ -1330,6 +1365,11 @@ { int rc; @@ -1082,9 +847,9 @@ diff -urN mutt-1.5.8/mx.c mutt-1.5.8-ro/mx.c if (ctx) { if (ctx->locked) lock = 0; -diff -urN mutt-1.5.8/mx.h mutt-1.5.8-ro/mx.h ---- mutt-1.5.8/mx.h 2003-08-05 15:58:16.000000000 +0200 -+++ mutt-1.5.8-ro/mx.h 2005-02-13 18:54:40.000000000 +0100 +diff -urN mutt-1.5.10/mx.h mutt-1.5.10-ro/mx.h +--- mutt-1.5.10/mx.h 2003-08-05 15:58:16.000000000 +0200 ++++ mutt-1.5.10-ro/mx.h 2005-08-14 12:10:21.000000000 +0200 @@ -40,6 +40,9 @@ #ifdef USE_POP , M_POP @@ -1095,17 +860,17 @@ diff -urN mutt-1.5.8/mx.h mutt-1.5.8-ro/mx.h }; WHERE short DefaultMagic INITVAL (M_MBOX); -diff -urN mutt-1.5.8/PATCHES mutt-1.5.8-ro/PATCHES ---- mutt-1.5.8/PATCHES 2005-02-12 21:55:51.000000000 +0100 -+++ mutt-1.5.8-ro/PATCHES 2005-02-13 18:54:40.000000000 +0100 +diff -urN mutt-1.5.10/PATCHES mutt-1.5.10-ro/PATCHES +--- mutt-1.5.10/PATCHES 2005-08-11 23:27:30.000000000 +0200 ++++ mutt-1.5.10-ro/PATCHES 2005-08-14 12:10:35.000000000 +0200 @@ -0,0 +1 @@ -+patch-1.5.8.rr.compressed.1 -diff -urN mutt-1.5.8/po/de.po mutt-1.5.8-ro/po/de.po ---- mutt-1.5.8/po/de.po 2005-02-12 21:58:50.000000000 +0100 -+++ mutt-1.5.8-ro/po/de.po 2005-02-13 18:56:06.000000000 +0100 -@@ -710,6 +710,48 @@ - msgid "PGP already selected. Clear & continue ? " - msgstr "PGP bereits ausgewählt. Löschen und weiter?" ++patch-1.5.10.rr.compressed.1 +diff -urN mutt-1.5.10/po/de.po mutt-1.5.10-ro/po/de.po +--- mutt-1.5.10/po/de.po 2005-08-11 23:50:35.000000000 +0200 ++++ mutt-1.5.10-ro/po/de.po 2005-08-14 12:12:20.000000000 +0200 +@@ -1281,6 +1281,48 @@ + msgid "Failed to figure out sender" + msgstr "Kann Datei nicht öffnen, um Nachrichtenkopf zu untersuchen." +#: compress.c:203 mbox.c:661 +msgid "Mailbox was corrupted!" @@ -1152,7 +917,7 @@ diff -urN mutt-1.5.8/po/de.po mutt-1.5.8-ro/po/de.po #: crypt.c:69 #, c-format msgid " (current time: %c)" -@@ -1300,6 +1342,10 @@ +@@ -1901,6 +1943,10 @@ msgid "Help for %s" msgstr "Hilfe für %s" @@ -1163,7 +928,7 @@ diff -urN mutt-1.5.8/po/de.po mutt-1.5.8-ro/po/de.po #: hook.c:246 #, c-format msgid "unhook: Can't do unhook * from within a hook." -@@ -2713,18 +2759,10 @@ +@@ -3383,18 +3429,10 @@ msgid "Mailbox is corrupt!" msgstr "Mailbox fehlerhaft!" @@ -1171,31 +936,31 @@ diff -urN mutt-1.5.8/po/de.po mutt-1.5.8-ro/po/de.po -msgid "Mailbox was corrupted!" -msgstr "Mailbox wurde zerstört!" - - #: mbox.c:699 mbox.c:953 + #: mbox.c:701 mbox.c:952 msgid "Fatal error! Could not reopen mailbox!" msgstr "Fataler Fehler, konnte Mailbox nicht erneut öffnen!" --#: mbox.c:708 +-#: mbox.c:710 -msgid "Unable to lock mailbox!" -msgstr "Kann Mailbox nicht für exklusiven Zugriff sperren!" - #. this means ctx->changed or ctx->deleted was set, but no #. * messages were found to be changed or deleted. This should #. * never happen, is we presume it is a bug in mutt. -diff -urN mutt-1.5.8/po/POTFILES.in mutt-1.5.8-ro/po/POTFILES.in ---- mutt-1.5.8/po/POTFILES.in 2002-03-27 09:44:17.000000000 +0100 -+++ mutt-1.5.8-ro/po/POTFILES.in 2005-02-13 18:54:40.000000000 +0100 +diff -urN mutt-1.5.10/po/POTFILES.in mutt-1.5.10-ro/po/POTFILES.in +--- mutt-1.5.10/po/POTFILES.in 2005-08-03 11:17:47.000000000 +0200 ++++ mutt-1.5.10-ro/po/POTFILES.in 2005-08-14 12:13:18.000000000 +0200 @@ -8,6 +8,7 @@ color.c commands.c compose.c +compress.c + crypt-gpgme.c crypt.c - curs_lib.c - curs_main.c -diff -urN mutt-1.5.8/status.c mutt-1.5.8-ro/status.c ---- mutt-1.5.8/status.c 2005-02-03 19:47:53.000000000 +0100 -+++ mutt-1.5.8-ro/status.c 2005-02-13 18:54:40.000000000 +0100 + cryptglue.c +diff -urN mutt-1.5.10/status.c mutt-1.5.10-ro/status.c +--- mutt-1.5.10/status.c 2005-02-03 19:47:53.000000000 +0100 ++++ mutt-1.5.10-ro/status.c 2005-08-14 12:10:21.000000000 +0200 @@ -97,6 +97,14 @@ case 'f':