Tags:
create new tag
, view all tags

Bug: InternalMailtoLinksDontWork

Internal mailto links are not properly linked. That is, these do not link as they should. Rather than linking to the internal mailto link, they try to link to a webpage. This, of course, shows up as a "TWikiBroken" link.

  • [[ted@tedpavlic.com]]
  • [[mailto:ted@tedpavlic.com]]
  • [[ted@tedpavlic.com][E-mail me]]

Test case

While the links work, the internal links (i.e., within [[...]]) do not.

A few tests

Raw Parsed Good/Bad
ted@tedpavlic.com ted@tedpavlicPLEASENOSPAM.com Good
mailto:ted@tedpavlic.com mailto:ted@tedpavlicPLEASENOSPAM.com Good
[[ted@tedpavlic.com]] ted@tedpavlic.com Bad
[[mailto:ted@tedpavlic.com]] mailto:ted@tedpavlicPLEASENOSPAM.com Bad
[[ted@tedpavlic.com][E-mail me]] E-mail me Bad
[[mailto:ted@tedpavlic.com][E-mail me]] E-mail me Good

A workaround (this shows expected output of the above) (note that STOPSPAM was explicitly added to mimmick Plugin)

Raw Parsed Good/Bad
ted@tedpavlic.com ted@tedpavlicPLEASENOSPAM.com Good
mailto:ted@tedpavlic.com mailto:ted@tedpavlicPLEASENOSPAM.com Good
[[mailto:ted@tedpavlic.com][ted@tedpavlicSTOPSPAM.com]] ted@tedpavlicSTOPSPAMPLEASENOSPAM.com Good
[[mailto:ted@tedpavlic.com][ted@tedpavlicSTOPSPAM.com]] ted@tedpavlicSTOPSPAMPLEASENOSPAM.com Good
[[mailto:ted@tedpavlic.com][E-mail me]] E-mail me Good
[[mailto:ted@tedpavlic.com][E-mail me]] E-mail me Good

Environment

TWiki version: February 2003
TWiki plugins: none affect problem
Server OS: Linux
Web server: Apache
Perl version: 5.6.0
Client OS: Windows 2000
Web Browser: MSIE6.0

-- TedPavlic - 15 Jul 2003

Follow up

The basic linking syntax is documented at TextFormattingRules#TWiki_Editing_Shorthand near the end - perhaps it should be put under external links, but the docs are there. MAILTHISTOPIC is in TWikiPreferences - again, the docs could be improved, so that people can go to TWiki:TWiki not the Codev pages for docs.

Improved reviewing and editing of TWiki docs would catch cases where an edit is perhaps not in the right place. EmailThisPageLink is where this feature is discussed.

Some working examples using correct syntax are as follows - I think there is one bug here:

Raw Parsed Good/Bad
ted@tedpavlic.com ted@tedpavlicPLEASENOSPAM.com Good
mailto:ted@tedpavlic.com mailto:ted@tedpavlicPLEASENOSPAM.com Good
[[ted@tedpavlic.com]] ted@tedpavlic.com Wrong syntax - needs a mailto:
[[mailto:ted@tedpavlic.com]] mailto:ted@tedpavlicPLEASENOSPAM.com Wrong syntax - omit the square brackets
[[ted@tedpavlic.com][E-mail me]] E-mail me Wrong syntax - need mailto:
[[mailto:ted@tedpavlic.com][E-mail me]] E-mail me Good
[[mailto:ted@tedpavlic.com E-mail me]] E-mail me Good
[[ted@tedpavlic.com][E-mail me]] E-mail me Wrong syntax

-- RichardDonkin - 16 Jul 2003

But that's not very satisfying. It seems odd to me that even though the internal link would be parsed as a link externally, internally it tries to parse it like a TWiki web page.

To me I'd think that the outcome of AWorkingLink should always be the same as [[AWorkingLink]]. If it works externally, simply wrapping it up as an internal link should also be okay. Consider when you turn of autolinking. What if I turn off autolinking and still want to link to an e-mail address? It seems like it would be nice if I could just wrap my e-mail address in [[ ... ]], but instead I have to format it very differently.

I'll try to put together a patch tonight that suggests a different way of doing this. Maybe I'm being picky, but I just don't think the current operation makes much sense.

-- TedPavlic - 17 Jul 2003

The correct external URL for mail is always mailto:Address. A correct external URL for HTTP is always http://foo.bar . Forcing external notation for things outside (ala InterWiki links) strikes me as a very sensible thing - indeed for users it helps explain the whole InterWiki linking idea in my experience. However in the spirit of the WikiWay when referencing someone's email highlighting it as a suitable link is what should be done because twiki knows it's a semantic link . However the only reason to use the [[ ]] notation for email is when you're doing something specific (like "email me"). As a result making it explicit about being an external link strikes me as sensible.

I'd personally vote this as BugRejected.

That's my tuppence worth. YMMV smile

-- MichaelSparks - 20 Jul 2003

I have turned on spam proofing and I changed the copyright notice on my TWiki to use the mailto recommended at SpamProofing :

http://md1ddel1.squareonehosting.com/cgi-bin/bin/view/TWiki/TWikiPreferences

the mailto works fine on the Twiki web but it does not work on other webs

I have no idea where to look to diagnose this problem.

-- DavidDelikat - 08 Feb 2005

Fix record

OK, I've looked at this and read the discussion, and I think the current support is just fine; this is icing on the cake. So I'm rejecting it for Dakar. If anyone feels strongly about it they can schedule for another release.

-- CrawfordCurrie - 26 Mar 2005

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2005-03-26 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.