unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jens Lechtenboerger <lechtej@uni-muenster.de>
Subject: rfc2047.el and mail-utils.el do not follow RFC 2047
Date: Thu, 24 Jun 2004 16:50:30 +0200	[thread overview]
Message-ID: <m2zn6typqh.fsf@pcwi4002.uni-muenster.de> (raw)

In GNU Emacs 21.2.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars)
 of 2003-03-17 on E205
configured using `configure '--with-gcc' '--with-pop' '--with-system-malloc' '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=lucid' '--x-includes=/usr/X11R6/include' '--x-libraries=/usr/X11R6/lib' 'i586-suse-linux' 'CC=gcc' 'CFLAGS=-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -pipe 	 -DSYSTEM_PURESIZE_EXTRA=25000 	 -DSITELOAD_PURESIZE_EXTRA=10000 	 -D_GNU_SOURCE ' 'LDFLAGS=-s' 'build_alias=i586-suse-linux' 'host_alias=i586-suse-linux' 'target_alias=i586-suse-linux''
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE@euro
  locale-coding-system: iso-latin-9
  default-enable-multibyte-characters: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

1. Evaluating (rfc2047-encode-message-header) on the line:
To: "Lechtenbörger, Jens" <jens@foo.bar>

produces:
To: =?iso-8859-15?q?Lechtenb=F6rger,_Jens?= <jens@foo.bar>

Thus, the output contains a comma (","), whereas RFC 2047, Section 5
(Use of encoded-words in message headers), rule (3) does not allow a
comma in an encoded word.

2. Evaluating
(mail-strip-quoted-names
    "=?iso-8859-15?q?Lechtenb=F6rger,_Jens?= <jens@foo.bar>")
produces
"=?iso-8859-15?q?Lechtenb=F6rger,jens@foo.bar"
(instead of "jens@foo.bar").
Apparently, mail-strip-quoted-names does not know about
rfc2047-encoded names (they should be treated as atoms).

3. As consequence of the above two bugs, when trying to send one
mail
To: "Lechtenbörger, Jens" <jens@foo.bar>
via smtpmail-send-it, two mails are being sent:  One to the local
(hopefully non-existent) recipient "=?iso-8859-15?q?Lechtenb=F6rger"
and another one to the intended recipient.

Thanks in advance for taking care of this

Jens

             reply	other threads:[~2004-06-24 14:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-24 14:50 Jens Lechtenboerger [this message]
2004-06-24 16:10 ` rfc2047.el and mail-utils.el do not follow RFC 2047 Reiner Steib

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=m2zn6typqh.fsf@pcwi4002.uni-muenster.de \
    --to=lechtej@uni-muenster.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.
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).