In Archive Manager 4.1.1, the following error may be logged in the Event Log when processing certain XML files
Exception has been caught - moving file E:\ArchiveManager\Export\\7fa27905-55b1-29a4-1e0b-f7522faac8da.xml to error folder.
System.InvalidCastException: Unable to cast object of type 'AfterMail.EmailObjects.EmailAddress2' to type 'AfterMail.EmailObjects.EmailAddress'.
at AfterMail.DataLoader.ExclusionRule.CanProcess(IEmail2 objEmail, Guid checkSum)
at AfterMail.DataLoader.Message2.Insert(IEmail2 email, Guid lockedCheckSum, IFolderInfo folderInfo)
at AfterMail.DataLoader.FileLoader.Load(FolderInfo folderInfo)
Or:
Exception has been caught - moving file C:\Quest Software\ArchiveManager\Export\\f910f777-fa8e-3291-aaab-720cfe909c27.xml to error folder.
System.NullReferenceException: Object reference not set to an instance of an object.
at AfterMail.DataLoader.ExclusionRule.IsSameEmailAddress(String addressToTest, String addressInRule)
at AfterMail.DataLoader.ExclusionRule.CanProcess(IEmail2 objEmail, Guid checkSum)
at AfterMail.DataLoader.Message2.Insert(IEmail2 email, Guid lockedCheckSum, IFolderInfo folderInfo)
at AfterMail.DataLoader.FileLoader.Load(FolderInfo folderInfo)
原因
There are currently several issues with Exclusion Rules:
* Not applying From restriction if email has no From
* Exceptions when pattern contains regex punctuation
* Case-sensitivity of Subject restriction
* Wildcard "*" only supported at beginning and end of pattern.
* No option to specify a true regulat expression
解决办法
Waiting for a fix in a future release of Archive Manager.