From kfm-devel Sat Jun 14 17:05:53 2003 From: Waldo Bastian Date: Sat, 14 Jun 2003 17:05:53 +0000 To: kfm-devel Subject: Re: Pass mime type to KMail when using Location->Send File X-MARC-Message: https://marc.info/?l=kfm-devel&m=105561047624058 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 14 June 2003 18:47, Ingo Klöcker wrote: > [Please keep kmail@kde.org cc'ed, as I'm not subscribed to > kfm-devel@kde.org.] > > Hi, > > this is about http://bugs.kde.org/show_bug.cgi?id=53009 (kmail --attach > 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@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@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-----