| Author | 
         | 
         
      
        
         
         p30web Newbie 
          
  
  Joined: 20 October 2015 Location: United States
 Online Status: Offline Posts: 1
          | 
        
         
          
           | Posted: 20 October 2015 at 12:57pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
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 | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Alex AfterLogic Support 
          
  
  Joined: 19 November 2003
 Online Status: Offline Posts: 2207
          | 
        
         
          
           | Posted: 21 October 2015 at 4:08am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
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 | 
         
          
         | 
       
       
       
        |   |