diff --git a/main.go b/main.go index 7371c1f..a35ecfe 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() } }