<<< Date Index >>>     <<< Thread Index >>>

Re: Editing headers of saved messages



* On 2004.06.26, in <20040626175601.GB2033@xxxxxxxxxxxxx>,
*       "Vincent Lefevre" <vincent@xxxxxxxxxx> wrote:
> > have customized it and rather like it.  Now, I'd like to have the
> > ability to add one or more labels to messages.  It occurs to me the
> > best way to do this is to add a custom header to messages that
> > stores a list of labels separated by commas for instance,
> > "X-Local-Labels: work, school, friends").
> 
> I've chosen X-Label so that I can use ~y in patterns, and my labels
> are space-separated. I've created the following two macros:
> 
> macro index a ":set pipe_split=yes\CM|$HOME/scripts/addlabels "
> macro index y "<limit>~y\"( |\\\\\\\`)( 
> |\\\\\\\')\"<left><left><left><left><left><left><left><left><left>"

Yes, X-Label: was created for pretty much this purpose, though
multivaluedness was left up to the user. :)

The %y and ~y code is only part of X-Label, though. There's a patch that
lets you edit the X-Label: using mutt's builtin buffy editor, without
shelling out editing scripts. (That might still be useful, though, for
particular purposes.)

http://home.uchicago.edu/~dgc/mutt/#x-label

<edit-label> is bound to 'y'.

-- 
 -D.    dgc@xxxxxxxxxxxx                                  NSIT::ENSS
        No money,  no book.  No book,  no study.  No study, no pass.
        No pass, no graduate. No graduate, no job. No job, no money.
             T h e   U n i v e r s i t y   o f   C h i c a g o