Mailing List Message #100571
From: Technical Support <>
Subject: Re: WSSP bug - %%MAILBOXLASTNAME - Case[ZGCN0830-420ZD]
Date: Mon, 30 Aug 2010 23:38:55 +0400
To: Matthew Black <>

Matthew Black wrote:
We were having a problem with our custom Skink/WASSP WebMail skins due to a WSSP bug. I would like to describe the problem and solution. This posting is NOT meant to embarrass CommuniGate, but to help anyone who may have experienced this problem with their custom WebMail skins.

In our custom version of Simplex, the skin applets incmailboxes.wssi and incmailboxes2.wssi use the text element %%MAILBOXLASTNAME for parsing nested folder names. This function removes the leading parent folder path, displaying only the proper folder name. However, the bug is that it incorrectly truncates folder names containing an ampersand (&) just prior to that character.

It does not truncate names, but the problem may be that it does not escape special characters like ampersand. So, the name may be truncated on display.

In the base Simplex skin /opt/CommuniGate/WebSkins/Simplex, the implementers are using an undocumented text element %%HTMLLASTNAME. This text element does not truncate names with an ampersand.

Another difference is that the result of MAILBOXLASTNAME applied to a name is produced using the MailboxNames dictionary and, in the case of INBOX folder, as the preferred name for INBOX folder.

Here is the CGP documentation describing WSSP text elements:

While %%MAILBOXLASTNAME is mentioned, %%HTMLLASTNAME is not.

I'll report this to developers.

When I substituted %%HTMLLASTNAME for %%MAILBOXLASTNAME in my skin applets, folder names with an ampersand were correctly displayed.

I have a vague recollection of seeing this problem many years ago on the folder subscription page.

CommuniGate (Stalker) has done a terrific job documenting so much about the internals of their product. That really helps those of us who do low-level work. I congratulate them for such thorough and detailed information, without which I could not of solved this problem.


matthew black
e-mail postmaster
california state university, long beach

Best regards,
Dmitry Akindinov

When answering to letters sent to you by the staff, make
sure the original message you have received is included into your
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster