From: rapenne-s <rapenne-s@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: mmime breaks headers
Date: Sun, 10 Mar 2024 16:20:36 +0100 [thread overview]
Message-ID: <20240310152036.C085826884@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-257@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
New comment by rapenne-s on mblaze repository
https://github.com/leahneukirchen/mblaze/issues/257#issuecomment-1987267017
Comment:
I got a diff with which the tests pass, not sure it's good though
```
diff --git a/mmime.c b/mmime.c
index 6334569..b521efc 100644
--- a/mmime.c
+++ b/mmime.c
@@ -347,7 +347,7 @@ print_header(char *line) {
if (!highbit) {
if (e-s >= 998)
goto force_qp;
- if (e-s >= 78 - linelen) {
+ if (e-s >= 78 - linelen && linelen > 0) {
// wrap in advance before long word
printf("\n");
linelen = 0;
```
next prev parent reply other threads:[~2024-03-10 15:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-10 12:52 [ISSUE] " rapenne-s
2024-03-10 14:26 ` rapenne-s
2024-03-10 15:20 ` leahneukirchen
2024-03-10 15:20 ` rapenne-s [this message]
2024-03-10 15:26 ` leahneukirchen
2024-03-10 15:27 ` leahneukirchen
2024-03-10 15:30 ` rapenne-s
2024-03-10 15:36 ` leahneukirchen
2024-03-10 16:06 ` [ISSUE] [CLOSED] " leahneukirchen
2024-03-10 16:06 ` leahneukirchen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240310152036.C085826884@inbox.vuxu.org \
--to=rapenne-s@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).