Title: Re: How to Schedule Inbox Cleanup? (EvX)
On 9/7/02 1:58 PM, "Barry Wainwright" <[EMAIL PROTECTED]> wrote:

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.

It also can't be used to move IMAP messages to a LOCAL folder due to a bug. Only good for messages already in local folders (so if you need it for IMAP, use a rule to make copies, or moves, to a local folder, and run it on that folder instead).

--
Paul Berkowitz

Reply via email to