Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: gnus-url-mailto broken on foo+bar@somewhere.invalid
Date: Tue, 26 Aug 2003 18:52:48 +0200	[thread overview]
Message-ID: <v9oeyce4yn.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

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 " ":

ELISP> (gnus-url-unhex-string "foo+bar@somewhere.invalid")
"foo bar@somewhere.invalid"
ELISP> (mm-subst-char-in-string ?+ ?  "foo+bar@somewhere.invalid")
"foo bar@somewhere.invalid"

What is the best fix for this?  Adding an additional optional
argument[1], say "allow-plus" to `gnus-url-unhex-string' and call
(gnus-url-unhex-string url nil t) in `gnus-url-mailto'?

Bye, Reiner.

[1]
- (defun gnus-url-unhex-string (str &optional allow-newlines)
+ (defun gnus-url-unhex-string (str &optional allow-newlines allow-plus)
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




             reply	other threads:[~2003-08-26 16:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-26 16:52 Reiner Steib [this message]
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
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=v9oeyce4yn.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.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.
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).