diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -171,7 +171,10 @@ func main() { noIPC := opts.NoIPC || config.General.DisableIPC - if len(opts.Command) > 0 && !noIPC { + if len(opts.Command) > 0 && !noIPC && + !(config.General.DisableIPCMailto && strings.HasPrefix(opts.Command[0], "mailto:")) && + !(config.General.DisableIPCMbox && strings.HasPrefix(opts.Command[0], "mbox:")) { + response, err := ipc.ConnectAndExec(opts.Command) if err == nil { if response.Error != "" { |