This project is read-only.

Cannot access folders in Domino

Topics: Issues
Jan 28, 2014 at 10:35 AM
I am able to connect successfully to domino using :
ImapClient client = new ImapClient(CommonConstants.hostName, CommonConstants.port, SslProtocols.None, false);
client.Login(CommonConstants.userName, CommonConstants.password)

But my problem is that all the folders are null and I cannot access any of the emails in the mailbox.

If I run in debug mode and look under the client folders I see an exception:
client.folders threw an exception of type 'System.NullReferenceException'

Any suggestions about what could be going wrong?
Jan 28, 2014 at 4:47 PM
Edited Jan 28, 2014 at 5:12 PM
Hi notyouremail,

is there a way to provide me wit some test credentials? You can send them to .

I can tell for sure that the server respone containing the folder list is not getting parsed, which ends in a NullReferenceException later, but I need to see the detailed server response.

If it's not possible, I will provide you with a special sample application to collect the logs.


Jul 28, 2014 at 2:58 PM
Hey there,
is there already a solution for the problem with the Domino Server?

Jul 29, 2014 at 12:00 PM

there was no fix for this issue yet as I don't have a Domino server on which i can test this issue. If you help me in one of this ways:
  • Provide some test credentials
  • Create a log file as described in the documentation
then I can make a fast fix as soon as I have tested what the problem is. You can send the credentials or the log file to


Jul 30, 2014 at 11:36 PM

take a look at the latest source code in the repository, I made an update for the folder structure parsing methods. (See

Let me know if the issue still persists.


Dec 3, 2014 at 12:18 PM
Geting the same issue. with domino

Server responce: "* LIST (\HasNoChildren) \"\\" Archive"
Folder.Parse(data[i], ref parent, this); returns null
Apr 27, 2015 at 1:12 PM

i had the same problem with Domino servers, i solved my problem by changing the FolderParse-Regex on source-code. Maybe that helps.
public static readonly Regex FolderParseRex = new Regex(@".*\((\\.*){0,}\)\s[""]?(.|[NIL]{3}|\\\\)[""]?\s[""]?([^""]*)[""]?", RegexOptions.IgnoreCase);