Gnus development mailing list
 help / color / mirror / Atom feed
From: Frank Schmitt <usereplyto@Frank-Schmitt.net>
Subject: Re: gnus-url-mailto broken on foo+bar@somewhere.invalid
Date: Thu, 04 Sep 2003 23:46:53 +0200	[thread overview]
Message-ID: <uu17sql9u.fsf@hschmi22.userfqdn.rz-online.de> (raw)
In-Reply-To: <v9oeyce4yn.fsf@marauder.physik.uni-ulm.de>

Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:

> mailto links like `mailto:foo+bar@somewhere.invalid' aren't handled
> correctly by `gnus-url-mailto'.  `gnus-url-mailto' calls
> `gnus-url-unhex-string' and the first line in this function translates
> "+" to " ":

There's an other case where gnus-url-mailto fails: It doesn't decode
encoded "html-characters" and 8bit characters encoded with the
&...;-sgml-syntax like in
"mailto:Paul%20Kr&auml;mer%20&lt;foo@schlurps.de&gt;"

On Emacs 21 this is quite easy to fix: There's 

(defun iso-sgml2iso (from to &optional buffer)
 "Translate SGML entities in the region to ISO 8859-1 characters.
The entities used are from \"ISO 8879:1986//ENTITIES Added Latin 1//EN\".
Optional arg BUFFER is ignored (for use in `format-alist')."

Happily waiting for us. However this does only convert sgml-Umlauts to
iso-chararacters, it doesn't handle the html special-characters, we'd
have to either change the function before using it, or handle

 < <=> &lt;
 > <=> &gt;
 & <=> &amp;
 " <=> &quot;

specially.

-- 
Did you ever realize how much text fits in eighty columns? If you now consider
that a signature usually consists of up to four lines, this gives you enough
space to spread a tremendous amount of information with your messages. So seize
this opportunity and don't waste your signature with bullshit nobody will read.



  parent reply	other threads:[~2003-09-04 21:46 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-26 16:52 Reiner Steib
2003-08-26 18:05 ` Karl Pflästerer
2003-08-27 13:22   ` Reiner Steib
2003-08-27 14:43     ` Karl Pflästerer
2003-08-26 21:37 ` Jesper Harder
2003-08-27 11:42   ` Benjamin Riefenstahl
2003-08-27 13:57     ` Reiner Steib
2003-08-27 14:53       ` Jesper Harder
2003-08-27 17:37         ` Kai Großjohann
2003-08-27 18:33           ` Jesper Harder
2003-09-04  1:59       ` Jesper Harder
2003-09-04 13:15         ` Reiner Steib
2003-09-04 15:32           ` Jesper Harder
2003-09-04 16:10             ` Simon Josefsson
2003-09-04 16:53               ` Reloading info files (was: gnus-url-mailto broken on foo+bar@somewhere.invalid) Reiner Steib
2003-09-05 21:58                 ` Reloading info files Kevin Ryde
2003-09-04 17:43               ` gnus-url-mailto broken on foo+bar@somewhere.invalid Jesper Harder
2003-09-04 22:42                 ` Simon Josefsson
2003-09-04 21:46 ` Frank Schmitt [this message]
2003-09-05  1:34   ` Jesper Harder
2003-09-05  7:33     ` Frank Schmitt

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=uu17sql9u.fsf@hschmi22.userfqdn.rz-online.de \
    --to=usereplyto@frank-schmitt.net \
    --cc=replies@Frank-Schmitt.net \
    /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.
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 NNTP newsgroup(s).