diff options
Diffstat (limited to 'app/msgviewer.go')
-rw-r--r-- | app/msgviewer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/msgviewer.go b/app/msgviewer.go index 7b24e756..a78daa3a 100644 --- a/app/msgviewer.go +++ b/app/msgviewer.go @@ -480,6 +480,11 @@ func NewPartViewer( if f.Regex.Match([]byte(header)) { filter = exec.Command("sh", "-c", f.Command) } + case config.FILTER_FILENAME: + if f.Regex.Match([]byte(part.DispositionParams["filename"])) { + filter = exec.Command("sh", "-c", f.Command) + log.Tracef("command %v", f.Command) + } } if filter != nil { break |