+1 vote

Hello,

I want to delete mail from Trash folder. I user following command and pass UID as parameter.

imapSetting.DeleteMessageByNumber(UID); //UID is Unique ID of Message

I can't delete it. It throughs following error.

[CLIENTBUG] STORE Bad sequence in the command

Please suggest how to handle this? The given example is of Yahoo Mail account

by (3.0k points)

1 Answer

0 votes

DeleteMessageByNumber, as the name implies, takes a message number as a parameter.

Use DeleteMessageByUID, and *ByUID methods in general, when dealing with messsage UIDs.

by (300k points)
...