aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index b7437fbd..21805345 100644
--- a/main.go
+++ b/main.go
@@ -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 != "" {