On 10:21 PM 11/14/02 Allen Watson <[EMAIL PROTECTED]> wrote:

> A script can be written to operate on all messages in a folder or
> on messages selected by some criteria. Take a look at "SpamSieve -
> Mark Junk if Spam" in Script Editor, and you'll see it begins by
> selecting all current messages (which in a rule is just the single
> incoming message; otherwise it is all messages you have selected in
> a folder, or the open message in the front window):
> 
>   set msgs to current messages -- doesn't work without temp variable
> 
> I'm not sure what their comment means, but we can ignore it.

The comment means that if you write:

    repeat with m in current messages

instead of 

    set msgs to current messages
    repeat with m in msgs

it won't work.

> This way, it won't take huge amounts of time to process all the
> messages in the folder; it will just work on the messages from the
> last hour, which should be tolerable.

I like your idea of using schedules. Here's another idea: rather than
using dates to determine which messages to process, take advantage of
Entourage's database and process only those messages that haven't
already been processed. You could do this by creating a new category
called "Processed by SpamSieve" and modify the "SpamSieve - Mark Junk if
Spam" script to add this category to each message. Then the scheduled
script could operate only on messages that don't have that category.

-- 
Michael Tsai                                 <http://www.c-command.com>

-- 
To unsubscribe:                     
<mailto:Entourage-Talk-Off@;lists.letterrip.com>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to