Assigning multiple labels (X-Label) to a message
Kevin J. McCarthy
kevin at 8t8.us
Wed Dec 16 18:05:34 UTC 2020
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 at only the last X-Label header line when (a) formatting
>the index using the "%y" selector in "index_format" and
>(b) limiting using the "~y" pattern. (I'm using Mutt from current
>Debian stable, i.e. version 1.10.1.)
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.
I know dgc had some other patches to improve the situation, but they
haven't been merged yet.
>When using multiple labels in a single X-Label header line, are there
>any advantages in using a specific delimiter (space, comma, ...)?
Currently not really. The label completion has some code to delimit by
":" or ",". However, internally Mutt doesn't understand the multiple
values, making the completion less then useful.
So, as of now you have to devise your own scheme and edit carefully.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20201216/467b10e4/attachment.asc>
More information about the Mutt-users
mailing list