bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rfc2047.el and mail-utils.el do not follow RFC 2047


From: Jens Lechtenboerger
Subject: rfc2047.el and mail-utils.el do not follow RFC 2047
Date: Thu, 24 Jun 2004 16:50:30 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]