Hi,
can you provide more information?
How are you getting the mail? Are you doing it through browser or through an api?
you can use regex, get substring or get html for this.
Each asynchronous function started, starts in separate thread.
So in that example you will have 2 threads since 2 asynchronous functions
will be started, each with its own (different) script.