Solved

From Name not displaying properly

Posted on 2003-11-17
6
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

627 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