all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: mail-extract-address-components extract modified full name
Date: 27 Jul 2004 10:19:49 -0400	[thread overview]
Message-ID: <jwvy8l55ykz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <ilu7jspu7bp.fsf@latte.josefsson.org>

> like the approach you propose.  XEmacs users have reported even
> Latin-2 problems with the current implementation (Emacs do not have
> those problems, though, but it suggest the implementation could be
> improved).

[ The below is all "IIRC". ]

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

Because the way things are defined in the RFCs, you should split the address
before doing the un-quoting of base64 and QP thingies.
I.e. after unquoting, the string might not be parsable any more (because
one of the QP chars could be a ", a \, a <, or something like that).

So the usual answer is that if you call the function with non-ASCII input,
you're not using it properly.  But of course, it's not that simple since you
might want to call that function e.g. on an email message that is being
written and that hasn't been QP-encoded yet.


        Stefan

  parent reply	other threads:[~2004-07-27 14:19 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 [this message]
2004-07-27 16:28           ` Simon Josefsson
2004-07-28  3:33             ` Katsumi Yamaoka
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

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

  git send-email \
    --in-reply-to=jwvy8l55ykz.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.