Skip to content

thread: optionally show per-message Subject in summary line#1714

Open
matclab wants to merge 1 commit intopazz:masterfrom
matclab:156-subject-in-thread
Open

thread: optionally show per-message Subject in summary line#1714
matclab wants to merge 1 commit intopazz:masterfrom
matclab:156-subject-in-thread

Conversation

@matclab
Copy link
Copy Markdown

@matclab matclab commented May 7, 2026

Add subject in thread view

Fix #566

Adds a new config option `msg_summary_show_subject` that controls
whether the Subject of each message is displayed on its summary line
in thread mode. Valid values:

* `never` (the default) keeps the current behaviour — no visible
   change for users who don't opt in.
* `always` always shows the subject as a dedicated column inserted
   before the tag widgets, so it is truncated last when the line is
   short.
* `different` shows the subject only when it differs from its
   parent subject after stripping common list/reply/forward prefixes.
   Recognised prefixes cover `Re`, `Fwd`, `Fw`, `Aw`, `Wg`,
   `Tr`, `Sv`, `Vs`, `Odp`, `Rv`, `Res` and `Rif` (case
   insensitive, recursive, with the `Re[2]:` counter form). 

The Subject header is captured at `Message` construction time
(symmetrically with the existing `From` capture), so rendering the
summary of a folded thread does not parse the underlying email file.

A new theming attribute `thread.summary.subject` lets users style
the subject column independently of the rest of the summary line.

Fixes pazz#566
@matclab
Copy link
Copy Markdown
Author

matclab commented May 7, 2026

To be transparent, this PR was written with the help of an AI in the process of testing it for my job in order to define how we can try to not use it w.r.t to the market.

I have reviewed it with my knowledge and understanding of alot code, but I'm sure my review was biased.

I understand it may be a sufficient reason to reject it, and it is ok.

@kbingham
Copy link
Copy Markdown
Contributor

kbingham commented May 8, 2026

Interesting, This seems to be similar to my work at #1589

I've just refreshed my branch so you can compare as we've been using this in our team for a long time.

@matclab
Copy link
Copy Markdown
Author

matclab commented May 8, 2026

Oh dear, I haven't see this PR ! Thanks.

@kbingham
Copy link
Copy Markdown
Contributor

kbingham commented May 8, 2026

I've just done a side by side comparison of this PR vs my PR at #1589. Left panel is this one, right panel is mine.

image

@matclab
Copy link
Copy Markdown
Author

matclab commented May 8, 2026

I've just done a side by side comparison of this PR vs my PR at #1589. Left panel is this one, right panel is mine.
The centering on my side doesn't seem the best idea ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

show subject in thread view

2 participants