mblaze

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

commit cf594afb833cb09819b5d1a4edacd0d00808045a
parent 88898a4e5e3b928961335b6a7334c7f1902d2186
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Mon,  1 Aug 2016 17:18:16 +0200

mmime: fix prevq logic

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

diff --git a/mmime.c b/mmime.c @@ -242,6 +242,7 @@ print_header(char *line) { printf("?=\n"); s += w; linelen = 0; + prevq = 1; } if (s < e) { if (linelen + (e-s)+13 > 78) { @@ -253,13 +254,13 @@ print_header(char *line) { linelen += 13; linelen += gen_qp((uint8_t *)s, e-s, 999, 1); printf("?="); + prevq = 1; } else { fwrite(s, 1, e-s, stdout); linelen += e-s; prevq = 0; } } - prevq = 1; } else { if (linelen + (e-s) > 78) { printf("\n");