summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--notmuch-ssh-server6
1 files changed, 3 insertions, 3 deletions
diff --git a/notmuch-ssh-server b/notmuch-ssh-server
index 3ff0559..0dc8cc2 100644
--- a/notmuch-ssh-server
+++ b/notmuch-ssh-server
@@ -33,8 +33,8 @@ if len(original_command) < 1:
33config_section = original_command[0] 33config_section = original_command[0]
34logging.debug("Config section: %s", config_section) 34logging.debug("Config section: %s", config_section)
35 35
36command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] 36config_environment = config[config_section] if config.has_section(config_section) else config[config.default_section]
37logging.info("Command environment: %s", command_environment) 37logging.info("Config environment: %s", config_environment)
38 38
39logging.info("notmuch %s", original_command[1:]) 39logging.info("notmuch %s", original_command[1:])
40os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) 40os.execvpe('@notmuch@/bin/notmuch', original_command[1:], {**os.environ, **config_environment})