Bug 240707

Summary: Emoticon doesn't display in email
Product: [Applications] kmail2 Reporter: Laurent Montel <montel>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Laurent Montel 2010-06-04 12:04:12 UTC
Version:           unspecified (using Devel) 
OS:                Linux

I created an email with smiley ":)" and when I look at this email, ":)" is not replacing by emoticon.

I can see that in kdepimlibs/kpimutils/linklocator.cpp

    result =
      sEmoticons->theme( cachedEmoticonsThemeName ).parseEmoticons(
        result, KEmoticonsTheme::StrictParse | KEmoticonsTheme::SkipHTML, exclude );

is calling and replace ":)" by a image
<img align="center" title=":)" alt=":)" src="/opt/kde4-akonadi/share/emoticons/kde4/smile.png" width="22" height="22" />"

but we can't see it.

Reproducible: Always


Actual Results:  
I show a ":)" and a square arround it

Expected Results:  
I want to see emoticon :)
Comment 1 Thomas McGuire 2010-06-04 12:15:10 UTC
Ah, that is because the KEmoticons doesn't (yet?) add file:// to the IMG urls.
WebKit needs that. But I don't know if KHTML-based stuff accept a file:// link. If not, then we need to add a flag to KEmoticons which controls whether to add file:// or not.
Comment 2 Thomas McGuire 2010-06-04 12:15:36 UTC
Duplicate, btw.

*** This bug has been marked as a duplicate of bug 233416 ***