Re: Assigning multiple labels (X-Label) to a message

2020-12-20 Thread David Champion
* On 20 Dec 2020, Cameron Simpson wrote: > > David, does the comma flavoured version trim whitespace on the results? > I ask because my mail filing has been using ", " in X-Label in strict > adherence to nothing whatsoever. OTOH, I can change that. Yes. :) -- David Champion • d...@c13.us

Re: Assigning multiple labels (X-Label) to a message

2020-12-20 Thread Cameron Simpson
On 17Dec2020 18:58, Marcus C. Gottwald wrote: >David Champion wrote (Wed 2020-Dec-16 16:36:40 -0800): >> As Kevin mentioned, I have some patches that work to resolve this >> stuff. > >Thanks a lot for the info! > >> * The new code will permit X-Label keyword splitting on space or comma, > >Cool

Re: Assigning multiple labels (X-Label) to a message

2020-12-17 Thread Marcus C. Gottwald
David Champion wrote (Wed 2020-Dec-16 16:36:40 -0800): > As Kevin mentioned, I have some patches that work to resolve this > stuff. Thanks a lot for the info! > * The new code will permit X-Label keyword splitting on space or comma, Cool -- so I'll use either space or comma, depending on

Re: Assigning multiple labels (X-Label) to a message

2020-12-17 Thread Marcus C. Gottwald
Kevin J. McCarthy wrote (Wed 2020-Dec-16 10:05:34 -0800): > Mutt's label handling is pretty basic right now. It expects > only a single X-Label header in the email. When editing the > label, Mutt only knows how to write a single X-Label header > back. Thanks for the explanation. I'll change

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Kurt Hackenberg
On 2020-12-16 19:36, David Champion wrote: As Kevin mentioned, I have some patches that work to resolve this stuff * Upcoming code supports X-Label, X-Keywords, X-Mozilla-Keys, and Keywords. * Mutt will read keywords from any of these and, by default, write them back to the same

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread David Champion
Sorry for top-posting, the quoted stuff below is relevant but I don't want to respond point by point. As Kevin mentioned, I have some patches that work to resolve this stuff. They're up to date as of Mutt 2.0, and I hope to work on merging over the next few weeks (winter break in the US). A

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Kevin J. McCarthy
On Wed, Dec 16, 2020 at 02:35:00PM -0500, Kurt Hackenberg wrote: How does Mutt handle this through IMAP? The protocol knows about keywords. Mutt uses the message header for all backends. IMAP Flag keywords are used internally for setting 'old' on messages, but aren't exposed otherwise. --

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Luis Mochan
I use multiple space separated labels using only one X-label field to locally to classify my emails. I limit them with ~y and made some scripts to assign/edit them. Regards, Luis On Wed, Dec 16, 2020 at 03:42:07PM +0100, Marcus C. Gottwald wrote: > > Dear fellow Mutt users, > > I have incoming

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Kurt Hackenberg
On 2020-12-16 13:05, Kevin J. McCarthy wrote: Mutt's label handling is pretty basic right now.  It expects only a single X-Label header in the email.  When editing the label, Mutt only knows how to write a single X-Label header back. ... The label completion has some code to delimit by ":" or

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Kevin J. McCarthy
On Wed, Dec 16, 2020 at 03:42:07PM +0100, Marcus C. Gottwald wrote: I have incoming email messages which get multiple labels assigned by "procmail" piping through "formail -A", adding an "X-Label" header line for each label. Mutt fetches those email messages via IMAP and appears to be looking

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread ಚಿರಾಗ್ ನಟರಾಜ್
16/12/20 15:29 ನಲ್ಲಿ, ಚಿರಾಗ್ ನಟರಾಜ್ ಬರೆದರು: > > 16/12/20 07:23 ನಲ್ಲಿ, Felix Finch ಬರೆದರು: > > > > On 20201216, Felix Finch wrote: > > >I don't know the syntax of the X-Label header, but I manually added > > >"X-Label: One, Two, Three" to this message, in case that is a useful > >

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread ಚಿರಾಗ್ ನಟರಾಜ್
16/12/20 07:23 ನಲ್ಲಿ, Felix Finch ಬರೆದರು: > > On 20201216, Felix Finch wrote: > >I don't know the syntax of the X-Label header, but I manually added > >"X-Label: One, Two, Three" to this message, in case that is a useful > >experiment. > > Rats. Mutt stripped my fake X-Label: header right

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Felix Finch
On 20201216, Felix Finch wrote: I don't know the syntax of the X-Label header, but I manually added "X-Label: One, Two, Three" to this message, in case that is a useful experiment. Rats. Mutt stripped my fake X-Label: header right away; even the local Fcc: copy doesn't have it. --

Re: Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Felix Finch
On 20201216, Marcus C. Gottwald wrote: What's the recommended way to deal with multiple labels assigned to an email message? Can I make Mutt look at the values of all X-Label header lines? Should I change the procmail recipes to append (or prepend) additional labels to an existing X-Label header

Assigning multiple labels (X-Label) to a message

2020-12-16 Thread Marcus C. Gottwald
Dear fellow Mutt users, I have incoming email messages which get multiple labels assigned by "procmail" piping through "formail -A", adding an "X-Label" header line for each label. Mutt fetches those email messages via IMAP and appears to be looking at only the last X-Label header line when