On Fri, Mar 23, 2001 at 06:10:40AM -0700, Duke Normandin wrote:
> On Thu, Mar 22, 2001 at 09:50:40AM -0800, Enoch Wu wrote:
> > 
> > Greetings,
> > 
> > Will someone test the following for me.  Thanks in advance!
> > 
> > # If tagged, then save message with hooks applied. Must predefine
> > # save-hooks.
> > # One macro does all the mail "redirect".
> > macro index "\cy" "<tag-pattern>~C *\n:push <tag-prefix><save-message>\n\n"
> > 
> > Hope it helps.
> > 
> > -ew
> > > 
> > > I hear you -- but I haven't solved the " no files tagged, so do nothing"
> > > issue. Like I said above -- DON'T use the macros that you don't need for
> > > the time being, until we come up with a "slicker than snot on a
> > > door-knob" solution. ;,) Again -- color-code the "groups" of messages in
> > > your /etc/muttrc file, then use the appropriate macro. Later...
> 
> It didn't work for me as *I* expected! ;( The macro tagged the entire
> $spoolfile in the "main" index, and turned around and saved the whole
> thing to only one of my pre-defined IN.xxxxx mailboxes. Here's how I've
> defined my "save-hook"s:
> 
> save-hook "(~C freebsd-question@) | (~C questions@)" +IN.freebsd
> save-hook "~t .BAMA.UA.EDU" +IN.mercury
> save-hook "~C @mutt.org" +IN.mutt
> save-hook "(~C @cygwin)|(~C cygwin@)" +IN.cygwin
> save-hook "~C php-db" +IN.php-db
> 
> Do they look like yours? Is the macro working for you? Later...
> -- 
> -duke
> Calgary, Alberta, Canada
> 

I use multiple macros to get the filtering to work. Below my save-hooks
commands, I added the following:

macro index "\ef" "\ez\cy\ex\ey" "Move mails to mailboxes"
macro index "\cy" "<tag-pattern>~C mutt-users@\n:push <tag-prefix><save-message>\n\n$"
macro index "\ex" "<tag-pattern>~C cygwin-digest-h\n:push 
<tag-prefix><save-message>\n\n$"
macro index "\ey" "<tag-pattern>~C cygwin-apps@\n:push <tag-prefix><save-message>\n\n$"
macro index "\ez" "<tag-pattern>~C cygwin@\n:push <tag-prefix><save-message>\n\n$"
macro index "\ew" "<tag-pattern>~C enochw@ | ~C ewu@ | ~f support@\n:push 
<tag-prefix><save-message>\n\n$"

Hope that helps.
ew
 

Reply via email to