Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: Mulberry Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
p30web
Newbie
Newbie
Avatar

Joined: 20 October 2015
Location: United States
Online Status: Offline
Posts: 1
Posted: 20 October 2015 at 12:57pm | IP Logged Quote p30web

Mulberry shows these details of an IMAP account:

Greeting: * OK Dovecot ready.

Can I get this greeting with MailBee IMAP ActiveX? I want to find out if the IMAP
server I'm connected to is Dovecot or Courier.

Thanks,

www.p30web.org
Back to Top View p30web's Profile Search for other posts by p30web
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 October 2015 at 4:08am | IP Logged Quote Alex

You can subscribe to IMAP.OnReceiveData event and use IMAP.GetLastReceivedDataChunk method for that. In VB6, the code looks like:

Code:

Dim WithEvents IMAP As MailBee.IMAP4

Private Sub Form_Load()
    Set IMAP = New IMAP4
    IMAP.LicenseKey = "MBCXXX"
    IMAP.LogFilePath = "C:\Temp\log.txt"
    IMAP.EnableLogging = True
    IMAP.ClearLog
    IMAP.EnableEvents = True
    IMAP.Connect "mail.afterlogic.com", 143, "user", "pass"
    IMAP.Disconnect
End Sub

Private Sub IMAP_OnReceiveData(ByVal BytesReceived As Long, Proceed As Boolean)
    Debug.Print IMAP.GetLastReceivedDataChunk
    IMAP.EnableEvents = False
End Sub


For me, this returns:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

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