How to create a 'message' out of a POSIX path

Dear all

I’ve almost sorted my problems, I’ve got the messages to be explored by using the shell command ‘mdfind’ but when I have a path to an email, how can I optain a ‘message’ pointer in my script?

Any help welcome!