Use that code in a group conversation and you'll see it will not work properly.
You need to use the
Origin parameter to get to the correct email.
Also, as someone already pointed out, the GetTime variable will always return the same time. You should make a function out of it which always gets the current time (not just when the script is started when you start Messenger).