If your Inbox is anything like mine, then it's quite a mess. Other than the standard column icons that comes built with Notes, there really is no way of quickly knowing what type of email you are receiving in regards to groups, carbon-copies, or blind-copies (even Return Receipts!). Also, in R4, there is no way to know if you have replied to a memo (if you use the read/unread marks, then this doesn't apply to you). In this tip, I will show how you can programmatically using column icons to mark memos that you have replied and to better define what type of memos you are receiving.
Code
1. You will need to add design elements to the "Reply" and "Reply with History" forms of your mail template. First, make sure that these forms inherit values from their parent documents. In these forms, I added a "computed when composed" number field named "InDocID" and made it hidden. The default value of this field has this code:
I also added a number field and called it "RepliedTo" and set it's default value to "0". This field is used to acquire the icon that represents if you have r
To continue reading for free, register below or login
To read more you must become a member of SearchDomino.com
');
// -->

eplied to a memo.
2. In the Send button of the form, add the following code:
This code will set your RepliedTo field to "82" which is a checkmark signifying that you have replied to the parent document. Since, InDocID is a "computed when composed" field, the send button will set that field whether you are working from your Inbox or Drafts view.
**Problem: When you have replied to a memo, the parent memo now becomes an "unread" memo because the document has a field that was updated in which now makes it unread. How can you keep it read? Here's how:
To summarize, you have successfully marked documents that you have replied to and marked the parent documents "read". In addition, you are using column icons to display your icons and also define whether your name appears in the CC, BCC, Groups, or if someone has requested a return receipt.
CREDITS: Thanks to Daniel Avers for submitting his script library to the Developers Forum. This tip is also in response to a Developer Forum post: "Tricky mail view problem - mark as being replied to?".