Hi again,
I already figured out how to search email body for strings I like and do something wit them
Public Sub process_email(itm As Outlook.MailItem)
Dim lonparch01 As String
lonparch01 = "*pnwifsvbbup03.r3-core.r3.aig.net:/root_vdm_1/vol_lonparch01_snap 42927:nsrndmp_save: Successfully done*"
Dim new_msg As MailItem
If itm.Body Like "*Savegroup: VNX_UK_NDMP_00:01 completed*" Then
If itm.Body Like lonparch01 Then
MsgBox ("vol_lonparch01_snapSuccessfully done")
Else:
MsgBox ("EPIC FAIL")
End
End If
End If
End Sub
Now I need to figure out how to create an email out of data form 4 email and send it after last email arrive.
Maybe there's a way to update message after every script run ale send it after 4th iteration.
Please advise.
Thank Michal