Bug 447743 - Make List-Id id and phrase available separately to grantlee for header themeing
Summary: Make List-Id id and phrase available separately to grantlee for header themeing
Status: REPORTED
Alias: None
Product: kdepim
Classification: Applications
Component: messageviewer (show other bugs)
Version: GIT (master)
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-31 14:13 UTC by Erik Quaeghebeur
Modified: 2021-12-31 14:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2021-12-31 14:13:59 UTC
AFAICT, all variables available to grantlee header theme editors are listed in

https://invent.kde.org/pim/messagelib/-/blob/master/messageviewer/src/header/grantleeheaderformatter.cpp

There, the List-Id header is exposed as a string containing all of the List-Id header content. However, the List-Id header is structured (https://datatracker.ietf.org/doc/html/rfc2919). Namely, it contains the actual id between angle brackets and possibly also a descriptive phrase in front. Because for presentation purposes, the phrase is more useful than the id itself, it would be useful to expose these separately. The grantlee variable header.listid could be modified to have properties/fields for each, so header.listid.phrase (e.g., for display) and header.listid.id (e.g., for in title attribute of element used to display header.listid.phrase). In case the listid variable cannot be modified this way in a backwards-compatible manner, perhaps a new variable, e.g., header.structuredlistid, can be added.