summary refs log tree commit diff stats
path: root/commands
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-16 21:14:11 +0100
committerReto Brunner <reto@labrat.space>2020-02-16 21:16:49 +0100
commit37fc4d9423151e8ca708c81ec79317b4da835a70 (patch)
treeaff55920121ab0b79fe9bb593d746f3056f4e5ef /commands
parent78dd043057af9ccf82d1d7ea1f316f2d55b769c2 (diff)
downloadaerc-37fc4d9423151e8ca708c81ec79317b4da835a70.tar.gz
msg/reply: fix address comparison
Compare self address in lowercase, to avoid self-replying when people
put in uppercase versions of the mail.

Reported-By: helby on Freenode
Diffstat (limited to 'commands')
-rw-r--r--commands/msg/reply.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 3c69e27..4357874 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -95,7 +95,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
 			}
 			for _, addr := range msg.Envelope.To {
 				address := fmt.Sprintf("%s@%s", addr.Mailbox, addr.Host)
-				if address == us.Address {
+				if strings.ToLower(address) == strings.ToLower(us.Address) {
 					continue
 				}
 				to = append(to, addr.Format())
e the previous revision' href='/danisanti/profani-tty/blame/tests/ui/mock_ui.h?id=12666b41e671b3daa98f66afc3127b3c718cde18'>^
5afb296e ^
571665ee ^

5afb296e ^
5a5b1340 ^


3d7d070b ^


8dbe300d ^


5a5b1340 ^






af51fa3c ^




7e956fb3 ^

82ad0cd3 ^


4afec6ab ^


b4b46399 ^

dd1ee18c ^

93397e45 ^


d56f6dc3 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67