Novell is now a part of Micro Focus

Modify WebAccess Template to Save a Sender's Address

Novell Cool Solutions: Tip
By Brian Anderson

Digg This - Slashdot This

Posted: 4 Sep 2003

Problem: Users want to save a sender's address while in GroupWise WebAccess.

Solution: Modify the msgitem.htt file.

The modification will put a new 'button' on the top-right of a message item and when clicked will fill out enough information ( display name and email address ) to save a sender's address.

I've only tested on GroupWise 6.5 sp1, but should work with GroupWise 5.5 >.


Here are the additional lines to add to the msgitem.htt ( located way down in \sys\tomcat\33\webapps\ROOT\WEB-INF\classes\com\novell\webaccess\templates\frames )

{ note - line #'s from 6.5 sp1 templates are approximate }

at about line 782, after the 'Properties' section add the following lines: ( watch wrapping! )

{! --------------- Save Sender -------------------- }

<TD align=center {IF == "NSN" || == "MOZILLA" && Browser.mjrVer <= 4} class="nsnTableDefined"{ENDIF}>
{INC colCnt}
{SET Treplace = '"'}
{SET = replaceWith(Item.from, Treplace, "")}
{IF find(, "<") > -1 }
{SET INET.addr =1 + find(, '<') }
{SET = substring(,INET.addr,(length( INET.addr)}
{SET = substring(,0,(length( 1)}
{SET = }
{IF find(, "@") < 0 }
{SET = Item.fromFullId }
{SET = Item.from }
{IF find(Item.from, '"') = 0 }
{SET = Item.from }
{SET = substring(,1,(length( -1)}
{SET Quote.pos = find(, '"') }
{SET = substring(,0,(Quote.pos )}

<A href="{VAR Home.url}?User.context={VAR User.context} &action=Directory.List&merge=addradd&error=addradd&Url.Directory.action=ADD&Url.Ab.Add.person= &{VAR}&{VAR}" onclick='popout("{VAR Home.url}?User.context={VAR User.context}&action=Directory.List&merge=addradd&error=addradd&Url.Directory.action=ADD&Url.Ab.Add.person= &{VAR}&{VAR}", "_blank"); return false;'>Save Sender</A>

Save the file, then restart tomcat & that's all there is to it.

For more tips see:

submit a tip

Here's a chance to share your experiences using GroupWise. Just send us a tip about using (or installing, deploying, troubleshooting, etc.) GroupWise, and if it looks like something we can use, we'll send you a Novell t-shirt, post your tip, and make you famous beyond your tamest dreams. Submit your tip here:

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates