about summary refs log tree commit diff stats
path: root/commands/msgview
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-01-19 20:31:17 +0100
committerDrew DeVault <sir@cmpwn.com>2020-01-20 09:21:29 -0500
commit6b0483dd92986b3a4dfdd60f4c2289c83f252d6b (patch)
tree7d0a1971d37c4ebd9a04cae275bf86ab2d58fc4c /commands/msgview
parent5b3acb8034e78680eb8dca472af5dd72af57414e (diff)
downloadaerc-6b0483dd92986b3a4dfdd60f4c2289c83f252d6b.tar.gz
msgview/open: remove manual decoding
Diffstat (limited to 'commands/msgview')
-rw-r--r--commands/msgview/open.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go
index 6001d28..b467543 100644
--- a/commands/msgview/open.go
+++ b/commands/msgview/open.go
@@ -1,13 +1,10 @@
 package msgview
 
 import (
-	"encoding/base64"
 	"errors"
 	"io"
 	"io/ioutil"
-	"mime/quotedprintable"
 	"os"
-	"strings"
 	"time"
 
 	"git.sr.ht/~sircmpwn/aerc/lib"
@@ -37,14 +34,6 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error {
 	p := mv.SelectedMessagePart()
 
 	p.Store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) {
-		// email parts are encoded as 7bit (plaintext), quoted-printable, or base64
-
-		if strings.EqualFold(p.Part.Encoding, "base64") {
-			reader = base64.NewDecoder(base64.StdEncoding, reader)
-		} else if strings.EqualFold(p.Part.Encoding, "quoted-printable") {
-			reader = quotedprintable.NewReader(reader)
-		}
-
 		tmpFile, err := ioutil.TempFile(os.TempDir(), "aerc-")
 		if err != nil {
 			aerc.PushError(" " + err.Error())
'alt'>
ea2d44bd ^

























71e4f381 ^
ea2d44bd ^


71e4f381 ^
ea2d44bd ^


65dcc746 ^
ea2d44bd ^





ab445d6e ^
ea2d44bd ^


ea2d44bd ^



ab445d6e ^


ea2d44bd ^
951c3f4c ^
ea2d44bd ^

71e4f381 ^
ea2d44bd ^
cd94852d ^
951c3f4c ^
307a7553 ^


74f1512f ^
307a7553 ^
951c3f4c ^
307a7553 ^
cd94852d ^






951c3f4c ^

cd94852d ^



951c3f4c ^

cd94852d ^





















71e4f381 ^

cd94852d ^

65dcc746 ^
cd94852d ^












951c3f4c ^
cd94852d ^

cd94852d ^
951c3f4c ^
cd94852d ^
951c3f4c ^
cd94852d ^








951c3f4c ^
cd94852d ^

8e4b4f20 ^



















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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193