Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

From Name not displaying properly

Posted on 2003-11-17
6
Medium Priority
?
293 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 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
Independent Software Vendors: 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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

772 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