[kdepim] [Bug 447742] New: Make URL-containg List headers available to grantlee for header themeing

Erik Quaeghebeur bugzilla_noreply at kde.org
Fri Dec 31 13:56:19 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=447742

            Bug ID: 447742
           Summary: Make URL-containg List headers available to grantlee
                    for header themeing
           Product: kdepim
           Version: GIT (master)
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: messageviewer
          Assignee: kdepim-bugs at kde.org
          Reporter: bugs.kde.org at e3q.eu
                CC: kdepim-bugs at kde.org
        Depends on: 447736
  Target Milestone: ---

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, it seems some standard (although less common) headers are missing. Some
of these likely require some extra parsing before they can be made available.
Namely, the URL-containg List-* headers
(https://datatracker.ietf.org/doc/html/rfc2369) are not exposed to grantlee.
Would it be possible to make List-Help, List-Unsubscribe, List-Subscribe,
List-Owner, and List-Archive available to grantlee for header themeing?

As per the RFC, the information in the headers is a list of URLs (between angle
brackets <…>, other content can be ignored), possibly both http and mailto
ones. The preference is from left to right. List-Post has a special value ‘NO’
for lists that can't be posted to.

For header theme designers, it would be useful to have, e.g.,
header.listUnsubscribe be a list of items that can be iterated over using
grantlee. Each item would then contain a URL header.listUnsubscribe.k.url and
type information header.listUnsubscribe.k.protocol (http or mailto), where k is
the current list index (normal usage: {% for item in header.listUnsubscribe
%}do something with {{ item }} to create output{% endfor %}).


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=447736
[Bug 447736] Make Resent-Date, Resent-Sender, Resent-Cc, and Resent-Bcc
available to grantlee for header themeing
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list