bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mbox bugs?


From: Kurt Hackenberg
Subject: Re: Mbox bugs?
Date: Tue, 25 Jan 2022 22:26:15 -0500

On Mon, Jan 24, 2022 at 12:00:49PM +0100, Sergey Poznyakoff wrote:

>> ">From ". In this case, it unescaped the first two such lines, but not
>> the third.
>
>Thanks for noticing.  Fixed that in 451ca485d099bd20f2e9cfcb16deea8271df64a5.

_fromrd_encoder() has the same bug that _fromrd_decoder() did.  I
fixed it locally the same way, tested it, it seems to work.

---------------

mailutils$ git diff
diff --git a/libmailutils/filter/fromrd.c b/libmailutils/filter/fromrd.c
index 7c527e7e2..8e66b36f9 100644
--- a/libmailutils/filter/fromrd.c
+++ b/libmailutils/filter/fromrd.c
@@ -201,7 +201,8 @@ _fromrd_encoder (void *xd,
          else
            {
              optr[j++] = c;
-             xcode->state = S_INIT;
+             if (c != '\n')
+               xcode->state = S_INIT;
            }
          break;
          
mailutils$



reply via email to

[Prev in Thread] Current Thread [Next in Thread]