Open Bug 688976 Opened 13 years ago Updated 2 years ago

add "gopher://" to list of the list of recognized protocols when displaying emails / usenet messages (like for email-addresses, ftp, http)

Categories

(Thunderbird :: Message Reader UI, enhancement)

6 Branch
x86
Linux
enhancement

Tracking

(Not tracked)

People

(Reporter: wvermeir, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

Request to show gopher:// url's in messages by Thunderbird as a hyperlink

Example Gopher link;
gopher://gopher.floodgap.com/
Sorry but this is won't fix, we removed gopher support ages ago as it was a security risk and I believe the other reason is that it wasn't widely used. See these bugs for more details: Bug 388195, Bug 389101, Bug 461970, Bug 388192.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
This is not about gopher *support* — I don't think thunderbird was ever able to browse gopher (but I might be wrong here).

This is about gopher shell integration, it is about allowing the user to click on URLs in a message to launch the application that handles the specified protocol so that the user can access the linked resource.

If there is any security issue here, it is how addresses are passed to sheel integration, and that's not gopher-specific, that needs to be done for *any* protocol you decide to call an external handler for.

Depending on the implementation of shell integration, removing that attack vector from HTTP and FTP (by sanitizing/escaping the input) may even fix it for gopher.

None of the pointed bugs seem to be about this issue: either they are Firefox-related, either they are not related to shell integration.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
(In reply to Nuno Silva from comment #2)
> This is about gopher shell integration, it is about allowing the user to
> click on URLs in a message to launch the application that handles the
> specified protocol so that the user can access the linked resource.

This already WFM on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0) Gecko/20110916 Thunderbird/7.0 - I'd be very surprised if it didn't work on Linux as well.
(In reply to Mark Banner (:standard8) from comment #3)
> This already WFM on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0)
> Gecko/20110916 Thunderbird/7.0 - I'd be very surprised if it didn't work on
> Linux as well.

On the project Gopher mailing list there was a posting from a user using "Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2" reporting that Thunderbird 6.0.2 does recognise gopher:// addresses and hyperlinks

I have upgraded yesterday to 6.0.2 (Linux) and it makes no difference. gopher:// links remain plain text.

So, maybe this is not enhancement request be a real bug. If I works in the Mac and Windows version but not the linux version.
Version: unspecified → 6
Can you save that email and attach it here ?
Comment on attachment 562384 [details]
Posting to project gopher mailing list; report of user that gopher:// links do work in Thunderbird 6.0.2 for Windows

Note; the poster does not say in the email that he is using Windows but that email is posted by the client; 
"User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2"
I've just tried on Windows as well - however I save and view the message (plain text, html etc), a gopher:// link is linkified and you can click on it and get a dialog that gives you an option of what to open it in.
The poster might have an extension make thunderbird not work correctly, he should try in safe-mode as described at http://support.mozillamessaging.com/en-US/kb/Safe-Mode.

Marking WFM as it works for us.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago13 years ago
Keywords: testcase
Resolution: --- → WORKSFORME
I have done some more testing and it still does not work (for me).

This where the tests;
On Ubuntu 10.04 LTS

* I have started my normal thunderbird that was installed from repository and enabled safe mode. And restarted Thunderbird (Linux, 6.0.2)
** the emails in my mailbox did not show gopher://domain.tld's as a hyperlink.
** the emails on usenet did not show gopher://domain.tld's as a hyperlink
** I did send a couple of new mails to myself with a gopher link to check of it makes a difference between new and old mails; no change, no link.

* I have started my default Thunderbird 6.0.2 but first renamed the directory .thunderbird so it started with the question to setup an account like a new install, what I did.
** I did send a couple of new mails to myself with a gopher link; no change, no link.

* I downloaded from the Mozilla website the Dutch language tar.gz version of 6.0.2
** I started that version from the terminal, I setup an email account (gmail), and did send a 3 emails with a gopher link to myself; 1 plain text only, 1 html only, 1 plain text/html. -> No hyperlink for the link gopher://gopher.wikizine.org

* I downloaded from Mozilla.org Thunderbird version 7.0b3 English US for linux the tar.gz version
** I started that version, 7.0b3, from the terminal, I setup an email account (gmail), and did send a 3 emails with a gopher link to myself; 1 plain text only, 1 html only, 1 plain text/html. -> No hyperlink for the link gopher://gopher.wikizine.org

Are there other tests I can do? I could ask on the Gopher mailing list of other people could test it.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
I asked around - some more results from all different people;
#1
Thunderbird 6.0.2 on Win7 x64.  The gopher:// link is NOT click-able.

#2
Thurderbird 6.0.2, slackware 13.37
Plain text only , no link

#3
Linux
TB 3.1.13 - plain text.

#4
Thunderbird 6.0.2 on Linux. The gopher url shows as plain text.
Did your test involve a clean profile ?
I am not sure what you mean with "clean profile". I have done it like I described in comment 10. 

Because you write clean profile - the following I can clarity more; 

For the test #1 with Thunderbird 6.0.2 installed from repository - after the test in save mode I removed .thunderbird - I am not sure anymore of I also removed .mozilla in that test, I suspect not

For test #2, thunderbird 6.0.2 dutch tar.gz-version; I did removed the new created .thunderbird , closed Firefox and removed .mozilla and then I started Thunderbird from the terminal and checked at help that I had started the correct new thunderbird after setting up the email account

For Test #3 , thunderbird 7 English - I first deleted the thunderbird of test #2, closed Firefox, removed again .thunderbird and .mozilla (if that was present, not sure anymore) and did the test.
It creates the link for me in TB11 on Win XP. Will check in Linux soon.

(In reply to Walter Vermeir from comment #13)
> For the test #1 with Thunderbird 6.0.2 installed from repository - after the
> test in save mode I removed .thunderbird - I am not sure anymore of I also
> removed .mozilla in that test, I suspect not
That is OK, removing .thunderbird is enough to have a clean profile.
OK, I can confirm this on Linux, TB8 and TB11. In one plain text message where http:// is linkified gopher:// is not.
Status: UNCONFIRMED → NEW
Ever confirmed: true
May it depend on this function?

netwerk/streamconv/converters/mozTXTToHTMLConv.cpp:

bool mozTXTToHTMLConv::ShouldLinkify(const nsCString& aURL)
{
  if (!mIOService)
    return false;

  nsCAutoString scheme;
  nsresult rv = mIOService->ExtractScheme(aURL, scheme);
  if(NS_FAILED(rv))
    return false;

  // Get the handler for this scheme.
  nsCOMPtr<nsIProtocolHandler> handler;
  rv = mIOService->GetProtocolHandler(scheme.get(), getter_AddRefs(handler));
  if(NS_FAILED(rv))
    return false;

  // Is it an external protocol handler? If not, linkify it.
  nsCOMPtr<nsIExternalProtocolHandler> externalHandler = do_QueryInterface(handler);
  if (!externalHandler)
   return true; // handler is built-in, linkify it!

  // If external app exists for the scheme then linkify it.
  bool exists;
  rv = externalHandler->ExternalAppExistsForScheme(scheme, &exists);
  return(NS_SUCCEEDED(rv) && exists);
}

If yes, then I can imagine this could yield different result depending on OS.
David see the question in comment 17 .
Yes, that's most likely the code. But I really don't think we care much about this.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: