Author |
|
OptionExplicit Newbie
Joined: 06 December 2007
Online Status: Offline Posts: 8
|
Posted: 10 December 2007 at 9:34am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 10 December 2007 at 10:27am | IP Logged
|
|
|
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 |
|
|
OptionExplicit Newbie
Joined: 06 December 2007
Online Status: Offline Posts: 8
|
Posted: 11 December 2007 at 1:56pm | IP Logged
|
|
|
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 |
|
|