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

Re: how to mark all mail as read when exit mutt automatically?



On Sun, 2006-03-19 at 13:55:45 +0800, scwang@xxxx sent:
>When I exit mutt, I want all unreaded messages marked as read.
>How ?
>
This is how I would go about it:

# map the 'q' key in the index to...
# tag all new messages
# toggle the 'new' flag
# quit mutt as normal
macro index q '<tag-pattern>~N<enter><tag-prefix><toggle-new><quit>'

Hope this helps;

--paj
-- 
Pete Johns                                   <http://johnsy.com/>
Tel/Fax numbers and IM information:  <http://johnsy.com/contact/>
Bebo and co.       <http://johnsy.com/blog/?entry=20060318201737>