« Microsoft Office 2004 for Mac 11.5.5 Update | Main | Poll: How big is your database? »

Script: AutoArchive Exchange Account to folders "On My Computer"

script_icon.gifThe AutoArchive script that moves mail from your Exchange account folders to archive folders within the "On My Computer" folder tree has been broken for Leopard. You can download this beta version and see if it works for you.

Before using the script, open in the Script Editor and select the version of Entourage you are using. Change this line to 2004 if you have not upgraded yet:

set ArchiveVersion to 2008

For more info on customizing and using this script see the Entourage Help Page AutoArchive Exchange Account to "On My Computer"

The author of the script o longer has time to help with troubleshooting. Feel free to leave a comment, but it will be up to users to help find a solution. We have no one at this time that's can help.

Comments (19)

Rob Cork said:

Thanks for the script. I have a couple issues with it though:

1. It creates a duplicate folder with the name of the exchange account. For example, my exchange account is called Work. After running the script my local folder structure looks like
Archives
->Work
->Work
->Deleted Items
->Drafts
->Inbox
->...

2. The archived Sent Items folder shows that I wrote all the emails in the message list view but doesn't show the person it was sent to, as is normally the case with the Sent Items folder

Mike Kadlec said:

Rob,

Let me see if I can help out.

1) Do both of the duplicate work folders have emails in them or is one blank? Are they separate folders or is one work folder a sub folder of the other?

2) try right clicking on the message bar in list view of the archived sent folder and making sure the 'To' field is selected.
The default sent folder does this automatically but any new folder created (either in an archive or not) needs to be told how to behave.
This message bar should have the flags, links, mail, status, priority, from, sent, categories, projects in there already. This is the tiny grey spreadsheet like boxes directly above the mail messages in list view. Right click on this and you'll see what I mean.

I hope this helps,

Mike

anna said:

I have the same "issue" with Exchange account name, its shows
Accountname
Accountname
Deleted Items
Drafts
...etc

Only second accountname folder has items and subfolders, first one has only subfolder with second accoutnname

Rob Shaddock said:

I have the same issue with a folder 'account name' and a sub-folder within that also called 'account name'. That sub-folder contains all the archived mail.

Is there any way to modify the script to also archive the calendar?

Diane Ross Author Profile Page said:

Can you simply drag or use the Move to/Copyto icon in the toolbar to copy the folder to folders "On My Computer" ?

Rob Cork said:

Mike,

To answer your questions:

1) The duplicate folder is a subfolder of a parent of the same name. Only the lower folder has any messages

2) Are you referring to changing the Arrange By: criteria in the Sent Items archive folder? The only changes the grouping of the messages but doesn't affect the way it displays the message list. It always shows the messages as coming from myself.

What i did was to stop using the script and just manually copy my exchange inbox to the local inbox and my exchange sent items to my local sent items. Would it be possible to change the script to do that. This would solve these problems.

Chris B said:

I get the same thing as above people, i.e. nested folder name, but this is really not an issue. So I have to look one folder deeper for mail items, no big deal!

The snag I am having is that the script trips up after a while with
---
The script encountered error "Microsoft Entourage got error: An error of type 4362 has occurred." during execution [OK]
---

On first run this was after quite a long while - maybe 10 minutes - while subsequent attempts fail after only a few seconds.

The amount of data that it should / would be archiving is pretty large (Exchange server reports 5 GB but who knows how accurate that is - I know it's wrong about some other mailboxes in the organisation). Before starting this archive exercise (and the major reason for wanting to do it) is that for the past week or so, least once per day Entourage gives this error:
---
Error - Quit and restart Entourage. If this problem continues you might need to verify and rebuild the Entourage database.
Explanation - Mail could not be sent. Account name: "{account name}" [there is only one account]
Error: 4363
---

So are these two errors likely related? (Consecutive error numbers mean anything? :-) This is Microsoft, I know, but not the PC group... :-D). I'm a little wary of the database rebuild procedure, the "how to" I found assumes a lot of knowledge of the Mac that I don't have...

Chris B said:

Something else!

I just discovered, preparing to do a database rebuild, that the database file is HUGE - over 18 GB.

Question - WHY??!!

1) Exchange Server reports (as I said before) that the user's mailbox is around 6 GB so how could the database on the PC be 3 times that, and anyway...

2) Why is there anything at all on the local hard drive, when all the mail items are in the mailbox on the Exchange server?

Can someone help me understand this?

Sorry if this is a stoopid question, especially on this blog which I do understand is more about the Auto Archive script, but I have found few other useful resources on the Mac - and as a Windows person I tend to trust Microsoft help more! :-D

Chris

Diane Ross Author Profile Page said:

Your folders "On My Computer" could be much larger than the database that is on the Exchange server. If you do a File > Export what size is the .rge file?

scot motzny said:

Okay,
I'm a newbie here and not very familiar with "scripts." What EXACTLY do I need to change/edit in this script. Are there places in the script where I need to type in my folder names? Again, I'm a newbie, and not generally all that computer litarate anyway, so I do real well when things are spelled out for me.

Frankly, I'm still trying to figure out the microwave. Okay. Maybe not that bad.

Yesterday, I set up a bunch of different "rules" for my email only to realize that I did them for my POP accounts and not my exchange account. Of course, it seems you can copy rules to different identities, but not to different account types. Arghhhh!!!!

Thanks!

Scot

Rafael said:

I used this archive feature with the new Outlook WebApp version 2010. However, it does not archive the sentItems folder. Any idea why? Could you help with this? My quota of 2Gb is always getting overflow.

Thanks,

Rafael

Bill said:

When I run the script, it duplicates my Inbox's file structure nicely (but like Rob's there is an extra layer

Archives_2009
- Exchange
- Exchange
-Delete
-Drafts
-Inbox

trouble is that it stops after making the tree. (as if all the items are not older than 60 or 90 days - I've tried both) Since I have items going back to the start of the year, this ain't the case....

Ideas?

William Dossett said:

I have same problems as others in that exchange account archive folder is duplicated...

I have

Archives
->PB
->PB
-> folders

I was actually able to get rid of the second pb by commenting line in the script:

-- Assumes we've reached an account
set theAccount to account of folder id FolderID
--copy name of theAccount to beginning of thePath
set |done| to true

That got rid of the second one...

But, Ideally, I would just like to work off the root of On My Computer. Tried changing the archive folder name to that and it just made On My Computer folder under On My Computer... This is the first time I have ever looked at an applescript, so, I'm really just taking stabs in the dark (i do code in 99 other languages) need to know what the root is called, and how to get it to just copy the folders on my exchange account (you can only have 1!) to the folders on my computer ...

Diane Ross Author Profile Page said:

The author that worked on the script modification for Leopard, has a new job and might not have the time to respond.

Has anyone looked at the third party application Entourage Email Archive X?They have a free trial. Cost is $30.

Rob said:

I'm using AutoArchive on several 10.5 systems with Entourage 2004. My issue is that for roughly half the clients AutoArchive doesn't move any items. It creates the folder structure, but mail items never make their way over. Anyone know of a resolution?

Rob said:

Re-reading past replies it looks like I have the same problem as Bill from Nov 6 minus the duplicated folders. Telling the script to archive items 1 or 0 days old also fails to populate the folders. I also performed a database verification and compaction to no net effect.

Gary Y said:

Hi--

Count me as someone who only got the folder structure to copy over, but no messages. Help, anyone?

As a stopgap (I've just about hit my quota on the Exchange server), can I just manually move old items?

Alternately, does anyone here have experience with the $20 Entourage Exchange Accounts Optimizer? If it saves me an hour of time, it's worth the purchase: http://www.softhing.com/eeao.html

Thanks,

Gary

Diane Ross Author Profile Page said:

EEAO offers a free trial.

justin said:

anyone here been able to use this script to archive just the inbox and the sent items folder. i would like to have it exclude all other folders besides those two.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on June 15, 2009 5:28 PM.

The previous post in this blog was Microsoft Office 2004 for Mac 11.5.5 Update.

The next post in this blog is Poll: How big is your database?.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.