Community Discussions and Support
hyperlink to a file in an email message

[quote user="bfluet"]If double clicked I receive the IER warning but the file does not open.[/quote]

Brian, Pegasus Mail actually executes resp. loads these files and expects to see real spaces instead of encoded ones. I've now added a conversion check so it should work as expected. If you send me an email (via IERs About dialog) refering to this thread I can send you a test version.

<p>[quote user="bfluet"]If double clicked I receive the IER warning but the file does not open.[/quote]</p><p>Brian, Pegasus Mail actually executes resp. loads these files and expects to see real spaces instead of encoded ones. I've now added a conversion check so it should work as expected. If you send me an email (via IERs <em>About</em> dialog) refering to this thread I can send you a test version.</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

I am trying to send a link to a file to my users.  I have created a hyperlink that generates the link "FILE://\\SERVER01\SHARED\VENDOR LIST.PDF" but the file doesn't open when the link is clicked.  When tested with BearHTML instead of IERender I see "protocol refused: file" displayed in the bottom left corner of the message window.  I did this more out of curiosity than anything else since it would be a mute point if it worked with BearHTML.  Anyone know why a link to a file doesn't work and/or how to get one to work?

 

<p>I am trying to send a link to a file to my users.  I have created a hyperlink that generates the link "FILE://\\SERVER01\SHARED\VENDOR LIST.PDF" but the file doesn't open when the link is clicked.  When tested with BearHTML instead of IERender I see "protocol refused: file" displayed in the bottom left corner of the message window.  I did this more out of curiosity than anything else since it would be a mute point if it worked with BearHTML.  Anyone know why a link to a file doesn't work and/or how to get one to work?</p><p> </p>

Brian    As far as I know File: protocol requires forward slashes ie file:/// before the actual file location and of course the directory delimiters should be forward slashes too.  See http://en.wikipedia.org/wiki/File_URI_scheme.  In your case there is the SERVER01 between // and / so your Url would

be File://server01/ SHARED/VENDOR LIST.PDF   P.S Some parsers only allow file:/// at the start of the Url which signifies that the wanted file must be accessible on the webserver

Martin 

<p>Brian    As far as I know File: protocol requires forward slashes ie file:/// before the actual file location and of course the directory delimiters should be forward slashes too.  See http://en.wikipedia.org/wiki/File_URI_scheme.  In your case there is the SERVER01 between // and / so your Url would</p><p>be File://server01/ <span style="background-color: rgb(221, 221, 221); font-family: Tahoma, Arial, Helvetica; font-size: 10pt;">SHARED/VENDOR LIST.PDF   P.S Some parsers only allow file:/// at the start of the Url which signifies that the wanted file must be accessible on the webserver</span></p><p>Martin </p>

I have tried forward slashes, back slashes, two and three slashes and escape codes. I can get to resulting hyperlink to look exactly like what works in Word but the pdf viewer isn't invoked nor is the file opened.

What does the "protocol refused: file" indicate when BearHTML is active?  Not sure it exactly said "protocol refused", might have been "protocol blocked" or something like that.

 

<p>I have tried forward slashes, back slashes, two and three slashes and escape codes. I can get to resulting hyperlink to look exactly like what works in Word but the pdf viewer isn't invoked nor is the file opened.</p><p>What does the "protocol refused: file" indicate when BearHTML is active?  Not sure it exactly said "protocol refused", might have been "protocol blocked" or something like that.</p><p> </p>

Second point above.  This is a security feature in Bear that does not allow remote access to things like a C drive on a remote web server. Only hypertext protocols are allowed. Things like Callto and Skype invoke applications on the Pegasus Mail machine (ie email message recipient machine.)

So the question is, do you want email message readers to be able to fetch files from a remote location, even if it is just as in your case, another server in your server pool?  The security issue would then be that accessing another device within your organization *MIGHT* be ok, as the email recipient will have logged into the company servers before. But would you want external email users accessing your server files through a request from a clickable link in the email message?.

Martin 

<p>Second point above.  This is a security feature in Bear that does not allow remote access to things like a C drive on a remote web server. Only hypertext protocols are allowed. Things like Callto and Skype invoke applications on the Pegasus Mail machine (ie email message recipient machine.)</p><p>So the question is, do you want email message readers to be able to fetch files from a remote location, even if it is just as in your case, another server in your server pool?  The security issue would then be that accessing another device within your organization *MIGHT* be ok, as the email recipient will have logged into the company servers before. But would you want external email users accessing your server files through a request from a clickable link in the email message?.</p><p>Martin </p>

In my case it would be ok since there is no outside access to our servers and permissions limit what users can access but I certainly see your point. 

 

<p>In my case it would be ok since there is no outside access to our servers and permissions limit what users can access but I certainly see your point.  </p><p> </p>

So it should be enabled by an option setting perhaps?

Martin 

<p>So it should be enabled by an option setting perhaps?</p><p>Martin </p>

I see a value in being able to send file links to local users. 

If there is an option in BearHTML would there also need to be one in IERenderer?

 

<p>I see a value in being able to send file links to local users.  </p><p>If there is an option in BearHTML would there also need to be one in IERenderer?</p><p> </p>

[quote user="bfluet"]If there is an option in BearHTML would there also need to be one in IERenderer? [/quote]

IER already allows access to local files with URLs like this one "file://C:\Windows\SysWOW64\scrnsave.scr" (an existing file on W7-64 systems): You'll get warnings for certain file types, though.

<p>[quote user="bfluet"]If there is an option in BearHTML would there also need to be one in IERenderer? [/quote]</p><p>IER already allows access to local files with URLs like this one "file://C:\Windows\SysWOW64\scrnsave.scr" (an existing file on W7-64 systems): You'll get warnings for certain file types, though.</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

The filename of my target document contained spaces.  I was using the escape code (%20) for the spaces in my test URLs but they were resulting in an invalid path.  I got it to work once I removed the spaces.  It works only with IERenderer active and only after acknowledging a warning. 

Martin, if a similar required warning acknowledgement is a possibility in Bear I think that would be a better option than an on/off configuration switch.

 

<p>The filename of my target document contained spaces.  I was using the escape code (%20) for the spaces in my test URLs but they were resulting in an invalid path.  I got it to work once I removed the spaces.  It works only with IERenderer active and only after acknowledging a warning.  </p><p>Martin, if a similar required warning acknowledgement is a possibility in Bear I think that would be a better option than an on/off configuration switch. </p><p> </p>

The way to solve the spaces problem is to change them to underscores, then the filename is quite readable.

I will work on the warning dialog over the next little while. I will have to get some tranalations done, unless I can borrow from Michael.

Martin 

<p>The way to solve the spaces problem is to change them to underscores, then the filename is quite readable.</p><p>I will work on the warning dialog over the next little while. I will have to get some tranalations done, unless I can borrow from Michael.</p><p>Martin </p>

[quote user="irelam"]The way to solve the spaces problem is to change them to underscores, then the filename is quite readable.[/quote]

Just when you stop thinking about DOS...

[quote user="irelam"]I will work on the warning dialog over the next little while. I will have to get some tranalations done, unless I can borrow from Michael.[/quote]

Thanks Martin!

<p>[quote user="irelam"]The way to solve the spaces problem is to change them to underscores, then the filename is quite readable.[/quote]</p><p>Just when you stop thinking about DOS... </p><p>[quote user="irelam"]I will work on the warning dialog over the next little while. I will have to get some tranalations done, unless I can borrow from Michael.[/quote]</p><p>Thanks Martin! </p>

[quote user="irelam"]I will work on the warning dialog over the next little while. I will have to get some tranalations done, unless I can borrow from Michael.[/quote]

Since my resources are delivered via IER's HTML help files this should be easy enough.

<p>[quote user="irelam"]I will work on the warning dialog over the next little while. I will have to get some tranalations done, unless I can borrow from Michael.[/quote]</p><p>Since my resources are delivered via IER's HTML help files this should be easy enough.</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

[quote user="bfluet"]The filename of my target document contained spaces.  I was using the escape code (%20) for the spaces in my test URLs but they were resulting in an invalid path.[/quote]

I never tested blanks with non-text files: Files to be opened in a browser window (plain text, HTML - tested with Opera, Firefox and IE) will open properly if containing encoded spaces.

<p>[quote user="bfluet"]The filename of my target document contained spaces.  I was using the escape code (%20) for the spaces in my test URLs but they were resulting in an invalid path.[/quote]</p><p>I never tested blanks with non-text files: Files to be opened in a browser window (plain text, HTML - tested with Opera, Firefox and IE) will open properly if containing encoded spaces.</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Interesting.  My file was a pdf file which would not open with encoded spaces but opened fine when the spaces were replaced with underscores.  IIRC, IER would detect an invalid path when the filename contained encoded spaces.

 

<p>Interesting.  My file was a pdf file which would not open with encoded spaces but opened fine when the spaces were replaced with underscores.  IIRC, IER would detect an invalid path when the filename contained encoded spaces.</p><p> </p>

[quote user="bfluet"]IIRC, IER would detect an invalid path when the filename contained encoded spaces. [/quote]

Does IE itself do so as well?

<p>[quote user="bfluet"]IIRC, IER would detect an invalid path when the filename contained encoded spaces. [/quote]</p><p>Does IE itself do so as well?</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

I might have been mistaken about the invalid path.  I just retested using

file://p:/shared/vendor%20list.pdf

and

file://///server01/userfiles/shared/vendor%20list.pdf

In both cases:

If double clicked I receive the IER warning but the file does not open.

If "open in browser" is selected then the File download window opens in the browser as expected (both IE and FF). 


<p>I might have been mistaken about the invalid path.  I just retested using </p><p>file://p:/shared/vendor%20list.pdf </p><p>and </p><p>file://///server01/userfiles/shared/vendor%20list.pdf</p><p>In both cases:</p><p>If double clicked I receive the IER warning but the file does not open.</p><p>If "open in browser" is selected then the File download window opens in the browser as expected (both IE and FF).  </p><p> </p>

[quote user="bfluet"]In both cases: If double clicked I receive the IER warning but the file does not open.[/quote]

I may be able to fix this.

<p>[quote user="bfluet"]In both cases: If double clicked I receive the IER warning but the file does not open.[/quote]</p><p>I may be able to fix this.</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Michael,

   I don't understand the Url workings. To my understanding the c:\windows is illegal, as the first parameter after the protocol ftp:// is the domain and the second is the path to the required file. The colon character is reserved according to the RFC in either domain or path parts of the Url.   This would mean that the c: is being interpreted as the domain. the Url above would then appear to be corrected as:  file://c/windows/syswow64/scrnsave.scr 

Martin 

<p>Michael,</p><p>   I don't understand the Url workings. To my understanding the c:\windows is illegal, as the first parameter after the protocol ftp:// is the domain and the second is the path to the required file. The colon character is reserved according to the RFC in either domain or path parts of the Url.   This would mean that the c: is being interpreted as the domain. the Url above would then appear to be corrected as:  <span style="font-size: 10pt;">file://c/windows/syswow64/scrnsave.scr </span></p><p>Martin </p>

[quote user="irelam"]I don't understand the Url workings. To my understanding the c:\windows is illegal, as the first parameter after the protocol ftp:// is the domain and the second is the path to the required file. The colon character is reserved according to the RFC in either domain or path parts of the Url.[/quote]

Martin, I don't really care about RFCs or rules in this case since all browsers I usually test (IE, Firefox and Opera) firstly can deal with either one and secondly automatically convert such URLs to different versions of your correct URL (Firefox creates file:///C:/Windows/SysWOW64/scrnsave.scr while IE even uses a plain file path, i.e. simply C:\Windows\SysWOW64\scrnsave.scr (you can see it only for a second or so)). IOW: If they don't care why should I? I just make sure everything works properly with each browser I test. And furthermore: I didn't want to present a correct URL, I just stated that it works for the purpose discussed in this thread.

<p>[quote user="irelam"]I don't understand the Url workings. To my understanding the c:\windows is illegal, as the first parameter after the protocol ftp:// is the domain and the second is the path to the required file. The colon character is reserved according to the RFC in either domain or path parts of the Url.[/quote]</p><p>Martin, I don't really care about RFCs or rules in this case since all browsers I usually test (IE, Firefox and Opera) firstly can deal with either one and secondly automatically convert such URLs to different versions of your correct URL (Firefox creates file:///C:/Windows/SysWOW64/scrnsave.scr while IE even uses a plain file path, i.e. simply C:\Windows\SysWOW64\scrnsave.scr (you can see it only for a second or so)). IOW: If they don't care why should I? I just make sure everything works properly with each browser I test. And furthermore: I didn't want to present a correct URL, I just stated that it works for the purpose discussed in this thread.</p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft