Dear Barna,
I wholeheartedly agree with your thoughts and welcome the inputs given by you. There are many of such ideas that are floating on my mind, but limited (read as non-existent) programming skills prevent me to introduce such modifications.
When I started this project the idea was that programmers would also be pitching in with code changes, but unfortunately I have not got much help! I keep googling, surfing lotus notes websites, forums, etc to look for code that I can implement and have managed to get this template so far. But there is so much more to do and I am stuck. I need help guys!! (read- Notes programmers!!)
If you are a notes programmer, I would REALLY appreciate if you could help implement the changes suggested by you. Please help make this template turn into something that REALLY makes our daily life easier!!
While we are on programming, let me also bring to light one modification which I have been struggling with for quite some time.
Objective: As pointed out by some people in this forum and elsewhere, I wanted a mechanism where I could see all emails on a common topic, together. I also realised that the given view of Mail Threads fails horribly in giving what is required. I thought and found that the best way to get mail threads using the subject. Then I started hunting for such a code (since I cannot write code to save my skin!! ). I found something but it seems to break every now and then and I just cant seem to find out why?
Details of this code: Obtained from http://www-128.ibm.com/developerworks/lotus/library/clean-subject/
I have modified the original code to suit my internal email subject prefixes that get added in my company:
My Smarticon code:
———–
shortsubject:=Subject;
@If(@Contains(shortsubject; "Re:");
@Set("shortsubject"; @RightBack(shortsubject; "Re:"));"");
@If(@Contains(shortsubject; "RE:");
@Set("shortsubject"; @RightBack(shortsubject; "RE:"));"");
@If(@Contains(shortsubject; "<.FW.>");
@Set("shortsubject"; @RightBack(shortsubject; "<.FW.>"));"");
@If(@Contains(shortsubject; "AG:");
@Set("shortsubject"; @RightBack(shortsubject; "AG:"));"");
@If(@Contains(shortsubject; "WG:");
@Set("shortsubject"; @RightBack(shortsubject; "WG:"));"");
@If(@Contains(shortsubject; "Fwd:");
@Set("shortsubject"; @RightBack(shortsubject; "Fwd:"));"");
@If(@Contains(shortsubject; "Fw:");
@Set("shortsubject"; @RightBack(shortsubject; "Fw:"));"");
@If(@Contains(shortsubject; "FW:");
@Set("shortsubject"; @RightBack(shortsubject; "FW:"));"");
@If(@Contains(shortsubject; "Wtr:");
@Set("shortsubject"; @RightBack(shortsubject; "Wtr:"));"");
REM {remove leading, trailing, and dup blanks:};
@Set("shortsubject"; @Trim(shortsubject));
@Command([OpenView];"BySubject"; shortsubject)
——————–
In the new view that I have created (called BySubject), the following code has been used for the column called CleanSubject
——————–
shortsubject:=Subject;
@If(@Contains(shortsubject; "Re:");
@Set("shortsubject"; @RightBack(shortsubject; "Re:"));"");
@If(@Contains(shortsubject; "RE:");
@Set("shortsubject"; @RightBack(shortsubject; "RE:"));"");
@If(@Contains(shortsubject; "<.FW.>");
@Set("shortsubject"; @RightBack(shortsubject; "<.FW.>"));"");
@If(@Contains(shortsubject; "AG:");
@Set("shortsubject"; @RightBack(shortsubject; "AG:"));"");
@If(@Contains(shortsubject; "WG:");
@Set("shortsubject"; @RightBack(shortsubject; "WG:"));"");
@If(@Contains(shortsubject; "Fwd:");
@Set("shortsubject"; @RightBack(shortsubject; "Fwd:"));"");
@If(@Contains(shortsubject; "Fw:");
@Set("shortsubject"; @RightBack(shortsubject; "Fw:"));"");
@If(@Contains(shortsubject; "FW:");
@Set("shortsubject"; @RightBack(shortsubject; "FW:"));"");
@If(@Contains(shortsubject; "Wtr:");
@Set("shortsubject"; @RightBack(shortsubject; "Wtr:"));"");
REM {remove leading, trailing, and dup blanks:};
@Set("shortsubject"; @Trim(shortsubject));
@If(Form = "NonDelivery Report"; "DELIVERY FAILURE: " + FailureReason;
Form = "Delivery Report"; "DELIVERED: " + Subject; Form = "Return Receipt";
"RECEIVED: " + Subject; Form = "ReturnNonReceipt"; "NOT RECEIVED: " +
Subject; shortsubject)
———————-
Issue with this code:
This view usually fails to return accurate results. Observation has shown that these errors are not ALWAYS occurring, but when they do, the observation is as follows:
- When the subject starts with Re: it usually throws an error.
- Where the email has gone back and forth many times and it starts with Re: <.FW.>, it fails to give results.
- This code does not return ALL mails with the same subject. It shows a few less. I have not been able to figure any pattern there.
Can anyone help with this? Or come up with a completely different option which helps?
TIA,
-=KoolPal=-