can delete mailmessage in $inbox, but cannot delete in $sent/$all
forward to your help
Hi
Before for each loop use a writeline activity to check the count of mailmessage that would ensure whether the mailmessages were actually fetched or not
Mention like this in writeline activity
If it is more than 0 then it should work
test.Count.ToString
Cheers @heilongke
thanks for you reply.
the premise of my inquiry is that it is captured.but it cannot be deleted.
(the figure above shows the output using write line: mailmessages.count, mail message.subject and mail message.headers
so what else could be the reason?