0 votes

I'm trying to move a e-mail to folder afther I make the download of attached.
I'm using te code below, but the email not move to folder.

For Each uid As Long In uids
    'Download and parse each message.
    Dim email As IMail = New MailBuilder() _
                    .CreateFromEml(imap.GetMessageByUID(uid))
    ProcessMessage(email)

    'move o email para a pasta
    imap.MoveByUID(uid, "Encaminada") 

    Application.DoEvents()
Next
related to an answer for: Move a mail From Inbox to other folder
closed with the note: Not enough information.
by (450 points)
closed by
Are you getting any exception? Are you using Gmail? What does the log say: https://www.limilabs.com/blog/logging-in-mail-dll
Carlos, I'll have to close the question - there is not enough information. Please take a look at my note above and try answering those questions - we'll be happy to help you then.
...