aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2024-06-29 17:14:21 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-20 11:54:34 +0200
commitb94b4c00c9c96355c411881b5e5cc42c5f83d159 (patch)
tree6369a6010c04f5db6772774575770c2dc949d844 /worker
parenta64563466ddcb9fc321b8dd540f929c979310af9 (diff)
downloadaerc-b94b4c00c9c96355c411881b5e5cc42c5f83d159.tar.gz
forward: allow forwarded flag to be set
Usually, a MUA sets a flag for messages that have been forwarded, but this is currently not the case for aerc. Consider the forwarded flag and prepare aerc to set it everytime the :forward command is called and ends successfully. Changelog-added: The :forward command now sets the forwarded flag. Signed-off-by: inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker')
-rw-r--r--worker/types/messages.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go
index 3fd018b2..b91adbb7 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -186,6 +186,12 @@ type AnsweredMessages struct {
Uids []uint32
}
+type ForwardedMessages struct {
+ Message
+ Forwarded bool
+ Uids []uint32
+}
+
type CopyMessages struct {
Message
Destination string