X-Junk-Score: 0 [] X-Cloudmark-Score: 0 [] Return-Path: Received: from moscow.stalker.com ([89.175.185.228] verified) by mail.stalker.com (CommuniGate Pro SMTP 5.3.9) with ESMTP id 61520464 for CGatePro@mail.stalker.com; Mon, 30 Aug 2010 12:37:57 -0700 Received: from [10.1.8.10] (account support@mail.moscow.stalker.com [10.1.8.10] verified) by mail.moscow.stalker.com (CommuniGate Pro SMTP 5.3.9) with ESMTPSA id 24951099; Mon, 30 Aug 2010 23:37:56 +0400 Message-ID: <4C7C08CF.2000909@stalker.com> Date: Mon, 30 Aug 2010 23:38:55 +0400 From: Technical Support Organization: Stalker Labs User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Matthew Black CC: CommuniGate Pro Discussions Subject: Re: WSSP bug - %%MAILBOXLASTNAME - Case[ZGCN0830-420ZD] References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, 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: > > http://www.communigate.com/cgatepro/WSSP.html#Text > > 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. > > Cheers. > > matthew black > e-mail postmaster > california state university, long beach -- Best regards, Dmitry Akindinov ======================================================================= When answering to letters sent to you by the tech.support staff, make sure the original message you have received is included into your reply.