Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Tip: Marking incoming mail

Andreas Arning, WebSphere Process Choreographer Development, IBM Corporation
Andreas Arning works on WebSphere Process Choreographer Development.

Summary:  This tip describes a mail agent that indicates if an email was sent to you, if you were copied, if you were blind copied, or if it was sent to a distribution list.

Date:  01 Mar 2004
Level:  Introductory

Activity:  4559 views
Comments:  

Do you prioritize your mail according to whether you were included in the To field, the CC field, or the BCC field? If so, then this tip will help you quickly identify the messages that were sent to you directly, that you were copied on, and that you were blind copied on--right from your Inbox. Using a simple agent to mark your incoming messages, you can identify your messages with icons like the following (see the Subject column for the explanations of the icons):


Figure 1. Inbox message with icons
Inbox message with icons

Note: This agent does not affect your subject field.

Creating the Mark Incoming Mail agent in Notes 5

Use a server replica or copy of a mail database and not a local replica or copy for this agent.

  1. In Notes or Domino Designer 5.0.x, open a replica or copy of a mail database. Make sure that you have opened a server replica or copy of the database and not a local copy or replica.
  2. Open the Inbox view, and choose Create - Agent.
  3. In the Agent Properties box, enter Mark incoming mail as the agent name.
  4. Select the Shared Agent option.
  5. In the When should this agent run field, select Before new mail arrives.
  6. Click the Add Action button.
  7. In the Action field, select @Function Formula.
  8. Accept the default option "Update existing document when run."
  9. In the Formula window, copy and paste the following code:

    REM "============Assign the icon numbers";
    TO1:=3;
    TO2:=4;
    CC1:=22;
    CC2:=21;
    BCC:=163;
    DISTR:=70;
    userName:=@ProperCase(@DbTitle);
    REM "============Do not change anything beyond this line";
    
    FIELD _ViewIcon:=_ViewIcon;
    
    tmpvar:=@If(
    _ViewIcon!="" &_ViewIcon!=0;0;
    @IsDocTruncated; 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+CopyTo != "";  DISTR;
    0);
    @If(tmpvar = 0; ""; @SetField("_ViewIcon";tmpvar));
    



  10. Click OK when done.
  11. Save and close the agent and accept the warning that Lotus Notes is unable to determine the execution access privileges for the agent.

Creating the Mark incoming mail agent in Notes 6 and later

Use a server replica or copy of a mail database for this agent and not a local replica or copy of a mail database.

  1. In Notes or Domino Designer 6.x, open a replica or copy of a mail database. Make sure that you have opened a server replica or copy of the database and not a local copy or replica.
  2. Open the Inbox view, and choose Create - Design - Agent or Create - Agent, depending on your menu options.
  3. In the Agent Properties box, enter Mark incoming mail as the agent name.
    Figure 2. Agent Properties box
    Agent Properties box
  4. Accept the default Shared option.
  5. In the Runtime field, select Before new mail arrives and close the Properties box.
  6. Keep the default Simple Actions selected and click the Add Action button.
  7. In the Add Action dialog box, select the @Function Formula in the Action field.
  8. Accept the default "Update existing document when run" option.
  9. Copy and paste the code above into the Formula window.
  10. Click OK when done.
  11. Save and close the agent and accept the warning that Lotus Notes is unable to determine the execution access privileges for the agent.

Caveats

Here are a few caveats to note with this tip:

  • If the name of your database does not match your Notes user ID, then by default, the globe symbol indicating that the message was sent to a distribution list appears in your Inbox.
  • If you have more than one version of a user ID, such as an Internet and a Notes version, then one version may be misinterpreted, and messages containing that version may be marked as with a distribution list icon when, in fact, there isn't a distribution list.
  • Your mail server may not allow you to create a server agent.
  • Your mail server may disable agents for performance reasons.
  • If you have already defined another agent that runs before new mail arrives, then you cannot run this agent.


Resources

For more information about the Mark incoming mail agent or for alternative implementations to the agent, see the article, "Creating an Inbox assistant."

About the author

Andreas Arning works on WebSphere Process Choreographer Development.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Lotus
ArticleID=12876
ArticleTitle=Tip: Marking incoming mail
publish-date=03012004
author1-email=
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.

Special offers