-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display per message subjects in thread widget #1559
base: master
Are you sure you want to change the base?
Conversation
I'm with you on this one. Having individual subjects that can be displayed in thread mode would be nice. There is one caveat: reading them from the email files on disk is costly, and this makes opening large threads slow. |
Oh bummer, after my patch that's an issue. I did notice that on large threads. I have to check the new bindings and, possibly, make the per-message-subjects appear only on demand or after expanding the thread (though that may look funny). |
So, I checked, and notmuch stores from, subject and mail id in the db since around 2014 or so. The feature is
|
OK great, so this means we should expect large threads to build relatively fast (but still slower than without your patch)..
Quoting Michael J Gruber (2021-01-01 18:46:00)
… So, I checked, and notmuch stores from, subject and mail id in the db since
around 2014 or so. The feature is NOTMUCH_FEATURE_FROM_SUBJECT_ID_VALUES.
notmuch_message_get_header() (the C library function) gets those headers from
the db and others from the message file. And that's the library function which
is behind Message.header() in the new bindings (and Message.get_header() in the
old ones).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.*
|
I'll rebase shortly: There are indeed messages without subject where nm2 throws a LookupError. I have to catch that. Although it does not break anything as is you get a red warning to look at the log, which is not nice. |
a9f8848
to
7599d37
Compare
I think I already did that in 70d7cb6 |
You did it for |
7599d37
to
a95aab2
Compare
You are right. Thanks!
|
I think this is nice, but would like to hear some other opinion on it, @lucc?
|
Many senders to not quite grasp the concept of a mail thread, and this "hijack" a thread by replying and changing the subject. In addition, there may be good reasons for replies with changed subject, such as an adjustment of status or the typical patch series threads with individual topics. Currently, all this information is hidden in collapsed view but may be valuable for expanding the right message. Therefore, provide individual subjects for the messages in thread view.
a95aab2
to
f788ddd
Compare
Many senders to not quite grasp the concept of a mail thread, and this
"hijack" a thread by replying and changing the subject. In addition,
there may be good reasons for replies with changed subject, such as an
adjustment of status or the typical patch series threads with individual
topics.
Currently, all this information is hidden in collapsed view but may be
valuable for expanding the right message. Therefore, provide individual
subjects for the messages in thread view.
I'm open to suggestions on how to make this configurable ...