Re: macro: mark all new as read (was: toggle-read)

2002-04-26 Thread David T-G

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)

2002-04-25 Thread John Iverson

* 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)

2002-04-25 Thread Im Eunjea

* 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)

2002-04-25 Thread John Iverson

* 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)

2002-04-25 Thread Im Eunjea

* 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)

2002-04-21 Thread Im Eunjea

* 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)

2002-04-20 Thread Sven Guckes

* 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



Re: toggle-read?

2002-04-08 Thread Dan Boger

On Mon, Apr 08, 2002 at 01:31:04PM -0500, David T-G wrote:
 ...and then Bo Peng said...
 % 
 % Is there a toggle-read function somewhere? Sometimes, I want to toggle emails
 % as read without really reading them. I am using setflag O (old) but this is
 % not exactly what I want.
 
 You can write ('w') or clear ('W') any flag you want.  In addition, you
 can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
 index help screen for more info.

hmmm... on my mutt (1.3.28i) I don't see that.  What I use is N -
toggle-new.

:)

-- 
Dan Boger
Linux MVP
brainbench.com




msg26877/pgp0.pgp
Description: PGP signature


Re: toggle-read?

2002-04-08 Thread David T-G

Dan --

...and then Dan Boger said...
% 
% On Mon, Apr 08, 2002 at 01:31:04PM -0500, David T-G wrote:
%  ...and then Bo Peng said...
%  % 
%  % Is there a toggle-read function somewhere? Sometimes, I want to toggle emails
%  % as read without really reading them. I am using setflag O (old) but this is
%  % not exactly what I want.
%  
%  You can write ('w') or clear ('W') any flag you want.  In addition, you
%  can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
%  index help screen for more info.
% 
% hmmm... on my mutt (1.3.28i) I don't see that.  What I use is N -

What don't you see?


% toggle-new.

Yep; good, unless you want to set replied or flagged or ...


% 
% :)
% 
% -- 
% Dan Boger
% Linux MVP
% brainbench.com
% 


:-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!




msg26880/pgp0.pgp
Description: PGP signature


Re: toggle-read?

2002-04-08 Thread Bo Peng


Thank you. Toggle-new, when applied to new email, is exactly toggle-read!

Bo

On Mon, Apr 08, 2002 at 02:39:31PM -0400, Dan Boger wrote:
 Date: Mon, 8 Apr 2002 14:39:31 -0400
 From: Dan Boger [EMAIL PROTECTED]
 To: Mutt Users' List [EMAIL PROTECTED]
 Subject: Re: toggle-read?

 On Mon, Apr 08, 2002 at 01:31:04PM -0500, David T-G wrote:
  ...and then Bo Peng said...
  % 
  % Is there a toggle-read function somewhere? Sometimes, I want to toggle emails
  % as read without really reading them. I am using setflag O (old) but this is
  % not exactly what I want.
  
  You can write ('w') or clear ('W') any flag you want.  In addition, you
  can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
  index help screen for more info.

 hmmm... on my mutt (1.3.28i) I don't see that.  What I use is N -
 toggle-new.

 :)

 -- 
 Dan Boger
 Linux MVP
 brainbench.com




-- 
Bo Peng
Department of Statistics
Rice University
http://www.stat.rice.edu/~bpeng



Re: toggle-read?

2002-04-08 Thread Bo Peng


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

The middle N part is what I was looking for. 

 On Mon, Apr 08, 2002 at 01:31:04PM -0500, David T-G wrote:
  ...and then Bo Peng said...
  % 
  % Is there a toggle-read function somewhere? Sometimes, I want to toggle emails
  % as read without really reading them. I am using setflag O (old) but this is
  % not exactly what I want.
  
  You can write ('w') or clear ('W') any flag you want.  In addition, you
  can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
  index help screen for more info.

 hmmm... on my mutt (1.3.28i) I don't see that.  What I use is N -
 toggle-new.

 :)




Re: toggle-read?

2002-04-08 Thread Dan Boger

On Mon, Apr 08, 2002 at 01:49:25PM -0500, David T-G wrote:
 %  You can write ('w') or clear ('W') any flag you want.  In addition, you
 %  can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
 %  index help screen for more info.
 % 
 % hmmm... on my mutt (1.3.28i) I don't see that.  What I use is N -
 
 What don't you see?

sorry - was looking for the keyword write instead of ^w.  yes,
set/clear flag is defenitly there, and useful too!

 % toggle-new.
 
 Yep; good, unless you want to set replied or flagged or ...

good point.  I do believe the original question was how to mark as
read which, to me, means not new :)

heh, guess the perl moto applies to mutt as well :)

-- 
Dan Boger
[EMAIL PROTECTED]



msg26885/pgp0.pgp
Description: PGP signature


Re: toggle-read?

2002-04-08 Thread David T-G

Dan --

...and then Dan Boger said...
% 
% On Mon, Apr 08, 2002 at 01:49:25PM -0500, David T-G wrote:
%  %  You can write ('w') or clear ('W') any flag you want.  In addition, you
...
%  % 
%  % hmmm... on my mutt (1.3.28i) I don't see that.  What I use is N -
%  
%  What don't you see?
% 
% sorry - was looking for the keyword write instead of ^w.  yes,
% set/clear flag is defenitly there, and useful too!

Ah.  Gotcha.  I was confused by your reply :-)


% 
%  % toggle-new.
%  
%  Yep; good, unless you want to set replied or flagged or ...
% 
% good point.  I do believe the original question was how to mark as
% read which, to me, means not new :)

Right, and that's what it means to me, too.  He seemed happy enough with
the result, though I personally don't see why doesn't just set $move or
at least $mark_old if he's going to mark everything new as read ...  I
think he could learn about some new flags :-)


% 
% heh, guess the perl moto applies to mutt as well :)

You betcha / I agree wholeheartedly / Quite right, old chap :-)


% 
% -- 
% Dan Boger
% [EMAIL PROTECTED]


:-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!




msg26887/pgp0.pgp
Description: PGP signature