Gnus development mailing list
 help / color / mirror / Atom feed
From: Erik Toubro Nielsen <erik@ifad.dk>
Subject: Re: People with From: <mail@domain.com>
Date: 26 Apr 2000 16:05:54 +0200	[thread overview]
Message-ID: <ik8hlot31.fsf@pc22.ifad.dk> (raw)
In-Reply-To: Pavel.Janik@inet.cz's message of "22 Apr 2000 11:55:59 +0200"

Pavel.Janik@inet.cz writes:

> Hi,
> 
> when people have 
> 
>  From: <mail@domain.com>
> 
> in their headers, Gnus reports it as empty sender in summary buffer even 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 behaviour
> with this email (I have set the From: header by hand to the evil value) :-)
> -- 
> Pavel Janík ml.
> Pavel.Janik@inet.cz
> 
> 

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. 

--- 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 <h.b.furuseth@usit.uio.no>.
-    (list (or name from) (or address from))))
+    (list (if (string= name "") nil name) (or address from))))
+
 
 (defun gnus-fetch-field (field)
   "Return the value of the header FIELD of current article."

-- 
Erik Toubro Nielsen, <erik@ifad.dk>



  parent reply	other threads:[~2000-04-26 14:05 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-22  9:55 Pavel.Janik
2000-04-22 11:09 ` Lars Magne Ingebrigtsen
2000-04-23 20:07   ` Pavel.Janik
2000-04-24 14:31     ` Lars Magne Ingebrigtsen
2000-04-24 17:04       ` Pavel Janik ml.
2000-04-24 18:39         ` Kai Großjohann
2000-04-24 18:56           ` Pavel Janík ml.
2000-04-25 11:04             ` Kai Großjohann
2000-04-25 11:38               ` Lars Magne Ingebrigtsen
2000-04-25 11:35                 ` Kai Großjohann
2000-04-25 20:03                   ` Florian Weimer
2000-04-25 20:15                     ` Kai Großjohann
2000-04-26 17:14                       ` Florian Weimer
2000-04-26 17:29                         ` Shenghuo ZHU
2000-04-26 18:06                           ` Florian Weimer
2000-04-26 18:15                             ` Shenghuo ZHU
2000-04-25 13:36               ` Pavel Janík ml.
2000-04-25 14:47                 ` Kai Großjohann
2000-04-25 15:31                   ` Pavel Janík ml.
2000-04-25 17:10                     ` Kai Großjohann
2000-04-25 10:45           ` Florian Weimer
2000-04-25 11:11             ` Kai Großjohann
2000-04-25  6:42 ` Jaap-Henk Hoepman
2000-04-26 14:05 ` Erik Toubro Nielsen [this message]
2000-04-26 20:59   ` Pavel Janík ml.
2000-04-28  2:00   ` Shenghuo ZHU

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=ik8hlot31.fsf@pc22.ifad.dk \
    --to=erik@ifad.dk \
    /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;
as well as URLs for NNTP newsgroup(s).