Jump to content
Sign in to follow this  
x001z

Outlook AutoArchive

Recommended Posts

x001z

Hi,

Im using the OutlookEX.au3 but is not setting up the autoarchive, even using the example is not enable it or modifying the settings, it just appear a message showing the autoarchive is set, but nothing happens, can you help me please, I'm using Oulook 2007, thanks in advance.

Global $oOutlook = _OL_Open()
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended)

Global $oPST = _OL_PSTCreate($oOutlook, "C:\temp\Outlook-UDF-Test.pst", "Outlook-UDF-PST")
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_PSTCreate Example Script", "Error creating 'C:\temp\Outlook-UDF-Test.pst' archive. @error = " & @error & ", @extended: " & @extended)
MsgBox(64, "OutlookEX UDF: _OL_PSTCreate Example Script", "Archive 'C:\temp\Outlook-UDF-Test.pst' successfully created!")

Global $oFolder = _OL_FolderAccess($oOutlook, "*")
If @error Then Exit MsgBox(16, "OutlookEX UDF: _OL_FolderArchiveSet Example Script", "Error accessing folder '*\Outlook-UDF-Test\SourceFolder'. @error = " & @error & ", @extended = " & @extended)
_OL_FolderArchiveSet($oFolder[1], True, True , False, "C:\temp\Outlook-UDF-Test.pst", 0, 1, 1)
If @error Then Exit MsgBox(16, "OutlookEX UDF: _OL_FolderArchiveSet Example Script", "Error setting Auto-Archiving for folder '*\Outlook-UDF-Test\SourceFolder'. @error = " & @error & ", @extended = " & @extended)
MsgBox(64, "OutlookEX UDF: _OL_FolderArchiveSet Example Script", "Auto-Archiving for folder '*\Outlook-UDF-Test\SourceFolder' and all subfolders successfully set.")

Share this post


Link to post
Share on other sites
water

Which folders/items do you intend to auto-archive? Mails in the inbox, appointments in the calendar ...?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
x001z

Only the Inbox mails, in the default profile.

Thanks for the response.

Share this post


Link to post
Share on other sites
water

Then I would try:

Global $oFolder = _OL_FolderAccess($oOutlook, "*\Inbox")

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
x001z

Sorry bothering you again but it does not change the settings:

Archive name

Clean out items older than 1 month

and how do I set run every day?

 

post-33047-0-09236900-1402505594_thumb.j

Share this post


Link to post
Share on other sites
water

This function isn't used very often so there might be some bugs!

Some investigation is needed which might take some time. Please stay tuned.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
x001z

OK, I wil, thanks for the help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×