Solved

From Name not displaying properly

Posted on 2003-11-17
6
277 Views
Last Modified: 2013-12-18
When we send an email to a client who is using Lotus Notes from e.g.

contact-bob-smith@domain.com (Bob Smith)

Instead of displaying "Bob Smith" in the From field, it displays: 'contact' or 'contact-bob-smith', basically the starting part of the email address, completely ignoring the From Name.

The email is being sent of a Linux Box using sendmail.

In all other email readers / hotmail / yahoo / etc, the From name displays correctly.

Is this a Lotus Notes configuration issue, or is there something that can be done to the MIME header / email envelope to ensure that the From name is displayed properly.
0
Comment
Question by:unobserved
  • 4
6 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9767773
Limitation of the design of the Notes mailbox template -- it doesn't properly parse that format.

Instead, use:

Bob Smith <contact-bob-smith@domain.com>
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 500 total points
ID: 9767905
Note: Here's the culprit code...

CN1 := @Trim(@Name([CN]; Who));

This code does a simplistic Common Name extraction, using the atomic @Name function.  That function assumes that the common name is at the start of any address, and ends at an @ sign or a < sign, and strips extra spaces or quotation marks.

"Comments" in RFC822 addresses are enclosed in parentheses.  By convention, a comment at the end of the address is considered the name.  So, while contact-bob-smith@domain.com (Bob Smith) is certainly valid as an address, the (Bob Smith) part is merely a comment that many mail programs chose to accept as representing a name.  The address above could also have been encoded as contact-bob-(Bob) smith@domain.com (Smith) -- and would have no special difference in meaning for RFC822 as compared to the representation you used.  Comments are simply ignored, and you are using a convention.

Admittedly, sincethe convention has become farily common Notes shoudl support it.  But @Name does not recognize that format, and trims contact-bob-smith@domain.com (Bob Smith) down to the part before the @ -- contact-bob-smith

If the atomic function were changed (binary code core to the platform), that woud take care of it, but Lotus is probably reluctant to introduce a possible regression issue or programmers who have used that code elsewhere.  They could put in a new token, @Name([RFC822CN];...), but I guess not.  The parsing code could work around it, but I don't think you are going to change your client's mailbox design.  The following change to that line would do it:

rf822name := @Left(@Right(@Right(who; "@"); "("); ")");
CN1 := @Trim(@Name([CN]; @If(rfc822name = ""; Who; RFC822name)));

0
 

Expert Comment

by:David777
ID: 9768280
in note5 you can use the parameter of @name to get rfc822 address, that's [phrase]. e.g
contact-bob-smith@domain.com (Bob Smith)
you will get "bob smith"
@name([phrase];address)
you may put this to input translation of from field for display.

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 31

Expert Comment

by:qwaletee
ID: 9769132
David777,
Not so.  It only returns a phrase taht becomes before <user@domain>, such as I suggested above, at least under R5.

And the pont woudl be moot because the mail file uses view/folder columns that are programmed without that code.
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9773077
unobserved,
Did you change your addressing style?
0
 
LVL 1

Author Comment

by:unobserved
ID: 9774685
Yup, working fine now.

Thank you.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now