From 771e676953c54aa6c818020687b53470ec5597f3 Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Thu, 22 Feb 2024 20:25:22 -0500 Subject: ipc: add more fine-grained options to disable IPC Add disable-ipc-mailto and disable-ipc-mbox to make mailto:... and mbox:... commands always run in a new instance, while still allowing aerc-internal commands (i.e., aerc :) to run over IPC. Changelog-added: Add config options `disable-ipc-mailto` and `disable-ipc-mbox` to make `mailto:...` and `mbox:...` commands always run in a new aerc instance. Signed-off-by: Jason Cox Acked-by: Robin Jarry --- config/aerc.conf | 12 ++++++++++++ config/general.go | 2 ++ 2 files changed, 14 insertions(+) (limited to 'config') diff --git a/config/aerc.conf b/config/aerc.conf index 70f07949..5fa1e6f1 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -45,6 +45,18 @@ # Default: false #disable-ipc=false +# Don't run mailto:... commands over IPC; start a new aerc instance with the +# composer instead. +# +# Default: false +#disable-ipc-mailto=false +# +# Don't run mbox:... commands over IPC; start a new aerc instance with the mbox +# file instead. +# +# Default: false +#disable-ipc-mbox=false + # Set the $TERM environment variable used for the embedded terminal. # # Default: xterm-256color diff --git a/config/general.go b/config/general.go index 6dc674b0..6fd37dcf 100644 --- a/config/general.go +++ b/config/general.go @@ -17,6 +17,8 @@ type GeneralConfig struct { LogFile string `ini:"log-file"` LogLevel log.LogLevel `ini:"log-level" default:"info" parse:"ParseLogLevel"` DisableIPC bool `ini:"disable-ipc"` + DisableIPCMailto bool `ini:"disable-ipc-mailto"` + DisableIPCMbox bool `ini:"disable-ipc-mbox"` EnableOSC8 bool `ini:"enable-osc8" default:"false"` Term string `ini:"term" default:"xterm-256color"` DefaultMenuCmd string `ini:"default-menu-cmd"` -- cgit