aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-11-15 00:29:19 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-16 16:12:03 +0100
commit17bb9387c4a3ecab17ace3dc78694c2236a1024f (patch)
treebd1f9e0c249d2838872e8e5e7605de25566052a8 /widgets/msgviewer.go
parenteb10c328fd8953f4a2cc7d22126f4214a57c9261 (diff)
downloadaerc-17bb9387c4a3ecab17ace3dc78694c2236a1024f.tar.gz
config: move [filters] parsing to separate file
The config.go file is getting too big. Move the aerc.conf [filters] section parsing logic into a dedicated filters.go file. No functional change. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 4006e25b..c15187ae 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -557,7 +557,7 @@ func NewPartViewer(acct *AccountView, conf *config.AercConfig,
mime := part.FullMIMEType()
for _, f := range conf.Filters {
- switch f.FilterType {
+ switch f.Type {
case config.FILTER_MIMETYPE:
if fnmatch.Match(f.Filter, mime, 0) {
filter = exec.Command("sh", "-c", f.Command)