From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30416 Path: main.gmane.org!not-for-mail From: Erik Toubro Nielsen Newsgroups: gmane.emacs.gnus.general Subject: Re: People with From: Date: 26 Apr 2000 16:05:54 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035166957 8361 80.91.224.250 (21 Oct 2002 02:22:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:22:37 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id AA7C6D051E for ; Wed, 26 Apr 2000 10:06:32 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id JAB30643; Wed, 26 Apr 2000 09:06:27 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 26 Apr 2000 09:05:51 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA22562 for ; Wed, 26 Apr 2000 09:05:40 -0500 (CDT) Original-Received: from hermes.ifad.dk (hugin.ifad.dk [130.226.80.171]) by mailhost.sclp.com (Postfix) with ESMTP id 9BF6AD051E for ; Wed, 26 Apr 2000 10:05:56 -0400 (EDT) Original-Received: from pc22.ifad.dk (pc22.ifad.dk [172.17.1.122]) by hermes.ifad.dk (Postfix) with ESMTP id BADFF26002 for ; Wed, 26 Apr 2000 16:05:54 +0200 (CEST) Original-Received: by pc22.ifad.dk (Postfix, from userid 17) id 230C927834; Wed, 26 Apr 2000 16:05:54 +0200 (CEST) Original-To: GNUS mailing list In-Reply-To: Pavel.Janik@inet.cz's message of "22 Apr 2000 11:55:59 +0200" Original-Lines: 40 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30416 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30416 Pavel.Janik@inet.cz writes: > Hi, >=20 > when people have=20 >=20 > From: >=20 > in their headers, Gnus reports it as empty sender in summary buffer e= ven if > mail-use-rfc822's value is t. How can I avoid it? I'd like to have at= least > mail@domain.com specified as sender. I'm trying to simulate this beha= viour > with this email (I have set the From: header by hand to the evil valu= e) :-) > --=20 > Pavel Jan=EDk ml. > Pavel.Janik@inet.cz >=20 >=20 Please try this patch I have used for some time. It works by returning the same list as mail-extract-address-components, the other suggested value of the variable gnus-extract-address-components. The problem is that name is never false in the (or name from) test, so name is always returned even when being an empty string.=20 --- gnus-util.el.~1~ Thu Feb 17 16:14:45 2000 +++ gnus-util.el Wed Apr 26 15:49:33 2000 @@ -164,8 +164,8 @@ (and (string-match "(.*" from) (setq name (substring from (1+ (match-beginning 0)) (match-end 0))))) - ;; Fix by Hallvard B Furuseth . - (list (or name from) (or address from)))) + (list (if (string=3D name "") nil name) (or address from)))) + =20 (defun gnus-fetch-field (field) "Return the value of the header FIELD of current article." --=20 Erik Toubro Nielsen,