Probably not foolproof, but you can check the Content-Type: header. If it contains multipart/mixed then you have attachments. (At least this is what a quick perusal of my email with attachments seems to indicate)
In reply to Re: establishing the existance of an email attachment
by duff
in thread establishing the existance of an email attachment
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |