Title: Re: How to Schedule Inbox Cleanup? (EvX)
On 07/09/2002 21:12, "Jim Warthman"  wrote:

> On 2002-09-07 1:01 PM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
>
>> On 9/7/02 12:34 PM, "Jim Warthman" <[EMAIL PROTECTED]>
>> wrote:
>
> *snip*
>>> Is there any way to do what you describe automatically, say, once each day?
>>> The rule can "select" messages that fit the criteria, as you mention.
>>
>> No. Why don't you just apply automatically like everyone else does, as the
>> messages come in, if you really want to move them every day?
>
> Every day I wish to move messages that are 3 days old.  :-)

Compile this script (changing the names of the mailboxes and the number of days for messageAge if required):

tell application "Microsoft Entourage"
    set sourceFolder to folder "Inbox"
    set destinationFolder to "Old Mail"
    set messageAge to 3 * days
    set theMessages to every message of sourceFolder whose time received is less than ((current date) - messageAge)
    count theMessages
    if theMessages is not {} then
        repeat with aMessage in theMessages
            move aMessage to destinationFolder
        end repeat
    end if
end tell

Save it to disk.

Now set up a daily schedule to run this script.
Note: this script cannot be used to move messages to another IMAP folder due to IMAP limitations.

--
Barry Wainwright
<http://www.barryw.net/>


"Never tell your Mom her diet's not working."  --  Michael, age 14

Reply via email to