Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-url-mailto broken on foo+bar@somewhere.invalid
@ 2003-08-26 16:52 Reiner Steib
  2003-08-26 18:05 ` Karl Pflästerer
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Reiner Steib @ 2003-08-26 16:52 UTC (permalink / 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/




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

end of thread, other threads:[~2003-09-05 21:58 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-26 16:52 gnus-url-mailto broken on foo+bar@somewhere.invalid 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
2003-09-05  1:34   ` Jesper Harder
2003-09-05  7:33     ` Frank Schmitt

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