Find dublicate mails from an account and move to other folder

I have use Get Outlook Mail Messages activity to read the Oldest email from an account (Inbox).
Then I took the first mail from inbox and putting that in fokus by moving to another folder called (mail in progress).
Then I’m again using Get Outlook Mail Messages activity to read that mail from (mail in progress) and finding the subject.

When Í got the subject… I need to seach again if I have more e-mails with same subject in the (Inbox) and If I have any, Then I need to give categorie as Double and put all those mails one ny one to an other folder called (Duplicate)

How to do that and plus its giving me issue in moving as it need mail box information, where I have mail box inside an other mail box.
like
image
Main robot machine has an account and inside that account under Mailsbox I have more accounts.
Get Outlook Mail Messages works when I need to read emails from mailbox inside main mailbox but moving part is not working.

Try with below expression

List_Email.Distinct().ToList()

List_Email is the list variable.

Thanks

where to put this expression?

Create a new list and use it in Assign activity

ex: New_List = List_Email.Distinct().ToList()

I need to match the mail subject of(Mail in progress) to the mails located in (inbox) and get a list of those to assign a tag and then move to another folder.

I used Subject under filter on Get Outlook Mail Messages and now im getting only that duplicate mails out so that is correct but have still issue with moving.