---
commands/msgview/save.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/commands/msgview/save.go b/commands/msgview/save.go
index 7649a5f..375be96 100644
--- a/commands/msgview/save.go
+++ b/commands/msgview/save.go
@@ -181,10 +181,10 @@ func generateFilename(part *models.BodyStructure) string {
if fn, ok := part.DispositionParams["filename"]; ok {
filename = fn
} else if fn, ok := part.Params["name"]; ok {
- filename = fn
- }
- // Used to handle "/", "." and ".." in filenames correctly
- filename = filename[strings.LastIndex(filename, "/")+1:]
+ filename = fn
+ }
+ // Used to handle "/", "." and ".." in filenames correctly
+ filename = filename[strings.LastIndex(filename, "/")+1:]
if filename == "" || filename == "." || filename == ".." {
timestamp := time.Now().Format("2006-01-02-150405")
filename = fmt.Sprintf("aerc_%v", timestamp)
--
2.29.2
Cheers,
Reto
Hi Robin,
Thanks for the patch.
However it does not seem to apply for me... is this the latest patch?
There were some hiccups along the way I think, care to resend?