~soywod/pimalaya#21: 
Customize list command output fields

[source]

#email-lib

  • Think about an API to filter fields (the API may be similar to the one needed by #39).
  • Filter table and JSON fields according to the API.

#himalaya

  • Add a new argument --fields that takes a list of string, matching the defined API.
Status
RESOLVED WONT_FIX
Submitter
~soywod
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
3 months ago
Labels
1:email-lib 2:himalaya 3:cli

~soywod 1 year, 4 months ago

Bounty: 2500 €

~detegr 1 year, 3 months ago

The github url returns 404 for me. Permission issue?

~soywod 1 year, 3 months ago

Try again, it should be OK. It looks like you cannot access issues anymore when you disable the GitHub issue feature…

~soywod referenced this from #63 1 year, 3 months ago

~soywod 1 year, 3 months ago

To summarize the steps:

  • Add a new argument --fields that takes a list of string
  • Each field can be either a header name or one of those special tokens: id, internal-id, flags (new tokens could be added in the future)
  • Each field can be modified with filters. A filter is a token prefixed by :. For example Sender:name would return the name of the Sender, or From:email would return the email only.

~soywod referenced this from #7 1 year, 3 months ago

~soywod 1 year, 19 days ago

There is no more bounty for this task.

~soywod REPORTED WONT_FIX 3 months ago

I reconsider this task. First, the JSON output should remain as complete as possible, filtering should occur outside of Himalaya. Secondly, developing a DSL for filtering table output seems overkilled. Instead, individual options should be developped. If anyone has an option request, feel free to open a new issue.

Register here or Log in to comment, or comment via email.