OK if it is always a distribution list called BOB then surround the
Code:
If Item.Attachments.Count > 0 Then
'...............
End If
with
Code:
If Item.To = "Bob" then
If Item.Attachments.Count > 0 Then
'...............
End If
End if
However I don't see why this is necessary, as it will already flag a warning if the subject and the attachment don't match, whoever the message is sent to. Other attachments are unaffected. By adding the sender distribution list to the mix, you increase the danger of sending a message to the wrong person, rather than reduce it.