smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

Error “xm007 bad command argument 11” while marking outlook email as read from Scheduler not at manual run #153

Open devarshad opened 5 years ago

devarshad commented 5 years ago

I'm using this libry for downloading the attachment from email box.

The task is to search email by some criteria say Subject, date, Attachment name and marking only that email as read.

This is working as expected in case of Manual run in Windows 10. But when I schedule it with Windows task scheduler then it throws the error.

xm007 BAD Command Argument Error. 11

ImapClient.SetMessageFlags Method and it is not working in case of Scheduled task.

Any help is highly appreciated