[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-66-gd7f77df65
paul at claws-mail.org
paul at claws-mail.org
Sat Mar 16 06:15:49 UTC 2024
The branch, gtk2 has been updated
via d7f77df65cdaceef9963ac27d5b2922ebdd77556 (commit)
from ae798941c783a40f8176c8c037203b8a34e57590 (commit)
Summary of changes:
src/compose.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d7f77df65cdaceef9963ac27d5b2922ebdd77556
Author: Paul <paul at claws-mail.org>
Date: Sat Mar 16 06:14:58 2024 +0000
enable 'Remove references' when forwarding mail
diff --git a/src/compose.c b/src/compose.c
index 1989602ab..3ca859c16 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1,6 +1,6 @@
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1774,6 +1774,16 @@ Compose *compose_forward(PrefsAccount *account, MsgInfo *msginfo,
else
mode = COMPOSE_FORWARD;
compose = compose_create(account, msginfo->folder, mode, batch);
+
+ cm_toggle_menu_set_active_full(compose->ui_manager, "Menu/Options/RemoveReferences", TRUE);
+ cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Options/RemoveReferences", TRUE);
+
+ if (compose_parse_header(compose, msginfo) < 0) {
+ compose->updating = FALSE;
+ compose_destroy(compose);
+ return NULL;
+ }
+
compose_apply_folder_privacy_settings(compose, msginfo->folder);
compose->updating = TRUE;
@@ -3024,7 +3034,10 @@ static gint compose_parse_header(Compose *compose, MsgInfo *msginfo)
compose->folder->stype == F_DRAFT)
compose->msgid = g_strdup(msginfo->msgid);
} else {
- if (msginfo->msgid && *msginfo->msgid)
+ if (msginfo->msgid && *msginfo->msgid &&
+ (compose->mode != COMPOSE_FORWARD &&
+ compose->mode != COMPOSE_FORWARD_INLINE &&
+ compose->mode != COMPOSE_FORWARD_AS_ATTACH))
compose->inreplyto = g_strdup(msginfo->msgid);
if (!compose->references) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list