* On Sun, 21 Apr 2002, Im Eunjea wrote: > * Sven Guckes <[EMAIL PROTECTED]> [2002-04-21 04:35]: > > [...] > > > > > copy+paste from vim? > > > > anyway - this can be wrong if 'T' means > > something else than <tag-pattern>.. :-( > > > > the following is a little longer - but should work > > even when the keys are bound to other commands: > > > > macro index \Cr \ > > "<tag-pattern>~N\n<tag-prefix><clear-flag>N" \ > > "Mark all new messages as read" > > > > Too bad there's no <toggle-flag> command. > > any takers? > > I'm using this: > > macro index "\Cx" \ > "<tag-pattern>~N<enter><tag-prefix><toggle-new><tag-prefix><clear-flag>*" \ > "Mark all boring new msgs"
This malfunctions if there are no N(ew) messages by incorrectly setting N on the highlighted message. Note that you therefore can't run it twice in a row (unless you happen to get a new message in the interval). It will also set N on any non-N(ew) tagged messages. You should replace <toggle-new> with <clear-flag>N. I like Sven's version because it leaves the messages tagged so you can see which messages were affected, but no further action is required. The tags are cleared when you change mailboxes. -- John