Pass mime type to KMail when using Location->Send File

Waldo Bastian bastian at kde.org
Sat Jun 14 18:05:53 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 14 June 2003 18:47, Ingo Klöcker wrote:
> [Please keep kmail at kde.org cc'ed, as I'm not subscribed to
> kfm-devel at kde.org.]
>
> Hi,
>
> this is about http://bugs.kde.org/show_bug.cgi?id=53009 (kmail --attach
> <url> does not preserve mime type in attachment). The problem is that
> KMimeType::findByURL returns application/octet-stream for all HTTP
> URLs, i. e. for all webpages someone wants to send his friends.

In order to fetch such webpage you will have to KIO::get it, and when you 
KIO::get it, the KIO::Job will be able to tell you the mimetype...

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+61XxN4pvrENfboIRAk+rAKCLHJdG/DvvRXU/o/vySSgPd+GjBQCgifmL
OMPh1OhhhWqxC6aAgp/SoAY=
=A0hj
-----END PGP SIGNATURE-----



More information about the kfm-devel mailing list