aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 6752fbff..bb30734d 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -337,11 +337,11 @@ func (mv *MessageViewer) SelectedMessagePart() *PartInfo {
}
}
-func (mv *MessageViewer) AttachmentParts() []*PartInfo {
+func (mv *MessageViewer) AttachmentParts(all bool) []*PartInfo {
var attachments []*PartInfo
for _, p := range mv.switcher.parts {
- if p.part.Disposition == "attachment" {
+ if p.part.Disposition == "attachment" || (all && p.part.FileName() != "") {
pi := &PartInfo{
Index: p.index,
Msg: p.msg.MessageInfo(),