![]() Determine if passed in folder is a root folder If (count of mail folders in mailFolder) is greater than 0 then Determines whether a folder has sub-folders or not Set todo flag of theMessage to not flagged Log "Archiving mail - " & (subject of theMessage as text) & " - " & (time sent of theMessage as text) If time sent of theMessage is less than earliestDate then Set theMessage to item theIncrementValue of exchangeMessages Repeat with theIncrementValue from 1 to count of exchangeMessages Set exchangeMessages to messages of mailFolder On archiveMail(mailFolder, currentArchiveFolder, earliestDate) Archive mail from exchange folder to Mail Archive folder but only if older than earliestDate If an existing archive mail folder is found it will use it, otherwise it will create the folder for you Set localMailArchiveRootFolderName to "Archive Mail" - name of the root archive mail folder to create under 'On My Computer'. Set daysBeforeMailArchive to 90 - number of days to keep mail in your exchange account before archiving Set archiveMailItems to true - no mail archiving will take place if set to false Slowing this down can lesson the chance of a timeout but lengthens the time the script takes to run (escpecially on first run where it must process large amounts of mail) On slower machines Outlook can't handle the speed at which the script requests mail to be moved. Set processingDelay to 0.2 - The number of milliseconds to wait between moving messages on Outlook. You can also optionally delete the empty created folders from running in this mode The script can be run repeatedly to test out the effect off different parameters below. It will however create the appropriate folder structures under 'On My Computer' and the candidate items that will be archived will be logged to the events window for you to review. Set runInSimulationMode to false - when set to true no mail or calendar events will be archived. General set exchangeAccountDescription to " XXXXXXXXXX" - the greyed out name of your Exchange Account in the main Outlook window holding all your folders (Inbox etc) Global Settings which you can change if required. It's also recommended you schedule the script from Outlook's 'Run Schedule' tool to execute on a regular basis (daily recommended)ĭisclaimer: Free to use at your own risk and liability *) ![]() ![]() Script can be run manually from AppleScript Editor which is useful if you want to review the debug event log (click twice on the "Events" button above the logging window to see log output), however. Set parameteres in 'Global Settings' section below, before running script Script to auto archive a full folder structure from the default (or nominated) exchange account to local 'on my computer' root folder This Apple script will help you to archive your emails that are older than 90 days. =Auto Archive Email to Local Computer (Outlook Mac 2011)= In order for this script to work, you only require to change the XXXXXXXXXX to the greyed out name of your Exchange Account in the main Outlook window holding all your folders (Inbox etc). In the folder pane of your email, find and expand your Online Archive folder.This Apple script allows you to archive your emails that are older than 90 days. If you have a Microsoft 365 account and your IT or Microsoft 365 admin has enabled the archive mailbox for you, your Online Archive folder will appear in your Outlook folder pane. ![]() How to Access the Online Archive in new Outlook for Mac For more information, see Retention and archive policies in Outlook Web App. Although admins set these policies for the entire organization, you can override the policies to suit your needs. Retention policies control how long your messages will be saved. Archive policies control how long messages are left in an email folder before they're moved to an archive. Your IT or Microsoft 365 administrator sets your archive and retention policies. To reduce the size and improve the performance of your primary mailbox, you can set Archive Policies that automatically move email items from your primary mailbox to your archive mailbox. Important: In order for your online archive mailbox to work with the new Outlook for Mac, your mailbox should be on a Microsoft365 server.įor easy online access, you can simply drag and drop messages from your primary mailbox into your archive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |