AppleScript/Mail.app bleg

Now that LazyWeb has been rendered useless, I’ll broadcast this over my much smaller network:

Is there some way w/in AppleScript to archive email programmatically? Say, all mail two weeks old or older gets shifted from the active inbox (deleted from the server to save time and quota space) to a local archive. Seems like it should be do-able.

Looking at it again, it seems there is a date received property for the message item. So I suppose opening a sorted mailbox and looking for items that are today – 14 days and passing that to a move command would work.

Leave a Reply

Your email address will not be published. Required fields are marked *