[neomutt-users] command from cli
Inrin
nmutt at jikken.de
Sat Sep 17 15:06:54 CEST 2022
On Thu, Sep 15, 2022 at 09:48:59PM +0200, Peter Szigetvari wrote:
>Hello!
Hello Peter,
>I duckduckgoed this in vain:
>
>I'd like to execute a command from the command line, e.g., open a
>mailbox then limit it to unread messages only. I tried all of the
>following in vain:
>
>neomutt -e "limit ~N" -f mybox
>neomutt -e "<limit> ~N" -f mybox
>neomutt -e "l ~N" -f mybox
>neomutt -e "l~N" -f mybox
>
>All of these, neomutt claims, are "unknown commands".
I had been successful using the "push" function:
neomutt -e 'push "<limit> ~N\n"'
It takes a single string as argument, so you need the quotes.
Greetings
Inrin
More information about the neomutt-users
mailing list