mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 67c0a3b17c176679014f132453757e15c7f435f2
parent f53e8dc6721d55704fd7d6bd4bd238e42551deff
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Sun, 30 Apr 2017 18:34:37 +0200

mmime: print_header: only force qp-encoding for overlong lines

Lines SHOULD not be longer than 78 chars, and we try to fold like that,
but we only enforce qp-encoding for 7-bit safe lines if they would be
longer than 998, which they MUST not be.

Diffstat:
mmime.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmime.c b/mmime.c @@ -250,7 +250,7 @@ print_header(char *line) { } if (!highbit) { - if (e-s >= 78) + if (e-s >= 998) goto force_qp; if (e-s >= 78 - linelen) { // wrap in advance before long word