How to check email with attachment received or not from UNIX shell script?

Hello Guys,

Here is the requirement!!

I want to check the mail with attachment received or not through unix scripting.
And send an notification email when mail with attachment already received.

Any thoughts on this is much appreciated!!

Regards,
Harry