From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs70276ebc; Wed, 10 Feb 2010 13:13:44 -0800 (PST) Received: by 10.224.91.202 with SMTP id o10mr476726qam.175.1265836424172; Wed, 10 Feb 2010 13:13:44 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 4si1469683qwe.53.2010.02.10.13.13.43; Wed, 10 Feb 2010 13:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id AD1423C804B; Wed, 10 Feb 2010 16:13:43 -0500 (EST) X-Greylist: delayed 520 seconds by postgrey-1.31 at rubyforge.org; Wed, 10 Feb 2010 16:13:38 EST Received: from sam.mediasupervision.de (sam.mediasupervision.de [80.152.3.104]) by rubyforge.org (Postfix) with ESMTP id 9C41615B8028 for ; Wed, 10 Feb 2010 16:13:38 -0500 (EST) Received: from localhost (sam.mediasupervision.de [127.0.0.1]) by sam.mediasupervision.de (Postfix) with ESMTP id EE620485BEB for ; Wed, 10 Feb 2010 22:04:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sam.mediasupervision.de Received: from sam.mediasupervision.de ([127.0.0.1]) by localhost (sam.mediasupervision.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g5MshJPzvMA4 for ; Wed, 10 Feb 2010 22:04:57 +0100 (CET) Received: by sam.mediasupervision.de (Postfix, from userid 1000) id CA400485C8D; Wed, 10 Feb 2010 22:04:57 +0100 (CET) From: Gregor Hoffleit To: sup-devel Date: Wed, 10 Feb 2010 22:04:57 +0100 Message-Id: <1265828498-sup-6054@sam.mediasupervision.de> User-Agent: Sup/git Subject: [sup-devel] Person.from_address and Contacts (or John.Smith@example.com) X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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 (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