Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
michaelwandel  
#1 Posted : Tuesday, May 10, 2016 1:00:39 AM(UTC)
michaelwandel

Rank: Newbie

Groups: Registered
Joined: 3/21/2016(UTC)
Posts: 6
Man
Germany

Hi,

i always get an error "There's no message 0" when deleting over pop3 with ssl on and the following code:

Quote:

Dim oServer As New EAGetMailObjLib.MailServer
Dim oClient As New EAGetMailObjLib.MailClient
oClient.LicenseCode = exLicense

oServer.Server = exServer
oServer.User = exUsername
oServer.Password = exPassword
oServer.Protocol = 0
oServer.SSLConnection = True
oServer.AuthType = 0
oServer.Port = 995

oClient.Connect oServer

Dim oInfo As New EAGetMailObjLib.MailInfo
oInfo.UIDL = delMailUIDL

oClient.Delete oInfo

oClient.Quit
oClient.Close


uidls are looking like this: 1461237332.2

Any idea ?
ivan  
#2 Posted : Tuesday, May 10, 2016 6:15:39 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Hi, you cannot use UIDL to delete the email directly like that.
Because UIDL is not persistent in POP3 protocol.

In POP3 protocol, you can only delete the email by index.

please see the following example:

Code:

    Dim infos
    infos = oClient.GetMailInfos()
    
    Dim i As Integer
    For i = LBound(infos) To UBound(infos)
        Dim info As EAGetMailObjLib.MailInfo
        Set info = infos(i)
        
        if info.UIDL = "your uidl" Then
        
          ' Mark email as deleted from POP3 server.
          oClient.Delete info
          Exit For
        End If
    Next

    oClient.Quit
michaelwandel  
#3 Posted : Wednesday, May 11, 2016 12:04:43 AM(UTC)
michaelwandel

Rank: Newbie

Groups: Registered
Joined: 3/21/2016(UTC)
Posts: 6
Man
Germany

Great ! Thanks for the immediate help, that's it :)

Regards, Michael
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.058 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.