From 5666462f29e8cb6531b3b5ea832914e9fd0ccc37 Mon Sep 17 00:00:00 2001 From: Faster IT Date: Fri, 22 Nov 2024 04:52:20 +0100 Subject: [PATCH] Chore: Make symlink detection more specific to contain "sendmail" in the name (#391) --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7371c1f044..a35ecfea91 100644 --- a/main.go +++ b/main.go @@ -16,10 +16,11 @@ func main() { } // running directly - if normalize(filepath.Base(exec)) == normalize(filepath.Base(os.Args[0])) { + if normalize(filepath.Base(exec)) == normalize(filepath.Base(os.Args[0])) || + ! strings.Contains(filepath.Base(os.Args[0]), "sendmail") { cmd.Execute() } else { - // symlinked + // symlinked as "*sendmail*" sendmail.Run() } }