I created a script to move mail from one folder to another.
the discriminating factor is the subject of the email must contain "IC Voicemail Call Recording".
I use the LIKE operator, this is a piece of code
For Each oMessage In oInBox
If oMessage.Subject like "I: IC Voicemail: Call Recording*" Then
'WScript.Echo oMessage.Subject
If oMessage.Attachments(1) = "" Then
'do nothing no attachment
Else
Set myAttach = oMessage.Attachments
folders are recognised, but LIKE operator doesen't go well!
Any tips?
Thanks
the discriminating factor is the subject of the email must contain "IC Voicemail Call Recording".
I use the LIKE operator, this is a piece of code
For Each oMessage In oInBox
If oMessage.Subject like "I: IC Voicemail: Call Recording*" Then
'WScript.Echo oMessage.Subject
If oMessage.Attachments(1) = "" Then
'do nothing no attachment
Else
Set myAttach = oMessage.Attachments
folders are recognised, but LIKE operator doesen't go well!
Any tips?
Thanks