FR: get the latest email
I need a subcommand himalaya message latest to get the latest email, instead of running himalaya to get id of the latest email and himalaya message read <id> to read it.
I'm using it to automatically forward my verification code SMS to email, and parse verification code from it.
If the FR is approved, I'm REALLY HAPPY to contribute a PR!
I don't have access to my computer this week, so I cannot reply properly. Someone already raised this topic long time ago, and after a long discussion we concluded that the CLI needs to remain as simple as possible. Everyone has different needs, they cannot be all included in the CLI. Better to make it simple and composable. For you example, using the jq tool and the JSON output is the way to go, sth like: himalaya message list --output json | jq -r '.0.id', which should grab the first id, then you can use it inside any other command.