Translation of \\foo\bar links into smb://foo/bar links

Jason Keirstead jason at keirstead.org
Tue Jan 18 14:30:26 GMT 2005


On Tuesday 18 January 2005 6:21 am, Thiago Macieira wrote:
> It makes sense for kfile too, but not in emails. KMail currently doesn't
> highlight \\server\share entries in emails.

While true, this is not the problem. The problem is that KIO does not 
understand "file:///\\" as an smb share.

I work in a windows-centric office. People email links to SMB shares all the 
time. They *never* have a working URL in KDE. This is because, I think, when 
you add a link in Outlook, it adds the file:// header.

For example, just yesterday I got an email with a link that is supposed to 
point at this (changed a bit for clarity):

    \\server\share\path\Functional Spec.doc

This is the URL it gives me in the link:

    file:///%5C%5Cserver%5Cshare%5Cpath%5CFunctional%20Spec.doc

Or, for those without URL decoder brains:

    file:///\\server\share\path\Functional Spec.doc

When I click this, I get an error saying "The file or folder 
file:///\\server\share\path\Application Installation Functional Spec.doc does 
not exist".

I think KMail / KDE should be able to handle these URLs. A URL with 
"file:///\\" or "file:/\\" should all be able to be handled as smb:// URLs.


-- 
If you wait by the river long enough, eventually
you will see the bodies of all your enemies float by.
    - Sun Tzu




More information about the kde-core-devel mailing list