cancel
Showing results for 
Search instead for 
Did you mean: 

EVPM Script to archive only a dedicated Subfolder

martin_widema1
Level 3
Partner
Hi There,

i tried to use a EVPM Script to archive Mails only from a dedicated Subfolder (lets call it "archive"). I used the "DoNotArchive" Filter on the Mailboxroot and then i apply a custom Filter to the "archive" Folder. Here´s my Script:

[Directory]
directorycomputername =
sitename =

[Filter]
name = Filter1
CreateShortcut = true
DeleteOriginal = true
unreadMAIL = true
UseInactivityPeriod = true
InactivityUnits = months
InactivityPeriod = 1

[Mailbox]
distinguishedname =

[Folder]
name = mailboxroot
filtername = DoNotArchive

[Folder]
name = \Archiv
filtername = Filter1
retentioncategory = {Name der gewünschten Retention Kategorie}


Now my problem:

The DoNotArchive Filter don´t appears on the Mailboxroot. Any Idea´s or Enhancements for the Script?
1 ACCEPTED SOLUTION

Accepted Solutions

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified
hmm, does the filter show on your folder?

You could try adding the following to the Folder section

OverrideArchiveLocks = true

View solution in original post

4 REPLIES 4

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified
hmm, does the filter show on your folder?

You could try adding the following to the Folder section

OverrideArchiveLocks = true

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified
Martin,
Have you been able to try again?

Judy_Glazier
Level 6
Partner

Martin

Tony is right you should use the OverrideArchiveLocks = true

However, I do not believe you will see the DoNotArchive when you look at the properties of the mailbox root.

The test is to first ensure that the Archiv Folder is being created.  Second copy test emails from the Inbox to the Archiv folder that will meet the archive policy.  Run the archiving task against only your test mailbox.

If you get the results you want (anything in the Archive folder will be archived but nothing in the Inbox will be archived) than the script is working.

Judy

jason_lucy
Level 5
This is exactly what I am needing to do.  Please let me know the related details in implementing this dedicated folder.