Opened 5 years ago
Last modified 21 months ago
#15801 new bug
[Tracker] Columns should auto-adjust on mail folders
Reported by: | kallisti5 | Owned by: | nobody |
---|---|---|---|
Priority: | low | Milestone: | Unscheduled |
Component: | - General | Version: | R1/Development |
Keywords: | tracker email mail | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
When looking at mail folders, the columns show are non-relevant. They should change to the correct default when viewing mail folders.
Attachments (2)
Change History (5)
by , 5 years ago
Attachment: | default_view.png added |
---|
by , 5 years ago
Attachment: | column_options.png added |
---|
comment:1 by , 5 years ago
comment:2 by , 21 months ago
For IMAP folders, at least, this appears to be a bug. Tracker creates the text_x-email folder with a few e-mail specific columns set. See https://git.haiku-os.org/haiku/tree/src/kits/tracker/TrackerInitialState.cpp#n650 .
However, they're written BE and when Tracker tries to load the column attribute it doesn't fully understand how to convert it to LE. The _trk/columns attribute is destroyed and a default _trk/columns_le attribute is written.
Once that's fixed, then it shouldn't be hard too add in the right logic to copy attributes as needed.
comment:3 by , 21 months ago
Precursor work to fixing this is in https://review.haiku-os.org/c/haiku/+/6213 .
mail_daemon could set the column attributes of the "in" and "out" folders when the user chooses the "destination" folder in the mail_deamon settings. Maybe check if those folders have already set mail related column attributes, because the user may have customized their view already and we shouldn't overwrite that.
I don't see how it could be done within Tracker as any folder could be an email folder...