summary refs log tree commit diff stats
path: root/commands/msgview/save.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/save.go')
-rw-r--r--commands/msgview/save.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/msgview/save.go b/commands/msgview/save.go
index 33cd45f..99abe0e 100644
--- a/commands/msgview/save.go
+++ b/commands/msgview/save.go
@@ -94,6 +94,8 @@ func (Save) Execute(aerc *widgets.Aerc, args []string) error {
 			save_dir = path
 			if filename, ok := p.Part.DispositionParams["filename"]; ok {
 				save_file = filename
+			} else if filename, ok := p.Part.Params["name"]; ok {
+				save_file = filename
 			} else {
 				timestamp := time.Now().Format("2006-01-02-150405")
 				save_file = fmt.Sprintf("aerc_%v", timestamp)