@SoqedHozi - ok, so, instead of using UID, which changes when the email is moved - what about comparing static pieces of info combined to make unique, like:
email.Subject+email.Body
or email.Subject+email.Body+email.Headers("Date")
etc.
As a unique identifier. You could even turn it into a Hash (which won’t change, since the text is static) in case the amount of text is really high:
(email.Subject+email.Body).GetHashCode
or (email.Subject+email.Body+email.Headers("Date")).GetHashCode
I think that would serve the same purpose as the UID but woulnd’t chage when email is moved. I tested the theory, by hashing email.Body and those hashes matched after the file was moved:
BlankProcess2 execution started
One: -507033902 **<---Hash of email body in Inbox**
*{move code to new folder executed here}*
Two: -507033902 **<-- Hash of email body after second "Get messages" call on new folder**
Found Email -507033902 **<-- If test against email.body.GetHash = intInitialHash**
BlankProcess2 execution ended in: 00:00:01