File: 11mark_trashed_as_read.patch

package info (click to toggle)
claws-mail 4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 51,124 kB
  • sloc: ansic: 268,194; cpp: 19,477; xml: 11,269; sh: 5,794; perl: 2,767; makefile: 2,509; yacc: 2,470; python: 334; lex: 293
file content (20 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: feature patch to mark as read mails moved to trash
Author: Ricardo Mones <mones@debian.org>
Last-Update: 2024-12-14
Forwarded: not-needed

diff --git a/src/summaryview.c b/src/summaryview.c
index 47e1214..6d731ea 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -4655,6 +4655,10 @@ static void summary_copy_row_to(SummaryView *summaryview, GtkCMCTreeNode *row,
 		summary_msginfo_unset_flags(msginfo, MSG_DELETED, MSG_MOVE);
 	}
 	if (!prefs_common.immediate_exec) {
+		if (to_folder->stype == F_TRASH
+			&& MSG_IS_UNREAD(msginfo->flags)) {
+			summary_mark_row_as_read(summaryview, row);
+		}
 		summary_set_row_marks(summaryview, row);
 	}