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

Re: race condition? -or- better way to transparently edit a message's headers?



Hi,

mike <pulsation@xxxxxxxxx> [06/08/08 12:57] typed :

<snip>
> 
> i am using the following macros to implement a weighted importance
> system within mutt.  the solitary important flag doesn't cut it for a
> busy professional.
> 
> macro index <right> ":set editor='mutt_importance
> inc'<Return><edit>:set editor=\"vim -c 'set
> tw=72'\"<Return><sync-mailbox>y<next-undeleted><toggle-new><previous-undeleted>"
> macro index <left> ":set editor='mutt_importance
> dec'<Return><edit>:set editor=\"vim -c 'set
> tw=72'\"<Return><sync-mailbox>y<next-undeleted><toggle-new><previous-undeleted>"
> 

If I understand this correctly, your script will increment or
decrement the X-Mutt-Importance header. If you would like similar
functionality without using an external script, you could look into
using the X-Label header instead of X-Mutt-Importance. Out of the box,
mutt can display the text from that header in the index using %Y.
There is a patch from David Champion
(http://home.uchicago.edu/~dgc/mutt/) that allows you to edit this
field within mutt.

In my setup, I use some simple macros such as

macro index .r <edit-label>Respond<enter>
macro pager .r <edit-label>Respond<enter>

to mark messages and limit my view to such messages using

<limit>~y .<enter>

You can replace the . with some specific label text if you want.

HTH,
sridhar 
-- 
Sridhar Srinivasan (sridhar@xxxxxxxxxxxx)
http://www.zsridhar.com/