mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-18 20:10:22 +01:00
29 lines
854 B
Diff
29 lines
854 B
Diff
From: Darren Salt <linux@youmustbejoking.demon.co.uk>
|
|
Reviewed-by: Francesco Poli <frx@firenze.linux.it>
|
|
Date: Sun, 28 Jan 2018 18:20:19 +0900
|
|
Subject: escape '^From ' lines for not breaking GPG MIME signatures
|
|
Bug-Debian: http://bugs.debian.org/485855
|
|
|
|
---
|
|
libsylph/quoted-printable.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/libsylph/quoted-printable.c b/libsylph/quoted-printable.c
|
|
index adcdb05..adee4bc 100644
|
|
--- a/libsylph/quoted-printable.c
|
|
+++ b/libsylph/quoted-printable.c
|
|
@@ -52,6 +52,13 @@ void qp_encode_line(gchar *out, const guchar *in)
|
|
if (*inp == '\r')
|
|
inp++;
|
|
inp++;
|
|
+ if (strncmp(inp, "From ", 5) == 0) {
|
|
+ *outp++ = '=';
|
|
+ *outp++ = '4';
|
|
+ *outp++ = '6';
|
|
+ len += 3;
|
|
+ inp++;
|
|
+ }
|
|
} else if (ch == '\t' || ch == ' ') {
|
|
if (IS_LBREAK(inp + 1)) {
|
|
SOFT_LBREAK_IF_REQUIRED(3);
|