tag pattern

2008-10-02 Thread bill lam
Hi all,
I often need to tag the same pattern. Instead of typing each time, how
can I save the following and bind it shortcut key?
tag pattern
 T\[.*patch.*\]  return 

TIA
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: tag pattern

2008-10-02 Thread Rejo Zenger
++ 02/10/08 21:45 +0800 - bill lam:
I often need to tag the same pattern. Instead of typing each time, how
can I save the following and bind it shortcut key?
tag pattern
 T\[.*patch.*\]  return 

You would need to use a macro. Untested:

  macro  pager,index  \ca  T\[.*patch.*\]enter   # tag using pattern

See:

 - http://www.mutt.org/doc/manual/manual-3.html#ss3.6
 - http://wiki.mutt.org/?MuttGuide/Macros
 



-- 
Rejo Zenger . [EMAIL PROTECTED] . 0x75FC50F3 . https://rejo.zenger.nl
GPG encrypted e-mail prefered. 


signature.asc
Description: Digital signature


Re: tag pattern

2008-10-02 Thread bill lam
On Thu, 02 Oct 2008, Rejo Zenger wrote:

 ++ 02/10/08 21:45 +0800 - bill lam:
 I often need to tag the same pattern. Instead of typing each time, how
 can I save the following and bind it shortcut key?
 tag pattern
  T\[.*patch.*\]  return 
 
 You would need to use a macro. Untested:
 
   macro  pager,index  \ca  T\[.*patch.*\]enter   # tag using pattern

Thank you Rejo! I tried that \ inside quotes should be escaped too.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Trying to use tag-pattern inside a folder-hook

2002-05-01 Thread Mason, Sam

Hi all,

I am trying to get mutt (1.3.28i) to automatically tag all messages
older than a specific date.  I thought I would enter something like:

  folder-hook . 'tag-pattern ~d 1w'

But it just comes up with tag-pattern: unknown command.  I'm sure
I'm doing something simple wrong, I just don't know what.

Thanks
  Sam.



Re: Trying to use tag-pattern inside a folder-hook

2002-05-01 Thread Michael Tatge

Mason, Sam ([EMAIL PROTECTED]) muttered:
 I am trying to get mutt (1.3.28i) to automatically tag all messages
 older than a specific date.  I thought I would enter something like:
 
   folder-hook . 'tag-pattern ~d 1w'
 
 But it just comes up with tag-pattern: unknown command.  I'm sure
 I'm doing something simple wrong, I just don't know what.

You have to use the push command for that:
folder-hook . push 'T~r2d\n'

HTH,

Michael
-- 
Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs.
(By Dennis Ritchie)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: Trying to use tag-pattern inside a folder-hook

2002-05-01 Thread Andre Berger


--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Mason, Sam [EMAIL PROTECTED], 2002-05-01 07:01 -0400:
 Hi all,
=20
 I am trying to get mutt (1.3.28i) to automatically tag all messages
 older than a specific date.  I thought I would enter something like:
=20
   folder-hook . 'tag-pattern ~d 1w'
=20
 But it just comes up with tag-pattern: unknown command.  I'm sure
 I'm doing something simple wrong, I just don't know what.
=20
 Thanks
   Sam.

Does

folder-hook . push D~d1wenter

work for you? The tag-pattern is D, see section 2.3.1 of the manual.
The push-command simulates keyboard action, see 3.20.=20

-Andre

--h31gzZEtNLTqOjlF
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8z88jWkhBtALlJZ0RApK5AJ40qVg9Ot+/h45gI25LZWcM3aFlUACg/g8Z
Rq0lr+9i8nV4TCaRW3JzqRg=
=2xFX
-END PGP SIGNATURE-

--h31gzZEtNLTqOjlF--



Re: Trying to use tag-pattern inside a folder-hook

2002-05-01 Thread Michael Tatge

Andre Berger ([EMAIL PROTECTED]) muttered:
 folder-hook . push D~d1wenter
  ^  This should read T!!!
 D is delete-pattern!
Michael
-- 
How should I know if it works?  That's what beta testers are for.  I only
coded it.
(Attributed to Linus Torvalds, somewhere in a posting)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: Trying to use tag-pattern inside a folder-hook

2002-05-01 Thread Andre Berger


--24zk1gE8NUlDmwG9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Andre Berger [EMAIL PROTECTED], 2002-05-01 07:19 -0400:
 * Mason, Sam [EMAIL PROTECTED], 2002-05-01 07:01 -0400:
  Hi all,
 =20
  I am trying to get mutt (1.3.28i) to automatically tag all messages
  older than a specific date.  I thought I would enter something like:
 =20
folder-hook . 'tag-pattern ~d 1w'
 =20
  But it just comes up with tag-pattern: unknown command.  I'm sure
  I'm doing something simple wrong, I just don't know what.
 =20
  Thanks
Sam.
=20
 Does
=20
 folder-hook . push D~d1wenter
=20
 work for you? The tag-pattern is D, see section 2.3.1 of the manual.
 The push-command simulates keyboard action, see 3.20.=20

And after some coffee I feel less rigid, so if you don't want to
delete but just to tag messages, try

folder-hook . push T~d1wenter

see sect. 4.3

-Andre

--24zk1gE8NUlDmwG9
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8z9FRWkhBtALlJZ0RAg2RAKDQgT2qv4SB6Ua0LQKC3Sr9ut/zRwCgpR46
KnCCX24+Ij7oTLAIG50k8wk=
=iEEn
-END PGP SIGNATURE-

--24zk1gE8NUlDmwG9--



Re: Trying to use tag-pattern inside a folder-hook

2002-05-01 Thread Mason, Sam

On Wed, May 01, 2002 at 12:31:04PM +0200, Nicolas Rachinsky wrote:
 * Mason, Sam [EMAIL PROTECTED] [2002-05-01 10:20:59 +0100]:
  I am trying to get mutt (1.3.28i) to automatically tag all messages
  older than a specific date.

 try
 folder-hook . 'push tag-pattern ~d 1w\n'

Thanks for the responses everyone, this was about the best one I had.
As it didn't require me to have 'T' bound to tag-pattern.

Thanks again,
  Sam.



Re: folder-hook push tag-pattern ...

2001-08-20 Thread Vineet Kumar

* Nate Johnston ([EMAIL PROTECTED]) [010817 13:11]:
 All,
 
 I would like to roll any message in my inbox that is older than 2
 weeks old to an archive folder.  I tried this pattern, but I got the
 message Tagging is not supported when .muttrc loads.  
 
 folder-hook INBOX   'push 
tag-pattern~d2wentertag-prefixsave=archiveenter'
 
 Am I going about this incorrectly?  Is this something that, because it
 is tag-save instead of delete, I can only use a macro for?  If I use a
 macro, can I break this into 2 parts as so:
 
 folder-hook INBOX   'push *d
 macro *d  'tag-pattern~d2wentertag-prefixsave=archiveenter'

Sorry, I don't have an answer, but a suggestion: how about trying
delete-pattern instead of tagging a pattern and then deleting tagged
messages? I have a line like this:

folder-hook mutt-user 'push D~r15d!~F\n'

which I'd imagine would still work if you used delete-pattern instead
of D.

Cheers

-- 
Vineet   http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
Qba\'g gernq ba zr\!  |tr 'a-zA-Z' 'n-za-mN-ZA-M'

 PGP signature


folder-hook push tag-pattern ...

2001-08-17 Thread Nate Johnston

All,

I would like to roll any message in my inbox that is older than 2
weeks old to an archive folder.  I tried this pattern, but I got the
message Tagging is not supported when .muttrc loads.  

folder-hook INBOX   'push 
tag-pattern~d2wentertag-prefixsave=archiveenter'

Am I going about this incorrectly?  Is this something that, because it
is tag-save instead of delete, I can only use a macro for?  If I use a
macro, can I break this into 2 parts as so:

folder-hook INBOX   'push *d
macro *d  'tag-pattern~d2wentertag-prefixsave=archiveenter'

Thanks!

--N.

--
Nate Johnston   [EMAIL PROTECTED]
GPG footprint: DEAF B505 0D84 1AEF A43F  91C5 71B3 D053 D0E1 3C05
Nihil tam munitum quod non expugnari pecuna possit.  -Cicero

 PGP signature