Got it buddy
Sorry for misunderstanding the query @DEEPAK_K.S
here you go
once you get the for each loop with mailmessage list passed as input,
IN save attachment activity,
set the path like this buddy
“C:\Users\xyz\Documents\UiPath\forum_2\Mails\Mymail”+“_”+item.from.address+“.eml”
where
C:\Users\xyz\Documents\UiPath\forum_2\Mails\ ----is the folder
Mymail — the first part of file name
item.from.address ---- person from whom weget the message buddy
and it worked buddy

This would save the mail in dynamic name @DEEPAK_K.S
Cheers
Kindly try and let know buddy whether this works or not