Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: ietf-drums-parse-address, gnus-extract-address-components, mail-extract-address-components
Date: Mon, 30 Oct 2006 12:56:12 +0100	[thread overview]
Message-ID: <v9u01mhvab.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <b9ypscazduf.fsf@jpl.org>

[ Resent.  The first try
  (<news:v9ejsq16u9.fsf@marauder.physik.uni-ulm.de> posted via Gmane)
  didn't appear on gnus.org nor gmane.org yet. ]

On Mon, Oct 30 2006, Katsumi Yamaoka wrote:

>>>>>> In <v93b98oi3m.fsf@marauder.physik.uni-ulm.de>
>
>> Here's a suggestion for such a fix.  Does anyone see a problem with
>> it?
>
> It doesn't strip brackets and whitespace:
>
> (gnus-extract-address-components "\"foo@bar\" <bar@baz>")
>  => (nil " <bar@baz>")

Oops.  Thanks for checking.

> In addition, "foo@bar" might be a valid (nick)name of the sender.
> How about the following?

Beside the comment (see [1]), it looks fine.  I'd suggest to install it in
trunk and v5-10 if nobody finds a problem with it.

With this change to `gnus-extract-address-components', can we revert spam.el
to revision 7.82 or do we need to include parts of the changes from revision
7.82 to 7.85?  If so, we probably also need to backport these to v5-10.

Bye, Reiner.

[1] This comment...

> +    (cond (;; Special case: "foo@bar" <foo@bar>, i.e. one @ in the comment
> +	   ;; and one in the address.

... doesn't match the code:

> +	   (string-match "<\\([^@ \t<>]+[!@][^@ \t<>]+\\)>" from)
> +	   (setq address (substring from (match-beginning 1) (match-end 1))))
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



  reply	other threads:[~2006-10-30 11:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87mz851t59.fsf@mobile.repose.cx>
     [not found] ` <g69hcy4t8g0.fsf@lifelogs.com>
2006-10-16 21:42   ` ietf-drums-parse-address, gnus-extract-address-components, mail-extract-address-components (was: bug in spam-check-BBDB) Reiner Steib
2006-10-16 22:47     ` ietf-drums-parse-address, gnus-extract-address-components, mail-extract-address-components Katsumi Yamaoka
2006-10-16 23:06       ` Miles Bader
2006-10-16 23:58         ` Katsumi Yamaoka
2006-10-17 14:58     ` Ted Zlatanov
2006-10-28 10:22       ` Reiner Steib
2006-10-30  3:23         ` Katsumi Yamaoka
2006-10-30 11:56           ` Reiner Steib [this message]
2006-10-30 19:00             ` Ted Zlatanov
2006-11-14 17:21             ` Reiner Steib
2006-11-14 23:41               ` Katsumi Yamaoka

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=v9u01mhvab.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).