aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Balej <balejk@matfyz.cz>2024-10-23 19:03:53 +0200
committerRobin Jarry <robin@jarry.cc>2024-10-24 22:13:51 +0200
commite319d3291fb8be957f84cffc6d1f29e8c78a2d5b (patch)
treee9e054510be982889de8b260d5e2873d6a33949b
parent4f866e6894ef5731193ee88a2c5a5b00c1113de4 (diff)
downloadaerc-e319d3291fb8be957f84cffc6d1f29e8c78a2d5b.tar.gz
reply: consider the From address too when checking aliasesHEADdevel
This sets the likely usually desired From address when replying to a previously sent email and does not compose To the alias instead (unless reply-to-self is enabled). Changelog-fixed: Aliases are now taken into account correctly when replying to own messages such as from the Sent folder or via a mailing list. Signed-off-by: Karel Balej <balejk@matfyz.cz> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--commands/msg/reply.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index bfcebfca..4cbd27c8 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -274,6 +274,7 @@ func chooseFromAddr(conf *config.AccountConfig, msg *models.MessageInfo) *mail.A
}
rec := newAddrSet()
+ rec.AddList(msg.Envelope.From)
rec.AddList(msg.Envelope.To)
rec.AddList(msg.Envelope.Cc)
// test the from first, it has priority over any present alias