[Commits] [SCM] claws branch, master, updated. 4.3.0-29-g19269f8c4
paul at claws-mail.org
paul at claws-mail.org
Tue Aug 13 18:03:47 UTC 2024
The branch, master has been updated
via 19269f8c4d3d2c2c277715e7b47d9d81ef2c1978 (commit)
from 0c6385ef2b989fa26d2e17cdcdb71d305092572e (commit)
Summary of changes:
src/compose.c | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 19269f8c4d3d2c2c277715e7b47d9d81ef2c1978
Author: Paul <paul at claws-mail.org>
Date: Tue Aug 13 19:03:44 2024 +0100
if a user choses to use 8bit content transfer encoding and wants to exceed the 998 byte line length limit, let them
diff --git a/src/compose.c b/src/compose.c
index 3d73f2197..2318263f6 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5855,9 +5855,23 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
if (action == COMPOSE_WRITE_FOR_SEND &&
encoding != ENC_QUOTED_PRINTABLE && encoding != ENC_BASE64 &&
check_line_length(buf, 1000, &line) < 0) {
- debug_print("Line %d exceeds the line length limit (998 bytes), "
- "switching to QP transfer encoding\n", line + 1);
- encoding = ENC_QUOTED_PRINTABLE;
+ if (encoding == ENC_8BIT) {
+ AlertValue aval;
+
+ msg = g_strdup_printf
+ (_("Line %d exceeds the line length limit (998 bytes).\n"
+ "The contents of the message might be broken on the way "
+ "to the recipient."), line + 1);
+ aval = alertpanel(_("Warning"), msg, NULL, _("Send safely"), NULL, _("Send as-is"),
+ NULL, NULL, ALERTFOCUS_FIRST);
+ g_free(msg);
+ if (aval != G_ALERTALTERNATE)
+ encoding = ENC_QUOTED_PRINTABLE;
+ } else {
+ debug_print("Line %d exceeds the line length limit (998 bytes), "
+ "switching to QP transfer encoding\n", line + 1);
+ encoding = ENC_QUOTED_PRINTABLE;
+ }
}
if (prefs_common.rewrite_first_from && (encoding == ENC_8BIT || encoding == ENC_7BIT)) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list