unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* rfc2047.el and mail-utils.el do not follow RFC 2047
@ 2004-06-24 14:50 Jens Lechtenboerger
  2004-06-24 16:10 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Lechtenboerger @ 2004-06-24 14:50 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: rfc2047.el and mail-utils.el do not follow RFC 2047
  2004-06-24 14:50 rfc2047.el and mail-utils.el do not follow RFC 2047 Jens Lechtenboerger
@ 2004-06-24 16:10 ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2004-06-24 16:10 UTC (permalink / raw)
  Cc: lechtej

Jens Lechtenboerger <lechtej@uni-muenster.de> writes:

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

I think this has been fixed in Gnus 5.10.6:

ELISP> gnus-version
"Gnus v5.10.6"
ELISP> (with-temp-buffer
	 (insert "To: \"Lechtenbörger, Jens\" <jens@foo.bar>")
	 (rfc2047-encode-message-header)
	 (buffer-string))
"To: =?iso-8859-1?q?Lechtenb=F6rger=2C_Jens?= <jens@foo.bar>"

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

Dunno about this.  (`mail-utils' is not a part of Gnus.)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-24 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 14:50 rfc2047.el and mail-utils.el do not follow RFC 2047 Jens Lechtenboerger
2004-06-24 16:10 ` Reiner Steib

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