[packages/mutt] Up to 2.4.3

arekm arekm at pld-linux.org
Thu Oct 29 08:49:52 CET 2026


commit 4f0a069ab9345044af40010ac164eb6976a6faf8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 29 00:32:37 2026 +0100

    Up to 2.4.3
    
    Fixes CVE-2026-107570, CVE-2026-43864, CVE-2026-43863,
    CVE-2026-43862, CVE-2026-43861, CVE-2026-43860, CVE-2026-43859.

 mutt-Muttrc.patch              |  32 ++++-----
 mutt-bj.status-time.patch      |  83 +++++++++++----------
 mutt-cd.signatures_menu.patch  | 160 +++++++++++++++++++++--------------------
 mutt-crypt-autoselectkey.patch |  70 +++++++++---------
 mutt-keep_to.patch             |  38 +++++-----
 mutt-null_name.patch           |  14 ++--
 mutt-pl.po-update.patch        |  36 ----------
 mutt-vvv.initials.patch        |  59 +++++++--------
 mutt-vvv.quote.patch           |  88 +++++++++++------------
 mutt.spec                      |  10 +--
 10 files changed, 282 insertions(+), 308 deletions(-)
---
diff --git a/mutt.spec b/mutt.spec
index be6f2a4..59d676d 100644
--- a/mutt.spec
+++ b/mutt.spec
@@ -31,17 +31,16 @@ Summary(ru.UTF-8):	Почтовая клиентская программа Mutt
 Summary(tr.UTF-8):	Mutt elektronik posta programı
 Summary(uk.UTF-8):	Поштова клієнтська програма Mutt
 Name:		mutt
-Version:	2.2.16
+Version:	2.4.3
 Release:	1
 Epoch:		6
 License:	GPL v2+
 Group:		Applications/Mail
 Source0:	ftp://ftp.mutt.org/pub/mutt/%{name}-%{version}.tar.gz
-# Source0-md5:	bf490012d216492e63f67358860b1123
+# Source0-md5:	1f04ae804c632e7f7240dd88377b0491
 Source1:	%{name}.desktop
 Source2:	%{name}.png
 Source3:	%{name}.1.pl
-Patch0:		%{name}-pl.po-update.patch
 Patch1:		%{name}-bj.status-time.patch
 # http://mutt.org.ua/download/
 Patch2:		%{name}-vvv.quote.patch
@@ -87,6 +86,7 @@ BuildRequires:	openssl-devel >= 0.9.7d
 %{?with_slang:BuildRequires:	slang-devel}
 %{?with_autocrypt:BuildRequires:	sqlite3-devel >= 3.20}
 %{?with_tokyocabinet:BuildRequires:	tokyocabinet-devel}
+BuildRequires:	zlib-devel
 Requires:	gpgme >= 1:1.4.0
 %{?with_home_etc:Requires:	home-etc-lib >= 1.0.8}
 Requires:	iconv
@@ -153,7 +153,6 @@ Mutt - це невеликий, але потужний повноекранни
 
 %prep
 %setup -q
-%patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
@@ -212,7 +211,8 @@ Mutt - це невеликий, але потужний повноекранни
 	%{?with_sasl:--with-sasl} \
 	%{?with_slang:--with-slang} \
 	--with-ssl \
-	%{?with_tokyocabinet:--with-tokyocabinet}
+	%{?with_tokyocabinet:--with-tokyocabinet} \
+	--with-zlib
 
 %{__make} -j1 -C doc
 %{__make}
diff --git a/mutt-Muttrc.patch b/mutt-Muttrc.patch
index 3e48338..316a331 100644
--- a/mutt-Muttrc.patch
+++ b/mutt-Muttrc.patch
@@ -1,6 +1,6 @@
---- mutt-2.2.13/doc/Muttrc.orig	2024-10-27 16:52:16.897389301 +0100
-+++ mutt-2.2.13/doc/Muttrc	2024-10-27 17:10:05.321601153 +0100
-@@ -1804,6 +1804,7 @@ attachments   -I message/external-body
+--- mutt-2.4.3/doc/Muttrc.orig
++++ mutt-2.4.3/doc/Muttrc
+@@ -1804,6 +1804,7 @@
  # 
  # 
  # set forward_format="[%a: %s]"
@@ -8,7 +8,7 @@
  #
  # Name: forward_format
  # Type: string
-@@ -2036,6 +2037,7 @@ attachments   -I message/external-body
+@@ -2036,6 +2037,7 @@
  # 
  # 
  # set history=10
@@ -16,7 +16,7 @@
  #
  # Name: history
  # Type: number
-@@ -2846,6 +2848,7 @@ attachments   -I message/external-body
+@@ -2869,6 +2871,7 @@
  # 
  # 
  # set mark_old=yes
@@ -24,7 +24,7 @@
  #
  # Name: mark_old
  # Type: boolean
-@@ -3101,6 +3104,7 @@ attachments   -I message/external-body
+@@ -3124,6 +3127,7 @@
  # 
  # 
  # set mime_forward=no
@@ -32,7 +32,7 @@
  #
  # Name: mime_forward
  # Type: quadoption
-@@ -3298,6 +3302,7 @@ attachments   -I message/external-body
+@@ -3321,6 +3325,7 @@
  # 
  # 
  # set pager_context=0
@@ -40,7 +40,7 @@
  #
  # Name: pager_context
  # Type: number
-@@ -3328,6 +3333,7 @@ attachments   -I message/external-body
+@@ -3351,6 +3356,7 @@
  # 
  # 
  # set pager_index_lines=0
@@ -48,7 +48,7 @@
  #
  # Name: pager_index_lines
  # Type: number
-@@ -4351,6 +4357,7 @@ attachments   -I message/external-body
+@@ -4374,6 +4380,7 @@
  # 
  # 
  # set quit=yes
@@ -56,7 +56,7 @@
  #
  # Name: quit
  # Type: quadoption
-@@ -4537,6 +4544,7 @@ attachments   -I message/external-body
+@@ -4560,6 +4567,7 @@
  # 
  # 
  # set reply_regexp="^(re)(\\\\[[0-9]+\\\\])*:[ \t]*"
@@ -64,7 +64,7 @@
  #
  # Name: reply_regexp
  # Type: regular expression (localized)
-@@ -4853,6 +4861,7 @@ attachments   -I message/external-body
+@@ -4876,6 +4884,7 @@
  # 
  # 
  # set send_charset="us-ascii:iso-8859-1:utf-8"
@@ -72,7 +72,7 @@
  #
  # Name: send_charset
  # Type: string
-@@ -5231,6 +5240,7 @@ attachments   -I message/external-body
+@@ -5254,6 +5263,7 @@
  # 
  # 
  # set simple_search="~f %s | ~s %s"
@@ -80,7 +80,7 @@
  #
  # Name: simple_search
  # Type: string
-@@ -5748,6 +5758,7 @@ attachments   -I message/external-body
+@@ -5814,6 +5824,7 @@
  # 
  # 
  # set sort=date
@@ -88,7 +88,7 @@
  #
  # Name: sort
  # Type: sort order
-@@ -6341,6 +6352,7 @@ attachments   -I message/external-body
+@@ -6410,6 +6421,7 @@
  # 
  # 
  # set thorough_search=yes
@@ -96,7 +96,7 @@
  #
  # Name: thorough_search
  # Type: boolean
-@@ -6371,6 +6383,7 @@ attachments   -I message/external-body
+@@ -6440,6 +6452,7 @@
  # 
  # 
  # set tilde=no
@@ -104,7 +104,7 @@
  #
  # Name: tilde
  # Type: boolean
-@@ -6780,3 +6793,4 @@ attachments   -I message/external-body
+@@ -6866,3 +6879,4 @@
  # ``tuning'' section of the manual for performance considerations.
  # 
  # 
diff --git a/mutt-bj.status-time.patch b/mutt-bj.status-time.patch
index b72337c..2d0bf50 100644
--- a/mutt-bj.status-time.patch
+++ b/mutt-bj.status-time.patch
@@ -1,28 +1,30 @@
-diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/curs_main.c mutt-1.5.10/curs_main.c
---- mutt-1.5.20.b/curs_main.c	2009-07-14 12:34:25.000000000 +0200
-+++ mutt-1.5.20/curs_main.c	2009-07-14 12:42:41.000000000 +0200
-@@ -556,7 +556,7 @@
-       menu_redraw_current (menu);
+diff --git mutt-2.4.3.orig/curs_main.c mutt-2.4.3/curs_main.c
+--- mutt-2.4.3.orig/curs_main.c
++++ mutt-2.4.3/curs_main.c
+@@ -608,7 +608,7 @@ static void index_menu_redraw(MUTTMENU *menu)
+       menu_redraw_current(menu);
    }
  
 -  if (menu->redraw & REDRAW_STATUS)
-+  if (menu->redraw & REDRAW_STATUS || update_status_time ())
++  if (menu->redraw & REDRAW_STATUS || update_status_time())
    {
-     menu_status_line (buf, sizeof (buf), menu, NONULL (Status));
-     mutt_window_move (MuttStatusWindow, 0, 0);
---- 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 @@
+     menu_status_line(buf, sizeof(buf), menu, NONULL(Status));
+     mutt_window_move(MuttStatusWindow, 0, 0);
+diff --git mutt-2.4.3.orig/globals.h mutt-2.4.3/globals.h
+--- mutt-2.4.3.orig/globals.h
++++ mutt-2.4.3/globals.h
+@@ -243,6 +243,7 @@ WHERE short ReflowWrap;
  WHERE short SaveHist;
  WHERE short SendmailWait;
- WHERE short SleepTime INITVAL (1);
+ WHERE short SleepTime INITVAL(1);
 +WHERE short StatusUpdate;
  WHERE short TimeInc;
  WHERE short Timeout;
  WHERE short Wrap;
---- mutt-2.0.6/init.h.orig	2021-03-06 19:06:37.000000000 +0000
-+++ mutt-2.0.6/init.h	2021-04-07 17:25:21.720777040 +0000
-@@ -4197,6 +4197,8 @@
+diff --git mutt-2.4.3.orig/init.h mutt-2.4.3/init.h
+--- mutt-2.4.3.orig/init.h
++++ mutt-2.4.3/init.h
+@@ -4555,6 +4555,8 @@ struct option_t MuttVars[] = {
    ** .dt %u  .dd number of unread messages *
    ** .dt %v  .dd Mutt version string
    ** .dt %V  .dd currently active limit pattern, if any *
@@ -31,7 +33,7 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/curs_main.c mutt-1.5.10/curs_main
    ** .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
-@@ -4248,6 +4250,16 @@
+@@ -4606,6 +4608,16 @@ struct option_t MuttVars[] = {
    ** the first line of the screen rather than near the bottom. If $$help
    ** is \fIset\fP, too it'll be placed at the bottom.
    */
@@ -45,13 +47,13 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/curs_main.c mutt-1.5.10/curs_main
 +  ** If it is negative, the status time will only be updated
 +  ** if it necessary to update to the status line for some other reason.
 +  */
-   { "strict_threads",	DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, {.l=OPTSTRICTTHREADS}, {.l=0} },
+   { "strict_threads",   DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, {.l=OPTSTRICTTHREADS}, {.l=0} },
    /*
    ** .pp
-diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/menu.c mutt-1.5.10/menu.c
---- mutt-1.5.10.orig/menu.c	2005-06-12 20:32:46.000000000 +0200
-+++ mutt-1.5.10/menu.c	2005-10-07 09:28:24.000000000 +0200
-@@ -1087,3 +1087,23 @@
+diff --git mutt-2.4.3.orig/menu.c mutt-2.4.3/menu.c
+--- mutt-2.4.3.orig/menu.c
++++ mutt-2.4.3/menu.c
+@@ -1283,3 +1283,23 @@ int mutt_menuLoop(MUTTMENU *menu)
    }
    /* not reached */
  }
@@ -75,19 +77,19 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/menu.c mutt-1.5.10/menu.c
 +  else
 +    return 0;
 +}
-diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/mutt_menu.h mutt-1.5.10/mutt_menu.h
---- mutt-1.5.10.orig/mutt_menu.h	2005-08-11 21:37:02.000000000 +0200
-+++ mutt-1.5.10/mutt_menu.h	2005-10-07 09:28:59.000000000 +0200
-@@ -112,4 +112,5 @@
- void index_make_entry (char *, size_t, struct menu_t *, int);
- COLOR_ATTR index_color (int);
+diff --git mutt-2.4.3.orig/mutt_menu.h mutt-2.4.3/mutt_menu.h
+--- mutt-2.4.3.orig/mutt_menu.h
++++ mutt-2.4.3/mutt_menu.h
+@@ -142,4 +142,5 @@ int mutt_menuLoop(MUTTMENU *);
+ void index_make_entry(char *, size_t, struct menu_t *, int);
+ COLOR_ATTR index_color(int);
  
-+int update_status_time (void);
++int update_status_time(void);
  #endif /* _MUTT_MENU_H_ */
-diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/pager.c mutt-1.5.10/pager.c
---- mutt-1.5.10.orig/pager.c	2005-08-11 21:37:02.000000000 +0200
-+++ mutt-1.5.10/pager.c	2005-10-07 09:28:24.000000000 +0200
-@@ -1763,7 +1763,7 @@
+diff --git mutt-2.4.3.orig/pager.c mutt-2.4.3/pager.c
+--- mutt-2.4.3.orig/pager.c
++++ mutt-2.4.3/pager.c
+@@ -2064,7 +2064,7 @@ static void pager_menu_redraw(MUTTMENU *pager_menu)
      }
    }
  
@@ -96,10 +98,10 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/pager.c mutt-1.5.10/pager.c
    {
      /* redraw the pager_index indicator, because the
       * flags for this message might have changed. */
-diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/status.c mutt-1.5.10/status.c
---- mutt-1.5.10.orig/status.c	2005-10-07 09:28:10.000000000 +0200
-+++ mutt-1.5.10/status.c	2005-10-07 09:28:24.000000000 +0200
-@@ -303,6 +304,47 @@
+diff --git mutt-2.4.3.orig/status.c mutt-2.4.3/status.c
+--- mutt-2.4.3.orig/status.c
++++ mutt-2.4.3/status.c
+@@ -349,6 +349,50 @@ status_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const
        *buf = 0;
        return (src);
  
@@ -113,11 +115,13 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/status.c mutt-1.5.10/status.c
 +	  src++;
 +	}
 +
-+	while (len > 0 && *src != ']')
++	while (len > 0 && *src && *src != ']')
 +	{
 +	  if (*src == '%')
 +	  {
 +	    src++;
++	    if (!*src)
++	      break;
 +	    if (len >= 2)
 +	    {
 +	      *cp++ = '%';
@@ -135,7 +139,8 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/status.c mutt-1.5.10/status.c
 +	  }
 +	}
 +	*cp = 0;
-+	src++;
++	if (*src)
++	  src++;
 +	time_t now = time (NULL);
 +	strftime (tmp, sizeof (tmp), fmt, localtime (&now));
 +
@@ -145,5 +150,5 @@ diff -dur -x '*~' -x '*.orig' mutt-1.5.10.orig/status.c mutt-1.5.10/status.c
 +      break;
 +
      default:
-       snprintf (buf, buflen, "%%%s%c", prefix, op);
+       snprintf(buf, buflen, "%%%s%c", prefix, op);
        break;
diff --git a/mutt-cd.signatures_menu.patch b/mutt-cd.signatures_menu.patch
index 3cb7903..b8f4dbb 100644
--- a/mutt-cd.signatures_menu.patch
+++ b/mutt-cd.signatures_menu.patch
@@ -1,7 +1,7 @@
-diff -urNp -x '*.orig' mutt-2.0.6.org/Makefile.am mutt-2.0.6/Makefile.am
---- mutt-2.0.6.org/Makefile.am	2021-03-06 20:06:37.000000000 +0100
-+++ mutt-2.0.6/Makefile.am	2021-04-18 19:23:38.363346256 +0200
-@@ -36,7 +36,7 @@ mutt_SOURCES = \
+diff --git mutt-2.4.3.orig/Makefile.am mutt-2.4.3/Makefile.am
+--- mutt-2.4.3.orig/Makefile.am
++++ mutt-2.4.3/Makefile.am
+@@ -37,7 +37,7 @@ mutt_SOURCES = \
  	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 rfc3676.c \
@@ -10,10 +10,10 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/Makefile.am mutt-2.0.6/Makefile.am
  	status.c system.c thread.c charset.c history.c lib.c \
  	mutt_lisp.c muttlib.c editmsg.c mbyte.c \
  	url.c ascii.c crypt-mod.c crypt-mod.h safe_asprintf.c \
-diff -urNp -x '*.orig' mutt-2.0.6.org/OPS mutt-2.0.6/OPS
---- mutt-2.0.6.org/OPS	2021-03-06 20:06:37.000000000 +0100
-+++ mutt-2.0.6/OPS	2021-04-18 19:23:38.363346256 +0200
-@@ -213,6 +213,11 @@
+diff --git mutt-2.4.3.orig/OPS mutt-2.4.3/OPS
+--- mutt-2.4.3.orig/OPS
++++ mutt-2.4.3/OPS
+@@ -213,6 +213,11 @@ OP_COMPOSE_EDIT_SUBJECT N_("edit the subject of this message")
   */
  OP_COMPOSE_EDIT_TO N_("edit the TO list")
  
@@ -25,7 +25,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/OPS mutt-2.0.6/OPS
  /* L10N: Help screen description for OP_CREATE_MAILBOX
     browser menu: <create-mailbox>
   */
-@@ -907,6 +912,12 @@
+@@ -907,6 +912,12 @@ OP_NEXT_LINE N_("scroll down one line")
   */
  OP_NEXT_PAGE N_("move to the next page")
  
@@ -38,7 +38,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/OPS mutt-2.0.6/OPS
  /* L10N: Help screen description for OP_PAGER_BOTTOM
     pager menu: <bottom>
   */
-@@ -958,6 +969,12 @@
+@@ -958,6 +969,12 @@ OP_PREV_LINE N_("scroll up one line")
   */
  OP_PREV_PAGE N_("move to the previous page")
  
@@ -51,7 +51,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/OPS mutt-2.0.6/OPS
  /* L10N: Help screen description for OP_PRINT
     index menu: <print-message>
     pager menu: <print-message>
-@@ -1006,6 +1006,12 @@
+@@ -989,6 +1006,12 @@ OP_QUERY_APPEND N_("append new query results to current results")
   */
  OP_QUIT N_("save changes to mailbox and quit")
  
@@ -64,7 +64,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/OPS mutt-2.0.6/OPS
  /* L10N: Help screen description for OP_RECALL_MESSAGE
     index menu: <recall-message>
     pager menu: <recall-message>
-@@ -1055,6 +1072,12 @@
+@@ -1055,6 +1078,12 @@ OP_SEARCH_NEXT N_("search for next match")
   */
  OP_SEARCH_OPPOSITE N_("search for next match in opposite direction")
  
@@ -77,18 +77,18 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/OPS mutt-2.0.6/OPS
  /* L10N: Help screen description for OP_SEARCH_TOGGLE
     pager menu: <search-toggle>
   */
-diff -urNp -x '*.orig' mutt-2.0.6.org/PATCHES mutt-2.0.6/PATCHES
---- mutt-2.0.6.org/PATCHES	2021-04-18 19:23:38.230011162 +0200
-+++ mutt-2.0.6/PATCHES	2021-04-18 19:23:38.366679633 +0200
+diff --git mutt-2.4.3.orig/PATCHES mutt-2.4.3/PATCHES
+--- mutt-2.4.3.orig/PATCHES
++++ mutt-2.4.3/PATCHES
 @@ -1 +1,2 @@
  vvv.quote
 +patch-1.3.27.cd.signatures_menu.2.1
-diff -urNp -x '*.orig' mutt-2.0.6.org/compose.c mutt-2.0.6/compose.c
---- mutt-2.0.6.org/compose.c	2020-12-01 04:05:21.000000000 +0100
-+++ mutt-2.0.6/compose.c	2021-04-18 19:23:38.363346256 +0200
-@@ -1747,6 +1747,11 @@ int mutt_compose_menu (SEND_CONTEXT *sct
+diff --git mutt-2.4.3.orig/compose.c mutt-2.4.3/compose.c
+--- mutt-2.4.3.orig/compose.c
++++ mutt-2.4.3/compose.c
+@@ -1799,6 +1799,11 @@ int mutt_compose_menu(SEND_CONTEXT *sctx)
          /* no send2hook, since this doesn't modify the message */
- 	break;
+         break;
  
 +      case OP_COMPOSE_SIG:
 +	mutt_signature(msg->content->filename);
@@ -98,10 +98,10 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/compose.c mutt-2.0.6/compose.c
        case OP_PIPE:
        case OP_FILTER:
          CHECK_COUNT;
-diff -urNp -x '*.orig' mutt-2.0.6.org/doc/manual.xml.head mutt-2.0.6/doc/manual.xml.head
---- mutt-2.0.6.org/doc/manual.xml.head	2021-03-06 20:06:37.000000000 +0100
-+++ mutt-2.0.6/doc/manual.xml.head	2021-04-18 19:23:38.363346256 +0200
-@@ -525,6 +525,7 @@ linkend="tab-keys-nav-page"/> for page-b
+diff --git mutt-2.4.3.orig/doc/manual.xml.head mutt-2.4.3/doc/manual.xml.head
+--- mutt-2.4.3.orig/doc/manual.xml.head
++++ mutt-2.4.3/doc/manual.xml.head
+@@ -545,6 +545,7 @@ linkend="tab-keys-nav-page"/> for page-based menus.
  </tbody>
  </tgroup>
  </table>
@@ -109,9 +109,10 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/doc/manual.xml.head mutt-2.0.6/doc/manual.
  
  </sect1>
  
---- mutt-2.2.13/functions.h.orig	2024-10-27 15:38:19.454762308 +0100
-+++ mutt-2.2.13/functions.h	2024-10-27 16:03:18.866639300 +0100
-@@ -435,6 +435,7 @@ const struct menu_func_op_t OpPager[] =
+diff --git mutt-2.4.3.orig/functions.h mutt-2.4.3/functions.h
+--- mutt-2.4.3.orig/functions.h
++++ mutt-2.4.3/functions.h
+@@ -439,6 +439,7 @@ const struct menu_func_op_t OpPager[] = { /* map: pager */
    { "sidebar-prev-new",          OP_SIDEBAR_PREV_NEW },
    { "sidebar-toggle-visible",    OP_SIDEBAR_TOGGLE_VISIBLE },
  #endif
@@ -119,7 +120,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/doc/manual.xml.head mutt-2.0.6/doc/manual.
    { "skip-headers",              OP_PAGER_SKIP_HEADERS },
    { "skip-quoted",               OP_PAGER_SKIP_QUOTED },
    { "sort-mailbox",              OP_SORT },
-@@ -457,6 +458,7 @@ const struct menu_op_seq_t PagerDefaultB
+@@ -461,6 +462,7 @@ const struct menu_op_seq_t PagerDefaultBindings[] = { /* map: pager */
    { OP_BOUNCE_MESSAGE,              "b" },
    { OP_BUFFY_LIST,                  "." },
    { OP_CHECK_TRADITIONAL,           "\033P"   },
@@ -127,7 +128,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/doc/manual.xml.head mutt-2.0.6/doc/manual.
    { OP_COPY_MESSAGE,                "C" },
    { OP_CREATE_ALIAS,                "a" },
    { OP_DECODE_COPY,                 "\033C" },
-@@ -809,6 +811,33 @@ const struct menu_op_seq_t QueryDefaultB
+@@ -813,6 +815,33 @@ const struct menu_op_seq_t QueryDefaultBindings[] = { /* map: query */
    { 0,                  NULL }
  };
  
@@ -161,10 +162,10 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/doc/manual.xml.head mutt-2.0.6/doc/manual.
  const struct menu_func_op_t OpEditor[] = { /* map: editor */
    { "backspace",        OP_EDITOR_BACKSPACE },
    { "backward-char",    OP_EDITOR_BACKWARD_CHAR },
-diff -urNp -x '*.orig' mutt-2.0.6.org/globals.h mutt-2.0.6/globals.h
---- mutt-2.0.6.org/globals.h	2021-04-18 19:23:38.230011162 +0200
-+++ mutt-2.0.6/globals.h	2021-04-18 19:23:38.363346256 +0200
-@@ -145,6 +145,7 @@ WHERE char *SidebarFormat;
+diff --git mutt-2.4.3.orig/globals.h mutt-2.4.3/globals.h
+--- mutt-2.4.3.orig/globals.h
++++ mutt-2.4.3/globals.h
+@@ -148,6 +148,7 @@ WHERE char *SidebarFormat;
  WHERE char *SidebarIndentString;
  #endif
  WHERE char *Signature;
@@ -172,10 +173,10 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/globals.h mutt-2.0.6/globals.h
  WHERE char *SimpleSearch;
  #if USE_SMTP
  WHERE char *SmtpAuthenticators;
-diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
---- mutt-2.0.6.org/init.h	2021-04-18 19:23:38.230011162 +0200
-+++ mutt-2.0.6/init.h	2021-04-18 19:23:38.363346256 +0200
-@@ -1953,6 +1953,14 @@ struct option_t MuttVars[] = {
+diff --git mutt-2.4.3.orig/init.h mutt-2.4.3/init.h
+--- mutt-2.4.3.orig/init.h
++++ mutt-2.4.3/init.h
+@@ -2109,6 +2109,14 @@ struct option_t MuttVars[] = {
    ** automatically generated with \fI<mark-message>a\fP will be composed
    ** from this prefix and the letter \fIa\fP.
    */
@@ -187,31 +188,32 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
 +  ** sig_dashes (``-- '').
 +  ** You can choose between these signatures from the compose menu.
 +  */
-   { "mark_old",		DT_BOOL, R_BOTH, {.l=OPTMARKOLD}, {.l=1} },
+   { "mark_old",         DT_BOOL, R_BOTH, {.l=OPTMARKOLD}, {.l=1} },
    /*
    ** .pp
---- mutt-2.2.13/keymap.c.orig	2023-08-18 05:03:18.000000000 +0200
-+++ mutt-2.2.13/keymap.c	2024-10-27 16:17:06.355489747 +0100
+diff --git mutt-2.4.3.orig/keymap.c mutt-2.4.3/keymap.c
+--- mutt-2.4.3.orig/keymap.c
++++ mutt-2.4.3/keymap.c
 @@ -50,6 +50,8 @@ const struct mapping_t Menus[] = {
-   { "pager",	MENU_PAGER },
-   { "postpone",	MENU_POST },
-   { "pgp",	MENU_PGP },
+   { "pager",    MENU_PAGER },
+   { "postpone", MENU_POST },
+   { "pgp",      MENU_PGP },
 + { "signature",	MENU_SIG },
 + { "sig_directory",	MENU_SIG_DIR },
-   { "smime",	MENU_SMIME },
+   { "smime",    MENU_SMIME },
  #ifdef CRYPT_BACKEND_GPGME
-   { "key_select_pgp",	MENU_KEY_SELECT_PGP },
-@@ -778,6 +780,9 @@ void km_init (void)
-   create_bindings (EditorDefaultBindings, MENU_EDITOR);
+   { "key_select_pgp",   MENU_KEY_SELECT_PGP },
+@@ -778,6 +780,9 @@ void km_init(void)
+   create_bindings(EditorDefaultBindings, MENU_EDITOR);
  
-   create_bindings (GenericDefaultBindings, MENU_GENERIC);
+   create_bindings(GenericDefaultBindings, MENU_GENERIC);
 +
-+  create_bindings (SigDefaultBindings, MENU_SIG);
-+  create_bindings (SigDirDefaultBindings, MENU_SIG_DIR);
++  create_bindings(SigDefaultBindings, MENU_SIG);
++  create_bindings(SigDirDefaultBindings, MENU_SIG_DIR);
  }
  
- void km_error_key (int menu)
-@@ -942,6 +947,10 @@ const struct menu_func_op_t *km_get_tabl
+ void km_error_key(int menu)
+@@ -942,6 +947,10 @@ const struct menu_func_op_t *km_get_table(int menu)
        return OpQuery;
      case MENU_LIST:
        return OpList;
@@ -222,8 +224,9 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
  
      case MENU_PGP:
        return (WithCrypto & APPLICATION_PGP)? OpPgp:NULL;
---- mutt-2.2.13/keymap.h.orig	2022-12-12 23:42:54.000000000 +0100
-+++ mutt-2.2.13/keymap.h	2024-10-27 16:08:08.808401886 +0100
+diff --git mutt-2.4.3.orig/keymap.h mutt-2.4.3/keymap.h
+--- mutt-2.4.3.orig/keymap.h
++++ mutt-2.4.3/keymap.h
 @@ -64,6 +64,8 @@ enum
    MENU_PAGER,
    MENU_POST,
@@ -233,7 +236,7 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
  
  
    MENU_PGP,
-@@ -133,6 +135,9 @@ extern const struct menu_func_op_t OpMix
+@@ -133,6 +135,9 @@ extern const struct menu_func_op_t OpMix[];
  extern const struct menu_func_op_t OpAutocryptAcct[];
  #endif
  
@@ -243,41 +246,42 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
  #include "keymap_defs.h"
  
  #endif /* KEYMAP_H */
-diff -urNp -x '*.orig' mutt-2.0.6.org/menu.c mutt-2.0.6/menu.c
---- mutt-2.0.6.org/menu.c	2021-04-18 19:23:38.230011162 +0200
-+++ mutt-2.0.6/menu.c	2021-04-18 19:23:38.366679633 +0200
-@@ -683,7 +683,7 @@ void menu_current_bottom (MUTTMENU *menu
+diff --git mutt-2.4.3.orig/menu.c mutt-2.4.3/menu.c
+--- mutt-2.4.3.orig/menu.c
++++ mutt-2.4.3/menu.c
+@@ -684,7 +684,7 @@ void menu_current_bottom(MUTTMENU *menu)
      mutt_error _("No entries.");
  }
  
--static void menu_next_entry (MUTTMENU *menu)
-+void menu_next_entry (MUTTMENU *menu)
+-static void menu_next_entry(MUTTMENU *menu)
++void menu_next_entry(MUTTMENU *menu)
  {
    if (menu->current < menu->max - 1)
    {
-@@ -694,7 +694,7 @@ static void menu_next_entry (MUTTMENU *m
+@@ -695,7 +695,7 @@ static void menu_next_entry(MUTTMENU *menu)
      mutt_error _("You are on the last entry.");
  }
  
--static void menu_prev_entry (MUTTMENU *menu)
-+void menu_prev_entry (MUTTMENU *menu)
+-static void menu_prev_entry(MUTTMENU *menu)
++void menu_prev_entry(MUTTMENU *menu)
  {
    if (menu->current)
    {
-diff -urNp -x '*.orig' mutt-2.0.6.org/protos.h mutt-2.0.6/protos.h
---- mutt-2.0.6.org/protos.h	2021-03-06 20:06:37.000000000 +0100
-+++ mutt-2.0.6/protos.h	2021-04-18 19:23:38.366679633 +0200
-@@ -224,6 +224,7 @@ void mutt_free_body (BODY **);
- void mutt_free_body (BODY **);
- void mutt_free_enter_state (ENTER_STATE **);
- void mutt_free_envelope (ENVELOPE **);
-+void mutt_signature (char *);
- void mutt_free_header (HEADER **);
- void mutt_free_parameter (PARAMETER **);
- void mutt_free_regexp (REGEXP **);
-diff -urNp -x '*.orig' mutt-2.0.6.org/signature.c mutt-2.0.6/signature.c
---- mutt-2.0.6.org/signature.c	1970-01-01 01:00:00.000000000 +0100
-+++ mutt-2.0.6/signature.c	2021-04-18 19:23:38.366679633 +0200
+diff --git mutt-2.4.3.orig/protos.h mutt-2.4.3/protos.h
+--- mutt-2.4.3.orig/protos.h
++++ mutt-2.4.3/protos.h
+@@ -243,6 +243,7 @@ void mutt_free_autocrypthdr(AUTOCRYPTHDR **p);
+ void mutt_free_body(BODY **);
+ void mutt_free_enter_state(ENTER_STATE **);
+ void mutt_free_envelope(ENVELOPE **);
++void mutt_signature(char *);
+ void mutt_free_header(HEADER **);
+ void mutt_free_parameter(PARAMETER **);
+ void mutt_free_regexp(REGEXP **);
+diff --git mutt-2.4.3.orig/signature.c mutt-2.4.3/signature.c
+new file mode 100644
+--- /dev/null
++++ mutt-2.4.3/signature.c
 @@ -0,0 +1,499 @@
 +/*
 + * Copyright (C) 2001 Cedric Duval <cedricduval at free.fr>
diff --git a/mutt-crypt-autoselectkey.patch b/mutt-crypt-autoselectkey.patch
index b34bd3c..df7c39e 100644
--- a/mutt-crypt-autoselectkey.patch
+++ b/mutt-crypt-autoselectkey.patch
@@ -1,14 +1,14 @@
-diff -urNp -x '*.orig' mutt-2.0.6.org/PATCHES mutt-2.0.6/PATCHES
---- mutt-2.0.6.org/PATCHES	2021-04-18 19:23:38.550015388 +0200
-+++ mutt-2.0.6/PATCHES	2021-04-18 19:23:38.680017105 +0200
+diff --git mutt-2.4.3.orig/PATCHES mutt-2.4.3/PATCHES
+--- mutt-2.4.3.orig/PATCHES
++++ mutt-2.4.3/PATCHES
 @@ -1,2 +1,3 @@
 +patch-1.5.6.dw.crypt-autoselectkey.1
  vvv.quote
  patch-1.3.27.cd.signatures_menu.2.1
-diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
---- mutt-2.0.6.org/init.h	2021-04-18 19:23:38.550015388 +0200
-+++ mutt-2.0.6/init.h	2021-04-18 19:23:38.680017105 +0200
-@@ -1203,6 +1203,16 @@ struct option_t MuttVars[] = {
+diff --git mutt-2.4.3.orig/init.h mutt-2.4.3/init.h
+--- mutt-2.4.3.orig/init.h
++++ mutt-2.4.3/init.h
+@@ -1335,6 +1335,16 @@ struct option_t MuttVars[] = {
    ** For a full listing of defined \fCprintf(3)\fP-like sequences see
    ** the section on $$index_format.  See also $$attribution_locale.
    */
@@ -25,10 +25,10 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
    /* L10N:
       $forward_attribution_trailer default value
    */
-diff -urNp -x '*.orig' mutt-2.0.6.org/mutt.h mutt-2.0.6/mutt.h
---- mutt-2.0.6.org/mutt.h	2021-04-18 19:23:38.546682010 +0200
-+++ mutt-2.0.6/mutt.h	2021-04-18 19:23:38.680017105 +0200
-@@ -429,6 +429,7 @@ enum
+diff --git mutt-2.4.3.orig/mutt.h mutt-2.4.3/mutt.h
+--- mutt-2.4.3.orig/mutt.h
++++ mutt-2.4.3/mutt.h
+@@ -442,6 +442,7 @@ enum
  #if defined(HAVE_QDBM) || defined(HAVE_TC) || defined(HAVE_KC)
    OPTHCACHECOMPRESS,
  #endif /* HAVE_QDBM */
@@ -36,33 +36,29 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/mutt.h mutt-2.0.6/mutt.h
  #endif
    OPTHDRS,
    OPTHEADER,
-diff -urNp -x '*.orig' mutt-2.0.6.org/pgpkey.c mutt-2.0.6/pgpkey.c
---- mutt-2.0.6.org/pgpkey.c	2020-07-25 20:22:53.000000000 +0200
-+++ mutt-2.0.6/pgpkey.c	2021-04-18 19:23:38.680017105 +0200
-@@ -440,8 +440,13 @@ static int pgp_id_matches_addr (ADDRESS
+diff --git mutt-2.4.3.orig/pgpkey.c mutt-2.4.3/pgpkey.c
+--- mutt-2.4.3.orig/pgpkey.c
++++ mutt-2.4.3/pgpkey.c
+@@ -443,6 +443,10 @@ static int pgp_id_matches_addr(ADDRESS *addr, ADDRESS *u_addr, pgp_uid_t *uid)
    return rv;
  }
  
-+
 +#define pgp_trusted_id(uid) (!option(OPTPGPCHECKTRUST) \
-+			     || (pgp_id_is_valid((uid)) \
-+				 && pgp_id_is_strong((uid))))
++                             || (pgp_id_is_valid((uid)) \
++                                 && pgp_id_is_strong((uid))))
 +
- static pgp_key_t pgp_select_key (pgp_key_t keys,
--                                 ADDRESS * p, const char *s)
-+				  ADDRESS * p, const char *s)
+ static pgp_key_t pgp_select_key(pgp_key_t keys,
+                                 ADDRESS * p, const char *s)
  {
-   int keymax;
-   pgp_uid_t **KeyTable;
-@@ -456,6 +461,7 @@ static pgp_key_t pgp_select_key (pgp_key
+@@ -459,6 +463,7 @@ static pgp_key_t pgp_select_key(pgp_key_t keys,
    pgp_uid_t *a;
-   int (*f) (const void *, const void *);
+   int (*f)(const void *, const void *);
  
-+  int keymatch = 0;		/* count matching keys */
++  int keymatch = 0;             /* count matching keys */
    int unusable = 0;
  
    keymax = 0;
-@@ -485,6 +491,7 @@ static pgp_key_t pgp_select_key (pgp_key
+@@ -488,6 +493,7 @@ static pgp_key_t pgp_select_key(pgp_key_t keys,
  
        KeyTable[i++] = a;
      }
@@ -70,11 +66,11 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/pgpkey.c mutt-2.0.6/pgpkey.c
    }
  
    if (!i && unusable)
-@@ -493,6 +500,21 @@ static pgp_key_t pgp_select_key (pgp_key
-     mutt_sleep (1);
+@@ -496,6 +502,21 @@ static pgp_key_t pgp_select_key(pgp_key_t keys,
+     mutt_sleep(1);
      return NULL;
    }
-+  else if (keymatch == 1 && option(OPTCRYPTAUTOSELECT))
++  else if (keymatch == 1 && i && option(OPTCRYPTAUTOSELECT))
 +  {
 +    /*
 +     * Only one matching key...see if there's an id with enough trust to auto-select
@@ -84,22 +80,22 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/pgpkey.c mutt-2.0.6/pgpkey.c
 +    {
 +      if (pgp_trusted_id(a))
 +      {
-+	safe_free ((void **) &KeyTable);
-+	return (kp);
++        FREE(&KeyTable);
++        return (kp);
 +      }
 +    }
 +  }
  
    switch (PgpSortKeys & SORT_MASK)
    {
-@@ -609,9 +631,7 @@ static pgp_key_t pgp_select_key (pgp_key
+@@ -612,9 +633,7 @@ static pgp_key_t pgp_select_key(pgp_key_t keys,
              break;
            }
  
--        if (option (OPTPGPCHECKTRUST) &&
--            (!pgp_id_is_valid (KeyTable[menu->current])
--             || !pgp_id_is_strong (KeyTable[menu->current])))
-+      if (!pgp_trusted_id(KeyTable[menu->current]))
+-        if (option(OPTPGPCHECKTRUST) &&
+-            (!pgp_id_is_valid(KeyTable[menu->current])
+-             || !pgp_id_is_strong(KeyTable[menu->current])))
++        if (!pgp_trusted_id(KeyTable[menu->current]))
          {
            char *s = "";
            char buff[LONG_STRING];
diff --git a/mutt-keep_to.patch b/mutt-keep_to.patch
index 13c19a5..83e9ae7 100644
--- a/mutt-keep_to.patch
+++ b/mutt-keep_to.patch
@@ -2,21 +2,10 @@ Add keep_to option to control where To: recipients are copied on group-reply (To
 
 author: Jan Palus
 
-diff -urN mutt-1.5.23.orig/send.c mutt-1.5.23/send.c
---- mutt-1.5.23.orig/send.c	2014-10-12 16:55:39.680846728 +0200
-+++ mutt-1.5.23/send.c	2014-10-12 16:55:52.104179682 +0200
-@@ -672,7 +672,7 @@
-         (!in->mail_followup_to || hmfupto != MUTT_YES))
-     {
-       /* if (!mutt_addr_is_user(in->to)) */
--      if (flags & SENDGROUPREPLY)
-+      if ( (flags & SENDGROUPREPLY) || ! option(OPTKEEPTO) )
-         rfc822_append (&out->cc, in->to, 1);
-       else
-         rfc822_append (&out->to, in->to, 1);
---- mutt-2.2.13/init.h.orig	2024-10-27 16:39:28.431552437 +0100
-+++ mutt-2.2.13/init.h	2024-10-27 16:41:40.057506025 +0100
-@@ -2008,6 +2008,12 @@ struct option_t MuttVars[] = {
+diff --git mutt-2.4.3.orig/init.h mutt-2.4.3/init.h
+--- mutt-2.4.3.orig/init.h
++++ mutt-2.4.3/init.h
+@@ -2023,6 +2023,12 @@ struct option_t MuttVars[] = {
    ** from your spool mailbox to your $$mbox mailbox, or as a result of
    ** a ``$mbox-hook'' command.
    */
@@ -29,9 +18,10 @@ diff -urN mutt-1.5.23.orig/send.c mutt-1.5.23/send.c
    { "local_date_header", DT_BOOL, R_NONE, {.l=OPTLOCALDATEHEADER}, {.l=1} },
    /*
    ** .pp
---- mutt-2.0.6/mutt.h.orig	2021-04-07 17:47:28.950795784 +0000
-+++ mutt-2.0.6/mutt.h	2021-04-07 17:50:34.977465090 +0000
-@@ -479,6 +479,7 @@
+diff --git mutt-2.4.3.orig/mutt.h mutt-2.4.3/mutt.h
+--- mutt-2.4.3.orig/mutt.h
++++ mutt-2.4.3/mutt.h
+@@ -492,6 +492,7 @@ enum
    OPTINCLUDEENCRYPTED,
    OPTINCLUDEONLYFIRST,
    OPTKEEPFLAGGED,
@@ -39,3 +29,15 @@ diff -urN mutt-1.5.23.orig/send.c mutt-1.5.23/send.c
    OPTLOCALDATEHEADER,
    OPTMUTTLISPINLINEEVAL,
    OPTMAILCAPSANITIZE,
+diff --git mutt-2.4.3.orig/send.c mutt-2.4.3/send.c
+--- mutt-2.4.3.orig/send.c
++++ mutt-2.4.3/send.c
+@@ -699,7 +699,7 @@ int mutt_fetch_recips(ENVELOPE *out, ENVELOPE *in, int flags)
+         (!in->mail_followup_to || hmfupto != MUTT_YES))
+     {
+       /* if (!mutt_addr_is_user(in->to)) */
+-      if (flags & SENDGROUPREPLY)
++      if ((flags & SENDGROUPREPLY) || !option(OPTKEEPTO))
+         rfc822_append(&out->cc, in->to, 1);
+       else
+         rfc822_append(&out->to, in->to, 1);
diff --git a/mutt-null_name.patch b/mutt-null_name.patch
index a1b95af..0389967 100644
--- a/mutt-null_name.patch
+++ b/mutt-null_name.patch
@@ -1,14 +1,14 @@
-diff -urNp -x '*.orig' mutt-2.0.6.org/browser.c mutt-2.0.6/browser.c
---- mutt-2.0.6.org/browser.c	2020-12-01 04:05:21.000000000 +0100
-+++ mutt-2.0.6/browser.c	2021-04-18 19:23:38.053342162 +0200
-@@ -475,6 +475,10 @@ static int examine_directory (MUTTMENU *
+diff --git mutt-2.4.3.orig/browser.c mutt-2.4.3/browser.c
+--- mutt-2.4.3.orig/browser.c
++++ mutt-2.4.3/browser.c
+@@ -579,6 +579,10 @@ static int examine_directory(MUTTMENU *menu, struct browser_state *state,
  
-   while ((de = readdir (dp)) != NULL)
+   while ((de = readdir(dp)) != NULL)
    {
 +    /* It can happen because of broken VFAT driver. */
-+    if (mutt_strcmp (de->d_name, "") == 0)
++    if (mutt_strcmp(de->d_name, "") == 0)
 +      continue;
 +
-     if (mutt_strcmp (de->d_name, ".") == 0)
+     if (mutt_strcmp(de->d_name, ".") == 0)
        continue;    /* we don't need . */
  
diff --git a/mutt-pl.po-update.patch b/mutt-pl.po-update.patch
deleted file mode 100644
index 7e54f2c..0000000
--- a/mutt-pl.po-update.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- mutt-2.2.13/po/pl.po.orig	2024-10-27 17:34:25.930355029 +0100
-+++ mutt-2.2.13/po/pl.po	2024-10-27 17:34:29.943666621 +0100
-@@ -4230,10 +4230,8 @@ msgid "Certificate host check failed: %s
- msgstr "Weryfikacja certyfikat hosta nie powiodła się: %s"
- 
- #: mutt_ssl.c:1269 mutt_ssl_gnutls.c:883
--#, fuzzy
--#| msgid "Warning: Couldn't save certificate"
- msgid "Untrusted server certificate"
--msgstr "Ostrzeżenie: Nie można zapisać certyfikatu"
-+msgstr "Niezaufany certyfikat serwera"
- 
- #: mutt_ssl.c:1278 mutt_ssl_gnutls.c:938
- msgid "This certificate belongs to:"
-@@ -5767,10 +5765,9 @@ msgstr "Zapisywanie w %s"
- #. %s is the mailbox name.
- #.
- #: send.c:1277
--#, fuzzy, c-format
--#| msgid "Saving Fcc to %s"
-+#, c-format
- msgid "Warning: Fcc to %s failed"
--msgstr "Zapisywanie w %s"
-+msgstr "Uwaga: Fcc do %s nie powiodło się"
- 
- #. L10N:
- #. Called when saving to $record or Fcc failed after sending.
-@@ -5865,7 +5862,7 @@ msgstr "Wysyłanie listu…"
- #.
- #: send.c:2566
- msgid "Fcc failed.  Aborting sending."
--msgstr ""
-+msgstr "Fcc nie powiodło się. Przerwano wysyłanie."
- 
- #: send.c:2607
- msgid "Could not send the message."
diff --git a/mutt-vvv.initials.patch b/mutt-vvv.initials.patch
index 884f11a..522f957 100644
--- a/mutt-vvv.initials.patch
+++ b/mutt-vvv.initials.patch
@@ -1,12 +1,15 @@
-diff -udprP mutt-1.12.1.orig/PATCHES mutt-1.12.1/PATCHES
---- mutt-1.12.1.orig/PATCHES	2017-12-03 05:10:17.000000000 +0200
-+++ mutt-1.12.1/PATCHES	2019-08-11 19:31:49.593096725 +0300
-@@ -0,0 +1 @@
+diff --git mutt-2.4.3.orig/PATCHES mutt-2.4.3/PATCHES
+--- mutt-2.4.3.orig/PATCHES
++++ mutt-2.4.3/PATCHES
+@@ -1,3 +1,4 @@
 +vvv.initials
-diff -udprP mutt-1.12.1.orig/hdrline.c mutt-1.12.1/hdrline.c
---- mutt-1.12.1.orig/hdrline.c	2019-05-25 19:22:39.000000000 +0300
-+++ mutt-1.12.1/hdrline.c	2019-08-11 19:31:49.594096710 +0300
-@@ -228,6 +228,7 @@ static char *apply_subject_mods (ENVELOP
+ patch-1.5.6.dw.crypt-autoselectkey.1
+ vvv.quote
+ patch-1.3.27.cd.signatures_menu.2.1
+diff --git mutt-2.4.3.orig/hdrline.c mutt-2.4.3/hdrline.c
+--- mutt-2.4.3.orig/hdrline.c
++++ mutt-2.4.3/hdrline.c
+@@ -228,6 +228,7 @@ static char *apply_subject_mods(ENVELOPE *env)
   * %f = entire from line
   * %F = like %n, unless from self
   * %i = message-id
@@ -14,33 +17,33 @@ diff -udprP mutt-1.12.1.orig/hdrline.c mutt-1.12.1/hdrline.c
   * %l = number of lines in the message
   * %L = like %F, except `lists' are displayed first
   * %m = number of messages in the mailbox
-@@ -480,6 +481,31 @@ hdr_format_str (char *dest,
-       mutt_format_s (dest, destlen, prefix, hdr->env->message_id ? hdr->env->message_id : "<no.id>");
+@@ -480,6 +481,31 @@ hdr_format_str(char *dest,
+       mutt_format_s(dest, destlen, prefix, hdr->env->message_id ? hdr->env->message_id : "<no.id>");
        break;
  
 +    case 'I':
 +      {
-+	int iflag = FALSE;
-+	int j = 0;
++        int iflag = FALSE;
++        int j = 0;
 +
-+	for (i = 0; hdr->env->from && hdr->env->from->personal &&
-+		    hdr->env->from->personal[i] && j < SHORT_STRING - 1; i++)
-+	{
-+	  if (isalpha ((int)hdr->env->from->personal[i]))
-+	  {
-+	    if (!iflag)
-+	    {
-+	      buf2[j++] = hdr->env->from->personal[i];
-+	      iflag = TRUE;
-+	    }
-+	  }
-+	  else
-+	    iflag = FALSE;
-+	}
++        for (i = 0; hdr->env->from && hdr->env->from->personal &&
++                    hdr->env->from->personal[i] && j < SHORT_STRING - 1; i++)
++        {
++          if (isalpha((unsigned char)hdr->env->from->personal[i]))
++          {
++            if (!iflag)
++            {
++              buf2[j++] = hdr->env->from->personal[i];
++              iflag = TRUE;
++            }
++          }
++          else
++            iflag = FALSE;
++        }
 +
-+	buf2[j] = '\0';
++        buf2[j] = '\0';
 +      }
-+      mutt_format_s (dest, destlen, prefix, buf2);
++      mutt_format_s(dest, destlen, prefix, buf2);
 +      break;
 +
      case 'l':
diff --git a/mutt-vvv.quote.patch b/mutt-vvv.quote.patch
index 99369ca..92dd661 100644
--- a/mutt-vvv.quote.patch
+++ b/mutt-vvv.quote.patch
@@ -1,57 +1,57 @@
-diff -urNp -x '*.orig' mutt-2.0.6.org/PATCHES mutt-2.0.6/PATCHES
---- mutt-2.0.6.org/PATCHES	2020-06-24 23:41:42.000000000 +0200
-+++ mutt-2.0.6/PATCHES	2021-04-18 19:23:37.740004690 +0200
+diff --git mutt-2.4.3.orig/PATCHES mutt-2.4.3/PATCHES
+--- mutt-2.4.3.orig/PATCHES
++++ mutt-2.4.3/PATCHES
 @@ -0,0 +1 @@
 +vvv.quote
-diff -urNp -x '*.orig' mutt-2.0.6.org/handler.c mutt-2.0.6/handler.c
---- mutt-2.0.6.org/handler.c	2021-03-06 20:06:37.000000000 +0100
-+++ mutt-2.0.6/handler.c	2021-04-18 19:23:37.740004690 +0200
-@@ -1603,7 +1603,31 @@ static int text_plain_handler (BODY *b,
- 	buf[--l] = 0;
+diff --git mutt-2.4.3.orig/handler.c mutt-2.4.3/handler.c
+--- mutt-2.4.3.orig/handler.c
++++ mutt-2.4.3/handler.c
+@@ -1603,7 +1603,31 @@ static int text_plain_handler(BODY *b, STATE *s)
+         buf[--l] = 0;
      }
      if (s->prefix)
--      state_puts (s->prefix, s);
+-      state_puts(s->prefix, s);
 +    {
-+      int i;
-+      char qbuf[2 * LONG_STRING];
-+      int j = 0, offset = 0;
++      size_t i, j = 0, offset = 0;
 +      regmatch_t pmatch[1];
 +
-+      while (regexec ((regex_t *) QuoteRegexp.rx, &buf[offset], 1, pmatch, 0) == 0)
-+	offset += pmatch->rm_eo;
++      while (regexec((regex_t *) QuoteRegexp.rx, &buf[offset], 1, pmatch, 0) == 0 &&
++             pmatch->rm_eo > 0)
++        offset += pmatch->rm_eo;
 +
-+      if (!option (OPTQUOTEEMPTY) && !*buf)
-+	strcpy (qbuf, buf);
-+      else if (option (OPTQUOTEQUOTED) && offset)
++      if (!option(OPTQUOTEEMPTY) && !*buf)
++        ;
++      else if (option(OPTQUOTEQUOTED) && offset)
 +      {
-+	for (i = 0; i < offset; i++)
-+	  if (buf[i] != ' ')
-+	    j = i;
-+	strncpy (qbuf, buf, j + 1);
-+	strcpy (qbuf + j + 1, buf + j);
++        /* repeat the last quote character of the existing prefix */
++        for (i = 0; i < offset; i++)
++          if (buf[i] != ' ')
++            j = i;
++        for (i = 0; i <= j; i++)
++          state_putc(buf[i], s);
++        state_puts(buf + j, s);
++        state_putc('\n', s);
++        continue;
 +      }
 +      else
-+	snprintf (qbuf, sizeof (qbuf), "%s%s", NONULL(s->prefix), buf);
-+
-+      state_puts (qbuf, s);
++        state_puts(s->prefix, s);
 +    }
-+    else
-     state_puts (buf, s);
-     state_putc ('\n', s);
+     state_puts(buf, s);
+     state_putc('\n', s);
    }
-@@ -1806,7 +1830,7 @@ int mutt_body_handler (BODY *b, STATE *s
+@@ -1806,7 +1830,7 @@ int mutt_body_handler(BODY *b, STATE *s)
         */
-       if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b))
- 	encrypted_handler = handler = crypt_pgp_application_pgp_handler;
--      else if (option(OPTREFLOWTEXT) && ascii_strcasecmp ("flowed", mutt_get_parameter ("format", b->parameter)) == 0)
-+      else if (option(OPTREFLOWTEXT) && ascii_strcasecmp ("flowed", mutt_get_parameter ("format", b->parameter)) == 0 && !s->prefix)
- 	handler = rfc3676_handler;
+       if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp(b))
+         encrypted_handler = handler = crypt_pgp_application_pgp_handler;
+-      else if (option(OPTREFLOWTEXT) && ascii_strcasecmp("flowed", mutt_get_parameter("format", b->parameter)) == 0)
++      else if (option(OPTREFLOWTEXT) && ascii_strcasecmp("flowed", mutt_get_parameter("format", b->parameter)) == 0 && !s->prefix)
+         handler = rfc3676_handler;
        else
- 	handler = text_plain_handler;
-diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
---- mutt-2.0.6.org/init.h	2021-04-18 19:23:37.610002974 +0200
-+++ mutt-2.0.6/init.h	2021-04-18 19:23:37.740004690 +0200
-@@ -2966,6 +2966,19 @@ struct option_t MuttVars[] = {
+         handler = text_plain_handler;
+diff --git mutt-2.4.3.orig/init.h mutt-2.4.3/init.h
+--- mutt-2.4.3.orig/init.h
++++ mutt-2.4.3/init.h
+@@ -3175,6 +3175,19 @@ struct option_t MuttVars[] = {
    ** have no effect, and if it is set to \fIask-yes\fP or \fIask-no\fP, you are
    ** prompted for confirmation when you try to quit.
    */
@@ -68,13 +68,13 @@ diff -urNp -x '*.orig' mutt-2.0.6.org/init.h mutt-2.0.6/init.h
 +  ** character will be added to the end of existing prefix.  Otherwise,
 +  ** quoted lines will be prepended by ``$indent_string''.
 +  */
-   { "quote_regexp",	DT_RX,	 R_PAGER, {.p=&QuoteRegexp}, {.p="^([ \t]*[|>:}#])+"} },
+   { "quote_regexp",     DT_RX,   R_PAGER, {.p=&QuoteRegexp}, {.p="^([ \t]*[|>:}#])+"} },
    /*
    ** .pp
-diff -urNp -x '*.orig' mutt-2.0.6.org/mutt.h mutt-2.0.6/mutt.h
---- mutt-2.0.6.org/mutt.h	2021-03-06 20:06:37.000000000 +0100
-+++ mutt-2.0.6/mutt.h	2021-04-18 19:23:37.740004690 +0200
-@@ -510,6 +510,8 @@ enum
+diff --git mutt-2.4.3.orig/mutt.h mutt-2.4.3/mutt.h
+--- mutt-2.4.3.orig/mutt.h
++++ mutt-2.4.3/mutt.h
+@@ -524,6 +524,8 @@ enum
    OPTPRINTDECODEWEED,
    OPTPRINTSPLIT,
    OPTPROMPTAFTER,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mutt.git/commitdiff/4f0a069ab9345044af40010ac164eb6976a6faf8




More information about the pld-cvs-commit mailing list