On 2016-07-25 23:44 +0200, Gregor Zattler wrote: > I get status emails in some mail folder which I occasionally > delete with delete-pattern (bound to "D") and this pattern: > > ~s"Cron <grfz@len> nice ionice -c 3 ~/bin/my-notmuch-new-and-tagging" > ~b^"No new mail." !~b"^Processed" > > > I would like to do this via a folder-hook like this: > > folder-hook +root 'push <delete-pattern>~s"Cron <grfz@len> nice ionice -c 3 > ~/bin/my-notmuch-new-and-tagging" ~b^"No new mail." !~b"^Processed"' > > but I don't know how to quote or escape the second argument. I > always get error messages "too many arguments". > > Can anyone please explain what I'm doung wrong?
Ah, the joys of nested quoting. "push" takes only one argument so you must find a way to make everything from « <delete » to « Processed" » look like one argument. You could try adding backslashes before every white space character therein. -- André Majorel http://www.teaser.fr/~amajorel/