Giter Club home page Giter Club logo

Comments (3)

gahr avatar gahr commented on May 25, 2024 1

I think it's ok to close this?

from neomutt.

roccoblues avatar roccoblues commented on May 25, 2024

Thanks for the report. I can reproduce this with set query_command="abook --mutt-query '%s'"

Adding additional logging:

diff --git a/alias/dlg_query.c b/alias/dlg_query.c
index e00391f4e..5f92c211d 100644
--- a/alias/dlg_query.c
+++ b/alias/dlg_query.c
@@ -279,6 +279,8 @@ int query_run(const char *s, bool verbose, struct AliasList *al, const struct Co
   const char *const c_query_command = cs_subset_string(sub, "query_command");
   buf_file_expand_fmt_quote(cmd, c_query_command, s);

+  mutt_debug(LL_DEBUG5, "command: %s\n", buf_string(cmd));
+
   pid_t pid = filter_create(buf_string(cmd), NULL, &fp, NULL, EnvList);
   if (pid < 0)
   {

I can see that the quoting is messed up:

[2024-02-21 10:46:21]<5> query_run() command: abook --mutt-query ''Technik Lux <[email protected]>''
$ abook --mutt-query ''Technik Lux <[email protected]>''
zsh: no such file or directory: [email protected]

But when I remove the quotes:

set query_command="abook --mutt-query %s"

everything seems to work as expected.

from neomutt.

wanderl5 avatar wanderl5 commented on May 25, 2024

it's ok now, Thx a lot.

from neomutt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.