When using View->Attachments->As Icons, the message viewer doesn't show any icons, it just shows the plain file name. That makes the attachment indistinguishable from normal text.
HTML seems to be ok, but atleast on my machine I get this: ----- kmail(14987) MessageViewer::NodeHelper::writeNodeToTempFile: Create temp file: "/home/kde-trunk/.kde-trunk/tmp-explosive/kmailR14987.index.2/kmime-content-id.diff" kmail(14987)/kio (AccessManager) KIO::AccessManager::createRequest: GetOperation: QUrl( "file:///home/kde-trunk/inst/share/apps/kmail/pics/quicklistOpened.png" ) kmail(14987)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2ed6400) kmail(14987)/kio (Scheduler) KIO::SchedulerPrivate::scheduleJob: KIO::TransferJob(0x2ed6400) kmail(14987)/kio (Scheduler) KIO::SchedulerPrivate::setJobPriority: KIO::TransferJob(0x2ed6400) 1 kmail(14987)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///home/kde-trunk/inst/share/apps/kmail/pics/quicklistOpened.png") kmail(14987)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/home/kde-trunk/.kde-trunk/socket-explosive/kmaila14987.slave-socket" kmail(14987)/kio (Slave) KIO::Slave::timeout: slave failed to connect to application pid= 15004 protocol= "file" kmail(14987)/kio (Slave) KIO::Slave::timeout: Houston, we lost our slave, pid= 15004 kmail(14987)/kio (Slave) KIO::Slave::timeout: slave died pid = 15004 kmail(14987)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x2ed6400) KIO::Slave(0x2ec5620) kmail(14987)/kio (AccessManager) KDEPrivate::AccessManagerReply::jobDone: 143 kmail(14987)/kio (Scheduler) KIO::SchedulerPrivate::slotSlaveDied: KIO::Slave(0x2ec5620) kmail(14987)/kio (Scheduler) KIO::SchedulerPrivate::cancelJob: Doing nothing because I don't know job KIO::TransferJob(0x2ed6400) ----- Could this be the reason (a kio error)?
Forgot to add the rendering html code. <div id="attachmentDiv2"> <div> <a href="attachment:2?place=body"> <img src="/home/kde-trunk/inst/share/icons/oxygen/48x48/mimetypes/application-octet-stream.png" border="0" style="max-width: 100%" alt=""> kmime-content-id.diff </a> </div> <div> </div> <br> </div>
After updating kdelibs/kio, I can now see the attachment quick list icon again, but still not the attachment icons in the body. I also don't get KIO errors anymore.
Actually, this seems just to be an issue with missing "file:///" in front of the URLs. Seems like WebKit is more strict than KHTML. So one should grep for "img" in the OTP and the headerstyle code and add this everywhere. I can't do this right now since I've got other changes in the OTP at the moment.
SVN commit 1087322 by tnyblom: Fix image search paths. (Strings that are separated by whitespace only count as one string, so kmail search for images under ".../libmessagelistlibmessageviewerlibmessagecore/...") BUG: 223466 M +2 -2 kmstartup.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1087322