Re: How to set color only for the parent of a thread in index mode?
On Fri, Jan 10, 2014 at 10:41:57AM +0800, Techlive Zheng wrote: Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? You could match for the following pattern: !~h In-Reply-To: This will only match non-replies (parent messages) and should work with most list managers (haven't seen one that doesn't, yet). -- kchr |_|O|_| |_|_|O| Kim Christensen |O|O|O| http://technopragmatics.org - () ascii ribbon campain - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature
Re: How to set color only for the parent of a thread in index mode?
On Sat, Jan 11, 2014 at 05:16:51AM +0100, Kim Christensen wrote: On Fri, Jan 10, 2014 at 10:41:57AM +0800, Techlive Zheng wrote: Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? You could match for the following pattern: !~h In-Reply-To: This will only match non-replies (parent messages) and should work with most list managers (haven't seen one that doesn't, yet). Also, to only match list posts (not normal messages), you could add a check for List-Post header inclusion along with In-Reply-To header exclusion): (!~h In-Reply-To ~h List-Post) Regards, -- kchr |_|O|_| |_|_|O| Kim Christensen |O|O|O| http://technopragmatics.org - () ascii ribbon campain - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature
Re: How to set color only for the parent of a thread in index mode?
On Sat, Jan 11, 2014 at 05:22:58AM +0100, Kim Christensen wrote: On Sat, Jan 11, 2014 at 05:16:51AM +0100, Kim Christensen wrote: On Fri, Jan 10, 2014 at 10:41:57AM +0800, Techlive Zheng wrote: Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? You could match for the following pattern: !~h In-Reply-To: This will only match non-replies (parent messages) and should work with most list managers (haven't seen one that doesn't, yet). Also, to only match list posts (not normal messages), you could add a check for List-Post header inclusion along with In-Reply-To header exclusion): (!~h In-Reply-To ~h List-Post) Another idea: I realize that my suggestions also matches non-threads (single messages list messages) - this may not be what you wanted. One way to make sure the messages is part (and parent) of a thread is by first letting mutt set the thread state itself. This can be done by collapsing all threads, then mathing for messages that: 1) are part of a collapsed thread, and 2) is not a reply Pattern: (~v !~h In-Reply-To) This pattern uses the fact mutt already decided which messages are part of a thread (when you toggled the collapse state), adding only the exclusion of the In-Reply-To header - which should make it a bit faster as well as the safest (iirc?) way to check for threads... -- kchr |_|O|_| |_|_|O| Kim Christensen |O|O|O| http://technopragmatics.org - () ascii ribbon campain - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature