Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: How to get IMAP Server NAMESPACE Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
OptionExplicit
Newbie
Newbie


Joined: 06 December 2007
Online Status: Offline
Posts: 8
Posted: 10 December 2007 at 9:34am | IP Logged Quote OptionExplicit

Is there a way to get the namespace of an IMAP server with MailBee 5.5 IMAP4 ActiveX?

I'm looking for a server reply like
* NAMESPACE (("" ".")) NIL NIL
or
* NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))

To be exact, I only need the first part after ((, which would be, in the samples above, "" and "INBOX."

Any hints are appreciated ...

Regards!
Back to Top View OptionExplicit's Profile Search for other posts by OptionExplicit
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2163
Posted: 10 December 2007 at 10:27am | IP Logged Quote Alex

You may use IMAP4.SendCommand method and then examine IMAP4.ServerResponse property in order to use non-standard features of your IMAP server.

Code:

IMAP4.SendCommand "NAMESPACE"
strs = Split(IMAP4.ServerResponse, vbCrLf)
s = strs(0)
MsgBox s


For me (our server does support NAMESPACE although not everyone does), MsgBox displays:

Code:
* NAMESPACE (("" "/")) (("~" "/")) (("~public/" "/"))


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


Joined: 06 December 2007
Online Status: Offline
Posts: 8
Posted: 11 December 2007 at 1:56pm | IP Logged Quote OptionExplicit

Alex,

thank you very much for your help!
SendCommand "NAMESPACE" is working really nice and is exactly what I needed.

Thanks again!
Back to Top View OptionExplicit's Profile Search for other posts by OptionExplicit
 

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