about summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-07 00:18:58 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-11 09:47:21 -0400
commitfefb08f83107d9ac0d11a93ece85f074585422fe (patch)
tree73cdef60b7ee6845fa66f616fc724e0be58d040a /worker
parentee1d971554a1c2c803fedccbf231ba23500b7bbc (diff)
downloadaerc-fefb08f83107d9ac0d11a93ece85f074585422fe.tar.gz
maildir: remove read handling from FetchMessageBodyPart
Diffstat (limited to 'worker')
-rw-r--r--worker/maildir/worker.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index 34d73f8..dbdb925 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -392,27 +392,6 @@ func (w *Worker) handleFetchMessageBodyPart(
 		},
 	}, nil)
 
-	// mark message as read
-	if err := m.MarkRead(true); err != nil {
-		w.worker.Logger.Printf("could not mark message as read: %v", err)
-		return err
-	}
-
-	// send updated flags to ui
-	info, err := m.MessageInfo()
-	if err != nil {
-		w.worker.Logger.Printf("could not fetch message info: %v", err)
-		return err
-	}
-	w.worker.PostMessage(&types.MessageInfo{
-		Message: types.RespondTo(msg),
-		Info:    info,
-	}, nil)
-
-	w.worker.PostMessage(&types.DirectoryInfo{
-		Info: w.getDirectoryInfo(w.selectedName),
-	}, nil)
-
 	return nil
 }
 
mu.html?h=hlt&id=63e1c465e46502bd7c391e31db73e7e5ae19adfd'>^
203563b3 ^
4a39d12d ^
f8a4a457 ^
e5c11a51 ^
9e751bb8 ^
f8a4a457 ^





e5c11a51 ^






















f8a4a457 ^


e5c11a51 ^
f8a4a457 ^
204dae92 ^








97eb971b ^
204dae92 ^




6c52e24e ^

124c6764 ^
204dae92 ^
201458e3 ^
204dae92 ^







f8a4a457 ^



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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90