unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: mail-extract-address-components extract modified full name
Date: Wed, 28 Jul 2004 12:33:20 +0900	[thread overview]
Message-ID: <b9ywu0ohklb.fsf@jpl.org> (raw)
In-Reply-To: ilubri1ifdy.fsf@latte.josefsson.org

>>>>> In <ilubri1ifdy.fsf@latte.josefsson.org>
>>>>>	Simon Josefsson <jas@extundo.com> wrote:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> The function is supposed to receive ASCII input, so it's no wonder it might
>> break in other circumstances.  Why ASCII input?

I didn't know the function is only for ASCII characters until
quite recently.  It is because the function looks like a generic
function and works with non-ASCII characters after a fashion.
In addition, I cannot imagine who needs the voodoo function.  It
seems very much personalized for (by?) someone.  Why isn't it
sufficient to extract and separate name and address portions
simply without any modifications?  It can be done later if
needed, though.

[...]

> IMHO, there should be two packages:

> 1) Proper RFC (2)822 parser.  There is rfc822.el but it is
>    insufficient, and I'm not sure it is correct -- it uses regexp's a
>    lot, but I recall that the "correct" 2822 grammar, expressed as
>    regexp's, is much more complex than what rfc822.el does.
>    Naturally, it should only accept valid RFC 822 input, which is
>    ASCII only.

>    (Incidentally, the QP encoder/decoder need to use this package,
>    since QP must only be applied to certain RFC 2822 grammatical
>    terminals, not all text, and I believe the current QP
>    encoder/decoder doesn't do this properly.)

> 2) Ad-hoc approach that split real world textual e-mail address,
>    including non-ASCII, into its components.  Might use the proper
>    parser, at least partially.  Perhaps similar to what Katsumi
>    Yamaoka proposed.

3) Disable the voodoo function by default.  Since using the
   following form seems helpful not to break Japanese names.

   (eval-after-load "mail-extr" '(defalias 'mail-extr-voodoo 'ignore))

   Furthermore, I think the voodoo function should be moved to
   the language or the international subdirectory.
-- 
Katsumi Yamaoka <yamaoka@jpl.org>

  reply	other threads:[~2004-07-28  3:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-25  4:41 mail-extract-address-components extract modified full name Yoichi NAKAYAMA
2004-07-26  1:29 ` Richard Stallman
2004-07-26  2:08   ` Katsumi Yamaoka
2004-07-26  3:09     ` Katsumi Yamaoka
2004-07-26  3:39       ` Katsumi Yamaoka
2004-07-26  4:58       ` Miles Bader
2004-07-26  6:59 ` Lars Magne Ingebrigtsen
2004-07-26 11:09   ` Katsumi Yamaoka
2004-07-27  7:11     ` Katsumi Yamaoka
2004-07-27  9:29       ` Simon Josefsson
2004-07-27 12:39         ` Katsumi Yamaoka
2004-07-27 14:19         ` Stefan Monnier
2004-07-27 16:28           ` Simon Josefsson
2004-07-28  3:33             ` Katsumi Yamaoka [this message]
2004-07-29  3:57       ` Yoichi NAKAYAMA

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=b9ywu0ohklb.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).