x001z Posted June 10, 2014 Posted June 10, 2014 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.")
water Posted June 11, 2014 Posted June 11, 2014 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
x001z Posted June 11, 2014 Author Posted June 11, 2014 Only the Inbox mails, in the default profile. Thanks for the response.
water Posted June 11, 2014 Posted June 11, 2014 Then I would try: Global $oFolder = _OL_FolderAccess($oOutlook, "*\Inbox") My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
x001z Posted June 11, 2014 Author Posted June 11, 2014 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?
water Posted June 11, 2014 Posted June 11, 2014 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now