~sircmpwn/aerc

Robin Opletal: 1
 Fix indentation

 1 files changed, 4 insertions(+), 4 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/16408/mbox | git am -3
Learn more about email & git

[PATCH v2] Fix indentation Export this patch

---
 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




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?