unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Bug in mail-extract-address-components (mail-extr.el)?
Date: Tue, 24 Sep 2002 23:30:35 +0200	[thread overview]
Message-ID: <ilu3crzkrd0.fsf@latte.josefsson.org> (raw)
In-Reply-To: oulofaoep8t.fsf@ID-97657.usr.dfncis.de

lawrence mitchell <wence@gmx.li> writes:

> [...] mail-e-a-c vs gnus-e-a-c.
>
> Jesper Harder commented:
>>> But usually `mail-extract-address-components' is more reliable (but also
>>> really complicated).
>
> To which Reiner Steib responded:
>> The code of mail-e-a-c spans more than 700 lines, whereas gnus-e-a-c
>> has only 27 lines. Therefore it's even more surprising that mail-e-a-c
>> fails for the given example (assuming it's a valid RFC-822 address),
>> which probably occurs quite often in real life [1]. mail-e-a-c also
>> fails for this:
>
>> (car (mail-extract-address-components "\"K.-H. Foo\" <foo@bar.invalid>"))
>> ==> nil
>
> mail-e-a-c also fails when for a single name/comment part of the
> email address:
>
> (mail-extract-address-components "lawrence <foo@bar.com>")
>     => (nil "foo@bar.com")
>
> Which, by my reading of RFC2822 is a valid address form (ICBW).

This is a feature, see `mail-extr-ignore-single-names'.  I think the
default value is a bad choice though.

  reply	other threads:[~2002-09-24 21:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-23 12:25 Bug in mail-extract-address-components (mail-extr.el)? Reiner Steib
2002-09-23 12:57 ` Jesper Harder
2002-09-23 14:29   ` Reiner Steib
2002-09-23 14:48     ` lawrence mitchell
2002-09-24 21:30       ` Simon Josefsson [this message]
2002-09-24 22:06 ` Simon Josefsson

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilu3crzkrd0.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).