Sign in to follow this  
Followers 0
x001z

Outlook AutoArchive

7 posts in this topic

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



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 (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Only the Inbox mails, in the default profile.

Thanks for the response.

Share this post


Link to post
Share on other sites

Then I would try:

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

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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

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 (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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  
Followers 0