diff options
author | Jason Cox <me@jasoncarloscox.com> | 2024-02-22 20:25:22 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-04-13 21:46:47 +0200 |
commit | 771e676953c54aa6c818020687b53470ec5597f3 (patch) | |
tree | c8c9d308efaacc5691af699f904fc05c56815d7f /config | |
parent | 480637d9ed8cf979f4be377cb37fdd14b60ceef3 (diff) | |
download | aerc-771e676953c54aa6c818020687b53470ec5597f3.tar.gz |
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 :<command...>) 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 <me@jasoncarloscox.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf | 12 | ||||
-rw-r--r-- | config/general.go | 2 |
2 files changed, 14 insertions, 0 deletions
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"` |