Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Mailbee POP3 + SSL + GMail Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 21 April 2005 at 11:57am | IP Logged Quote Guests

Hi,

While testing Mailbee POP3 + SSL we tried to access a mailbox created on Gmail (by Google). We faced the following problems:

a) Unable to delete messages. The deleted message dows not appear in the Messages collection (ReadHeaders) any morebut it still remains in GMail Inbox when checked through web interface.

b) If you read a particular message using ReadSingleMessage then after that you do a ReadHeaders, the particular message doesnt show up in the Messages Collection!! Although the message is still there in the inbox when checked through web interface of GMail.

I am getting a feeling that this is how GMail POP3 access is designed to be. But I am not sure. Therefore this question of mine. Have you guys at Mailbee tested the POP3 + SSL component with GMail? If yes then did you face a similar problem??

Best Regards

Shantanu Biswas
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 April 2005 at 12:33pm | IP Logged Quote Alex

Quote:

a) Unable to delete messages. The deleted message dows not appear in the Messages collection (ReadHeaders) any morebut it still remains in GMail Inbox when checked through web interface.


Yes, GMail often ignores mail deletion requests from POP3 clients. They do this to maintain compatibility with those older mail clients which always delete mail from the server after retrieval. This can be configured in GMail account settings but it does not always work. In general, GMail's POP3 access is still not very stable and predictable, and sometimes does not work at all.

Quote:

b) If you read a particular message using ReadSingleMessage then after that you do a ReadHeaders, the particular message doesnt show up in the Messages Collection!! Although the message is still there in the inbox when checked through web interface of GMail.


RetrieveSingleMessage returns single Message object, not a collection. IMAP4 object does not uses Messages collection at all (it uses Envelopes collection for this purpose). If you meant something different, could you provide us with more details and code sample?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 22 April 2005 at 3:30am | IP Logged Quote Guests

Hi Alex,

Have a look at the VBScript below. The second MesgBox reports the count as one less than the first MsgBox.

You can try this at your end too. I think the problem is with GMail itself. They seem to be moving the mails from actual POP3 folder to another folder which is used for displaying messages for web interface.

However, am seeking your advice to ensure that I am not making any mistake. In the script below you will see that the count reduces by one everytime. (You will need a GMail account and password to do the test).

'----------------------------------------------------------- ---------------------
'This script is to highlight the problem faced with POP3 access of GMail
'
'If you read (RetrieveSingleMessage) a email in GMail Inbox without deleting it,
'and close the connection then the the count of email messages in inbox is reduced
'when you make a connection again and do a message count.
'
'The already read message is still there in GMail Inbox when checked using web
'interface. However, it does not appear to be there when checked using Mailbee.
'----------------------------------------------------------- ---------------------


MailBeeLicenseKey = "MAILBEE-LICENSE-KEY-STRING-HERE"

'--------------------------------------------
'Enter your GMail Email address and password
'--------------------------------------------
GMailUserName = "user@gmail.com"
GMailPassword = "pass"


Set Mailer = CreateObject("MailBee.POP3")
Mailer.LicenseKey = MailBeeLicenseKey

Set SSL = CreateObject("MailBee.SSL")
SSL.LicenseKey = MailBeeLicenseKey
Set Mailer.SSL = SSL
Mailer.SSL.UseStartTLS = False

Mailer.ServerName = "pop.gmail.com"
Mailer.PortNumber = 995
Mailer.UserName = GMailUserName
Mailer.Password = GMailPassword
Mailer.Connect

If Mailer.Connected Then
     msgCount = Mailer.MessageCount
     
     'Display the original number of message count
     MsgBox msgCount
     
     If msgCount > 0 Then
             Set Msg = Mailer.RetrieveSingleMessage(msgCount)
             MsgBox Msg.BodyText
     End If
     
     Mailer.Disconnect
Else
     MsgBox "Error" & Mailer.ErrCode
End If

Mailer.Connect

If Mailer.Connected Then
     msgCount = Mailer.MessageCount
     
     'Display the message message count on re-connection.
     'This count will be less than the count displayed in previous message box.
     'If you check GMail inbox using web interface, the actual count is more.
     
     MsgBox msgCount
     
     If msgCount > 0 Then
             Set Msg = Mailer.RetrieveSingleMessage(msgCount)
             MsgBox Msg.BodyText
     End If
     
     Mailer.Disconnect
Else
     MsgBox "Error" & Mailer.ErrCode
End If

Mailer.Connect

'This is to try Search method in MailBee POP3. GMail reports wong count even with this.

If Mailer.Connected Then

     'Display the message message count using Search.
     'This count will be less than the count displayed in previous message box.
     'If you check GMail inbox using web interface, the actual count is more.
     
     arrUIDs = Mailer.Search
     msgCount = UBound(arrUIDs)
     MsgBox msgCount
     
     If msgCount > 0 Then
             Set Msg = Mailer.RetrieveSingleMessage(msgCount)
             MsgBox Msg.BodyText
     End If
     
     Mailer.Disconnect
Else
     MsgBox "Error" & Mailer.ErrCode
End If

Set Mailer = Nothing
'-------------------------------------------

Looking forward to your comments and if there is a round about way to deal with the situation.

Shantanu Biswas
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 22 April 2005 at 9:08am | IP Logged Quote Alex

Yes, GMail removes messages from POP3 pool once they were already downloaded. This is controlled by "POP Download: Status" dialog on "Forwarding and POPAccount" tab of GMail account Settings.

When Status is "Enable POP only for mail that arrives from now on", GMail exhibits the behaviour listed above, and this is by design. However, when status is switched to "POP for all mail (even mail that's already been downloaded)", GMail should not remove mails from POP3 pool even if they were already downloaded. But this does not work (Gmail still works in "Enable POP only for mail that arrives from now on" mode) and I think this is a bug.

Also, my second GMail account is not accessible via POP3 at all (despite the fact POP3 access is enabled in GMail Settings. My both account have the same settings while one is accessible and second is not). It seems POP3 access is still a weak point of GMail.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide