Hi Emilio,

Hazel is probably not the best way to go about this. Better leave Apple mail 
stuff on disk unchanged. Chances are that you mess things up if you start 
deleting or moving files around, without the mail index files being updated as 
well. Use mail rules instead.

What you do with hazel, can be done way cleaner with rules inside mail. Rules 
do just what you want. If a message arrives, mail checks all the rules you have 
set up, to see if the message matches one of them, and the rule then takes 
action, like moving the message over to other folders. Don't use hazel for 
this; Use rules inside mail. It's in mail preferences, command comma from 
within mail, and then in the toolbar, it's usually the last item on the bar, 
called rules. Interact with the toolbar, vo right till you find the rules 
button, hit it with vo space, stop interacting with the toolbar and there you 
have the rules dialog. But before you go into rules, make sure you have a new 
mailbox for the messages you want moved, so you don't have to redo things later.

Basically, what you need to do there, is this. Tell mail which messages to act 
upon, and then tell it what to do with them once it finds such a message, while 
checking new mail. Here's how to do it.

First, decide for yourself how the new mail rule can pick out those messages 
that you want to act upon. For example, to pick all messages out that are 
coming from the mac visionaries group here, you as a person, and also a new 
message rule in apple mail, can recognize these mac visionary messages because 
they have the name of the group somewhere in their to: field, or in a similar 
header field. In other words: tell the rule to look for the text 
[email protected], inside the message's to: field. This will 
catch most messages coming from this group. However, after having found 
messages that slipped through the new message rule, i.e. there were some still 
in my inbox that didn't make it to my visionaries folder, I found out that in 
some cases, the to: field is empty or undisclosed, and in that case, the rule 
won't catch those messages. What people do sometimes, is that they put the 
recipients name, in this case [email protected], not in the to: 
field, but either in the CC: field, or even in the reply-to: field. So, there 
are two more situations where your new mail rule can find the mac visionaries 
posts, even if their to: field is empty. Just tell the rule to look inside the 
cc: and reply-to: fields as well.

The rules dialog is very easy to use, as long as you understand what you want 
from it. The first thing to do is to give your rule a name, like: mac 
visionaries filter. That is a plain text field and you can fill in anything you 
want so you know what the rule is for, later on. The next thing you'll 
encounter is a pop up button, switching between any or all, in this context:
If any of the criteria for this message are met, do the following. Or if you 
change the pop up button, it will read:
if all of the criteria for this message are met, do the following. What to 
choose is up to you, any, or all, but think about this one.

Here are the criteria for now. Either the message has to have 
[email protected] in its to: field, or the incoming message might 
have the text [email protected] in its cc: field, or it might be 
in its reply-to: field. Normally, no one will send off a message to google 
groups that you get, where the text [email protected] is in all 3 
fields at the same time. So, if either of the fields contain it, you will want 
to move it out of your regular inbox. Therefore, choose: if, any, of the 
criteria are met, and don't choose all.

So now you have told mail, to watch for messages sent to mac visionaries. Next, 
decide what you want mail to do with these messages, once they come in. In your 
case, you wanted to move them elsewhere inside mail. So, first create a new 
mailbox for the visionaries messages if you don't already have that. Then go 
into the next section of the rule dialog, and tell mail what to do: move it 
into the macvisionaries mailbox. Of course, the name of the mailbox to move 
into, is up to you. Then hit okay and quit the mail preferences. As soon as you 
save the new rule though, mail will ask you if you also want the new rule 
applied to all messages that are already inside your big inbox. And that is 
awesome really, because it will then instantly clean out all visionaries 
messages from your inbox that you already have, and you will find them inside 
the new mac visionaries mail folder that you created. I hope this helps someone.

Paul.
On Aug 21, 2012, at 11:53 PM, Emilio Hernandez <[email protected]> 
wrote:

> Hello again,
> 
> For those Hazel users, is there a way to set a rule that monitors certain 
> folders within the mail app, so that when messages arrive they can be moved 
> elsewhere?
> 
> Thanks.       
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/macvisionaries?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to