Manage Learn to apply best practices and optimize your operations.

Using Formula language code to sort Lotus Notes messages by subject

Lotus Notes will sort messages by Date, Sender and Subject with prefixes such as Re: and Fwd:. This Formula language code will customize your All documents view by stripping out prefixes to easily sort Lotus Notes messages by subject alone.

I've created a customized All documents view

Related resources from
How to use LotusScript to modify a Lotus Notes view selection

Display Lotus Notes user group membership details in a tree view

using Formula language code to strip the "subject prefix," such as "Re:," "Fwd:," etc., from a Lotus Notes document. Removing this allows you to sort Lotus Notes messages by their subject, or "Topic."

The "subject prefix" is displayed in a separate column to the left of the "Topic." Following is the Formula language code for two view columns.

Formula language shows sortable view
(Click on image for enlarged view.)

Note:The code also searches for business-specific "prefixes."

Formula language for sortable view
(Click on code for enlarged view and script download.)

Do you have comments on this tip? Let us know.

This tip was submitted to the tip library by member James Van Sickle. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Dig Deeper on Lotus Notes Domino Formula Language

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.



  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...