From: Gregor Hoffleit <gregor@hoffleit.de>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Person.from_address and Contacts (or John.Smith@example.com)
Date: Wed, 10 Feb 2010 22:04:57 +0100 [thread overview]
Message-ID: <1265828498-sup-6054@sam.mediasupervision.de> (raw)
I have quite a few contacts that send their mails without a display
name, i.e. something like "From: John.Smith@example.com".
Sup does some magic (in Person.from_address) to derive something like a
display name from the local-part of the e-mail address. That's fine so
far.
But, if the person is in my list of contacts, I want Sup to show the
display name definied in the contacts entry. In the above case, that
might be "John Smith" or "John E. Smith" or whatever. Instead, Sup
sticks to the display name derived from the local part, "john.smith".
It's especially odd in the detailed header view of the thread-view-mode,
where Sup resolves and shows the alias, but still sticks to the derived
display name:
From: john.smith <john.smith@example.com> (Johnny Boy)
The obvious place to start a fix would be Person.from_address, where the
(display) name, if missing, is derived from the email address.
I wanted to modify Person.from_address in order to use, in the case of
an empty display name, the ContactManager, to look up any alias in the
contact list, but somehow I didn't succeed integrating ContactManager in
person.rb.
Any better idea? Should I file a bug about this?
Regards,
Gregor Hoffleit
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next prev reply other threads:[~2010-02-10 21:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 23:33 [sup-devel] Patch: Always try to canonize person name using ContactManager Tero Tilus
2010-02-10 21:04 ` Gregor Hoffleit [this message]
2011-01-25 12:55 ` Gregor Hoffleit
2011-01-25 21:26 ` Tero Tilus
2011-01-25 18:29 ` Alvaro Herrera
2011-01-25 21:25 ` Tero Tilus
2011-06-20 22:43 ` Hamish Downer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1265828498-sup-6054@sam.mediasupervision.de \
--to=gregor@hoffleit.de \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox