Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

From Name not displaying properly

Posted on 2003-11-17
6
Medium Priority
?
289 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 2000 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

722 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