Solved

From Name not displaying properly

Posted on 2003-11-17
6
279 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

12 Experts available now in Live!

Get 1:1 Help Now