summary refs log tree commit diff stats
path: root/widgets/compose.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-17 11:05:21 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-17 11:05:21 -0400
commit23650ac0c7173fcecfc727f1f4db52aeb168a3b9 (patch)
tree9c1c340ff93ff9d903a5f43a9d4bef38dbb9bd62 /widgets/compose.go
parente436780b4746fc7eb2dbbd804e4d7dc5cf5fef63 (diff)
downloadaerc-23650ac0c7173fcecfc727f1f4db52aeb168a3b9.tar.gz
Fix date header on outgoing emails
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 18fe38c..31c0a2d 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -221,7 +221,7 @@ func (c *Composer) PrepareHeader() (*mail.Header, []string, error) {
 	if subject, _ := header.Subject(); subject == "" {
 		header.SetSubject(c.headers.subject.input.String())
 	}
-	if date, err := header.Date(); err != nil && date != (time.Time{}) {
+	if date, err := header.Date(); err != nil || date == (time.Time{}) {
 		header.SetDate(time.Now())
 	}
 	if from, _ := mhdr.Text("From"); from == "" {
previous revision' href='/akkartik/mu/blame/055stream.subx?h=hlt&id=6a51218e12ce75e51301b834e1c48e86aefedc1e'>^
33352536 ^

03c6f1d3 ^
33352536 ^



bfcc0f85 ^
33352536 ^
bfcc0f85 ^
33352536 ^
03c6f1d3 ^
33352536 ^
03c6f1d3 ^
33352536 ^
3ac95f6a ^

71eb22a5 ^
33352536 ^
03c6f1d3 ^
2a2a5b1e ^
33352536 ^
6070c23e ^
2a2a5b1e ^
6ecddbaa ^
2a2a5b1e ^
33352536 ^
03c6f1d3 ^


33352536 ^

7a583220 ^
33352536 ^

03c6f1d3 ^
f0705578 ^
71eb22a5 ^
7a583220 ^
33352536 ^

f0705578 ^
33352536 ^


f0705578 ^
33352536 ^
f0705578 ^

33352536 ^
7a583220 ^
33352536 ^

f0705578 ^
1639687b ^

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
68
69
70
71
72
73
74