Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More human friendly timestamp specifications and/or ISO8601 compatibility ? (low priority) #528

Open
ajanvrin opened this issue Dec 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ajanvrin
Copy link

It's more nice-to-have than anything, but I've been spoiled with systemd's time and date specifications.

Being able to do journalctl -u [someservice] --since "5h ago" is really nice!

I'd love to be able to do himalaya envelope list since "2 days ago"

Supporting such time specifications would be a great hassle, but a good first step might be to add ISO8601 compatibility with https://docs.rs/chrono/ or https://docs.rs/iso8601/.

If such timestamps were supported, one could do

himalaya envelope list after $(date --date="5 hours ago" --iso-8601=seconds)

and call it a day.

@ajanvrin
Copy link
Author

As a side note,

himalaya envelope list after $(date --date="5 days ago" --iso-8601) and not flag seen

Already works out of the box, you might want to showcase that in your examples, as it's already pretty cool.
Only works on Linux though

@soywod
Copy link
Member

soywod commented Dec 19, 2024

It should definitely be doable. FYI, the actual grammar for the search query derives from the IMAP RFC. Thanks for the idea!

@soywod soywod added the enhancement New feature or request label Dec 19, 2024
@soywod soywod added this to Pimalaya Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants