Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


adolfo a flores 31.Dec.11 07:14 AM a Web browser
Notes Client 7.0.3 FP1 Windows XP


Hi,
for some time I have been using this code to assign colors to all mails based on

Blue addressed to me, green important, black font =FYI
Red sent out by me

but the code crashes when there is a rule to forward specific mails to other persons.

There goes the code: is the one I have under Color Column on Lotus notes Client on private views

------Start code-----



REM {============Assign the icon numbers};
TO1:=250;
TO2:=163;
CC1:=70;
CC2:=21;
BCC:=4;
DISTR:=3;
userName:= @ProperCase(@Name([CN];@UserName));
tmpvar:=@If(
DeliveredDate = ""; 0;
@ProperCase(@Name([CN];SendTo)) = userName; @If(@Elements(SendTo)=1; TO1; TO2);
@ProperCase(@Name([CN];CopyTo)) = userName; @If(@Elements(CopyTo)=1; CC1; CC2);
BlindCopyTo != ""; BCC;
SendTo != ""; DISTR;
0);


@If(DeliveredDate = "";
@If(PostedDate="" | @IsUnavailable(PostedDate);
@If(@IsAvailable(IsMailStationery);
21;
@IsAvailable(_ViewIcon);
_ViewIcon;
58);
@If(Importance="1";
224;
222));
Importance = "1";
250;
tmpvar != 0; tmpvar;
@IsAvailable(_ViewIcon);
_ViewIcon;
$TypeIcon);




PersonVip := @ToNumber(@If(From = "CN=Ruhail M Tromboo/OU=AER/OU=EXT/O=AEP"; 133; From = "CN=FistName N Reddy/OU=NonAEP/OU=TRS/O=AEP"; 133; From = "CN=Katia O Rough/OU=AER/OU=TRS/O=AEP"; 133; From = "CN=Iliana D Lasrme/OU=AER/OU=TRS/O=AEP"; 133 ; 0 ));





REM {This icon formula is used in ($Inbox) folder, (MailThreads) view, and ($All) view};

CSisPrivate := @If(@IsUnavailable($PublicAccess) & @IsAvailable($CSVersion);"1";"0");
isImportant := @If(Importance="1";"1";"0");

ViewIcon2 := @If(_ViewIcon = 158 & AppointmentType != "1" & BookFreeTime = "1"; 12; _ViewIcon);


tmpIcon := @If(ExpireDate !="" ;64;displaycopyto_icon = "1";"sentto.gif";

@If(DeliveredDate = "";
@If(PostedDate="" | @IsUnavailable(PostedDate);
@If(@IsAvailable(IsMailStationery);
21;
@IsAvailable(_ViewIcon);
ViewIcon2;
58);
@If(IsImportant="1";
224;
222));
@IsAvailable(_ViewIcon);
ViewIcon2;
$TypeIcon));

REM; "If the Task has no icon, display the invitation icon - backward compatibility";
varTaskIcon := @If(Form = "Task" & (!@IsAvailable(_ViewIcon) | ViewIcon2 = "") & (!@IsAvailable(_ViewIcon2) | ViewIcon2 = ""); @False; @True);

REM; "If the Task has replied icon, display the icon - backward compatibility";
rfNum := @Text($RespondedTo);
@If(rfNum = ""; 0; rfNum );


iconOne := @If(!varTaskIcon; 133; _ViewIcon=6;105; @If(tmpIcon = ""; 0; tmpIcon));
iconTwo := @If(_ViewIcon=6;150;iconOne=224;0;iconOne=178;0;iconOne=179;0;iconOne=180;0;CSisPrivate="1"; 164; isImportant="1"; 150; 0);
iconThree:=@If(_ViewIcon=6;163; AddressableUsers = "0" ; 30; PersonVip=133 ; 249; tmpvar);

hasReturnReceipt := @If(ReturnReceipt="1";0;255);


hasReturnReceipt:hasReturnReceipt:hasReturnReceipt : iconOne:iconTwo:iconThree








  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow