<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] to improve the rendering of format=flowed quoted text -- 1.5.5.1 version



On 2003-12-29, Gary Johnson <garyjohn@xxxxxxxxxxxxxxx> wrote:
> Attached is a patch for mutt-1.4i to improve the rendering of
> format=flowed quoted text by space-stuffing all quoted lines.  This
> makes the quoting of format=flowed text more consistent with the
> quoting style traditionally used for format=fixed text and makes the
> quoted text recognizable by the default 'quote_regexp'.  This
> behavior is controlled by a new boolean option, 'stuff_all_quoted'.
> When unset (the default), mutt's behavior is the same as without the
> patch.

By popular demand (OK, one person asked), here is a version of the
patch for mutt-1.5.5.1.

Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA
--- PATCHES.orig        2003-04-15 06:18:34.000000000 -0700
+++ PATCHES     2003-12-30 23:44:40.000000000 -0800
@@ -1,0 +1 @@
+patch-1.5.5.1.gj.stuff_all_quoted.1
--- handler.c.orig      2003-11-05 01:41:31.000000000 -0800
+++ handler.c   2003-12-30 16:51:23.000000000 -0800
@@ -931,7 +931,12 @@
      */
     if (*cont && !level && !mutt_strcmp (Pager, "builtin") && 
flowed_maybe_quoted (cont))
       state_puts ("\033[0m",s);
+
+    if (level && option (OPTSTUFFALLQUOTED))
+      state_putc (' ', s);
   }
+  else if (level && option (OPTSTUFFALLQUOTED))
+    state_putc (' ', s);
   else if ((!(s->flags & M_PRINTING)) && 
           ((*cont == ' ') || (*cont == '>') || (!level && !mutt_strncmp (cont, 
"From ", 5))))
     state_putc (' ', s);
--- init.h.orig 2003-11-05 01:41:32.000000000 -0800
+++ init.h      2003-12-30 16:56:26.000000000 -0800
@@ -2492,6 +2492,17 @@
   ** personal mailbox where you might have several unrelated messages with
   ** the subject ``hi'' which will get grouped together.
   */
+  { "stuff_all_quoted", DT_BOOL, R_NONE, OPTSTUFFALLQUOTED, 0 },
+  /*
+  ** .pp
+  ** When set, mutt will space-stuff all quoted lines in displayed and
+  ** generated text/plain; format=flowed attachments, as allowed by RFC
+  ** 2646.  This makes the quoting of format=flowed text more consistent
+  ** with the quoting style traditionally used for format=fixed text.
+  ** The quoted text is easier to read and is recognizable by the
+  ** default ``$$quote_regexp''.  When unset, mutt will space-stuff
+  ** quoted lines only as required by RFC 2646.
+  */
   { "suspend",         DT_BOOL, R_NONE, OPTSUSPEND, 1 },
   /*
   ** .pp
--- mutt.h.orig 2003-11-05 01:41:32.000000000 -0800
+++ mutt.h      2003-12-30 16:56:43.000000000 -0800
@@ -406,6 +406,7 @@
   OPTSTATUSONTOP,
   OPTSTRICTTHREADS,
   OPTSUSPEND,
+  OPTSTUFFALLQUOTED,
   OPTTEXTFLOWED,
   OPTTHOROUGHSRC,
   OPTTHREADRECEIVED,