Skip to content

DeleteAllMessages not working on Pop3Client  #184

Description

@bradykelly

I am trying to clear a mailbox, with the method below (excuse the vb, not my fault):

Public Sub DeleteAllMessages()

    If _pop3Client Is Nothing Then
        _pop3Client = BuildPop3()
    End If

    If Not _pop3Client.IsConnected Then
        ConnectPop3()
    End If

    _pop3Client.DeleteAllMessages()
    _pop3Client.Disconnect(True)

End Sub

Yet GetMessageCount still always returns a 7, i.e nothing seems to be getting deleted. Then, I don't see any DELE command in the log file written:

Connected to pop://mail.amadigital.com:110/?starttls=when-available
S: +OK POP3
C: CAPA
S: +OK CAPA list follows
S: USER
S: UIDL
S: TOP
S: .
C: USER process@amadigital.com
S: +OK Send your password
C: PASS ADproc14
S: +OK Mailbox locked and ready
C: CAPA
S: +OK CAPA list follows
S: USER
S: UIDL
S: TOP
S: .
C: QUIT
S: +OK POP3 server saying goodbye...

My own DeleteAllMessages is the only method called, so I know only this method writing to the log.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions