From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jens Lechtenboerger Newsgroups: gmane.emacs.bugs Subject: rfc2047.el and mail-utils.el do not follow RFC 2047 Date: Thu, 24 Jun 2004 16:50:30 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: Reply-To: lechtej@uni-muenster.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088088661 14883 80.91.224.253 (24 Jun 2004 14:51:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Jun 2004 14:51:01 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 24 16:50:48 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BdVYt-0004e2-00 for ; Thu, 24 Jun 2004 16:50:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdVaI-0008NX-Tg for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jun 2004 10:52:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BdVaF-0008KY-Ux for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2004 10:52:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BdVaE-0008IH-3p for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2004 10:52:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdVaC-0008IB-Sh for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2004 10:52:10 -0400 Original-Received: from [128.176.159.8] (helo=wi-mail2003.wi1.uni-muenster.de) by monty-python.gnu.org with smtp (Exim 4.34) id 1BdVYk-0005v2-7W for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2004 10:50:38 -0400 Original-Received: from pcwi4002.uni-muenster.de ([128.176.159.107]) by wi-mail2003.wi1.uni-muenster.de with Microsoft SMTPSVC(6.0.3790.0); Thu, 24 Jun 2004 16:50:36 +0200 Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) X-OriginalArrivalTime: 24 Jun 2004 14:50:36.0070 (UTC) FILETIME=[9B9D7460:01C459FA] X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8276 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8276 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" produces: To: =?iso-8859-15?q?Lechtenb=F6rger,_Jens?= 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?= ") 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" 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