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

Re: clear-flag and pager mode [solution]



No dia 31/10/2004 às 23:52,
Patrick Shanahan <wideglide@xxxxxxxxxxxxx> escreveu:

> * Douglas A. Augusto <douglas.augusto@xxxxxxxxxx> [10-31-04 23:47]:
> > Yes, sorry. But why not have 'clear-flag' in pager mode?
> 
> I would guess that no-one saw a need.
> 
> > How do I to emulate this feature in pager mode?
> 
> Write a patch.

No, no. I have an easy solution (emulation):

  macro pager W "q<clear-flag>n"

  Or simply "q" ;)

If you want to return to pager mode:

  macro pager W "q<clear-flag>n<enter>"

  Or simply "q<enter>" :)

Finally, my big macro:


  macro pager S "<enter-command>unset wait_key^m<enter-command>unset 
resolve^mq<clear-flag>n<pipe-entry>bogofilter -s^m<enter-command>set 
wait_key^md" "Mark as SPAM"

Steps:

1) unset 'wait_key' and 'resolve'
2) quit from pager (automatically mark as read)
3) clear-flag 'new' (Not necessary, to guarantee :D)
4) pipe to bogofilter (and set wait_key)
5) delete SPAM (move to trash)


Thank you,

-- 
Douglas Augusto