Re: macro: mark all new as read (was: toggle-read)
John, et al -- ...and then John Iverson said... % % * On Sun, 21 Apr 2002, Im Eunjea wrote: % ... % macro index \Cx \ % tag-pattern~Nentertag-prefixtoggle-newtag-prefixclear-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 While I generally agree that clear-flag is probably a better way to go than toggle-new in this case, note also that Nicolas's tag_conditional patch would avoid this sort of problem no matter what you were doing to your tagged messages. I think it's excellent. HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27676/pgp0.pgp Description: PGP signature
Re: macro: mark all new as read (was: toggle-read)
* 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\ntag-prefixclear-flagN \ 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~Nentertag-prefixtoggle-newtag-prefixclear-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-flagN. 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
Re: macro: mark all new as read (was: toggle-read)
* John Iverson [EMAIL PROTECTED] [2002-04-25 13:40]: [...] I'm using this: macro index \Cx \ tag-pattern~Nentertag-prefixtoggle-newtag-prefixclear-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-flagN. why run twice? and I can see there N(ew) flag or not. (and you?) ;) 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. that's why I using toggle-new. I don't like leave tags there. -- http://mutt.kldp.org
Re: macro: mark all new as read (was: toggle-read)
* On Fri, 26 Apr 2002, Im Eunjea wrote: * John Iverson [EMAIL PROTECTED] [2002-04-25 13:40]: [...] I'm using this: macro index \Cx \ tag-pattern~Nentertag-prefixtoggle-newtag-prefixclear-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-flagN. why run twice? and I can see there N(ew) flag or not. (and you?) ;) You would not normally run it twice. I'm just using that to show that it fails when there are no New mails. The intention of the macro is to clear N flags (turn them off), not to toggle them. Also, if you have any tagged non-New messages when you run your macro, their N flags get turned back on. I'm sure it works with the way you use it -- I'm just suggesting how to make it more robust. 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. that's why I using toggle-new. I don't like leave tags there. I was talking about tagged messages, not the New (N) flag. If you just replace toggle-new with clear-flagN in your macro, it should work the same as before, without failing in the cases I mentioned. The tag-prefixclear-flag* at the end will still clear the tags, right? -- John
Re: macro: mark all new as read (was: toggle-read)
* John Iverson [EMAIL PROTECTED] [2002-04-25 14:19]: * On Fri, 26 Apr 2002, Im Eunjea wrote: * John Iverson [EMAIL PROTECTED] [2002-04-25 13:40]: [...] I'm using this: macro index \Cx \ tag-pattern~Nentertag-prefixtoggle-newtag-prefixclear-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-flagN. why run twice? and I can see there N(ew) flag or not. (and you?) ;) You would not normally run it twice. I'm just using that to show that it fails when there are no New mails. The intention of the macro is to clear N flags (turn them off), not to toggle them. Also, if you have any tagged non-New messages when you run your macro, their N flags get turned back on. I'm sure it works with the way you use it -- I'm just suggesting how to make it more robust. 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. that's why I using toggle-new. I don't like leave tags there. I was talking about tagged messages, not the New (N) flag. If you just replace toggle-new with clear-flagN in your macro, it should work the same as before, without failing in the cases I mentioned. The tag-prefixclear-flag* at the end will still clear the tags, right? Ok, got it, Thanks. :) -- http://kldp.org/~eunjea/
Re: macro: mark all new as read (was: toggle-read)
* 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\ntag-prefixclear-flagN \ 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~Nentertag-prefixtoggle-newtag-prefixclear-flag* \ Mark all boring new msgs -- http://mutt.kldp.org http://kldp.org/~eunjea/
macro: mark all new as read (was: toggle-read)
* Bo Peng [EMAIL PROTECTED] [2002-04-08 19:05]: A macro to toggle all new email as read, if anyone is interested: macro »·index»··\Cr»··»···T~N\nN\Ct.\n»·Mark all new messages as read 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\ntag-prefixclear-flagN \ Mark all new messages as read Too bad there's no toggle-flag command. any takers? Sven