Title: Re: Downloading email in Subfolders
On 6/2/05 7:03 AM, "Cris Thomas" <[EMAIL PROTECTED]> wrote:
>
> On 6/1/05 11:00 PM, "Entourage:mac Talk"
> <[email protected]> wrote:
>
>> Since they have IMAP, why does it matter? The first time they go into any of
>> those folders the mail will download. (If you have "always download complete
>> message bodies" in Account Options. Or just leave it to download headers,
>> and download the message bodies if and when clicking o the message.)
>
> It matters because they have several thousand messages, sometimes several
> hundred per folder with large attachments. These are mostly laptop users, so
> before I give them their laptops back I want to make sure that they have a
> copy of all of their email. Since they are laptop users they need
> disconnected access so downloading only partial attachments or only headers
> is not an option.
>
> Unfortunately Entourage will only download the mail in the Inbox by itself
> forcing me to sit there and baby sit a machine for an hour while I click in
> folders to download the rest of them. If I only had one user like this it
> wouldn't be a big deal but I have several dozen in this situation.
You could do it by script. You'd need a recursive handler to take care of all levels of subfolders:
tell application "Microsoft Entourage"
set theAccount to IMAP account "Account Name"
repeat with theFolder in (every folder of theAccount)
my OpenFolder(theFolder)
end repeat
beep
activate
display dialog "All done!" giving up after (1 * days)
end tell
on OpenFolder(theFolder)
tell application "Microsoft Entourage"
set displayed feature of main window to theFolder -- could omit!
repeat with theMsg in (every message of theFolder)
download theMsg
end repeat
repeat with subFolder in (every folder of theFolder)
my OpenFolder(subFolder)
end repeat
end tell
end OpenFolder
If you're wondering, the script explicitly downloads each message (even though just switching to the folder does the trick when you do it manually) to insure that it waits until they're all done before moving on. In fact, there's no real need for the 'set displayed feature' line – yo can just omit that to have it go on in the background. It's just there in case you want to watch the process.
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
PLEASE always state which version of Microsoft Office you are using - **2004**, X or 2001. It's often impossible to answer your questions otherwise.
