Bug 94157

Summary: Can't email images with special characters in file name
Product: [Applications] digikam Reporter: Linus Gasser <ineiti>
Component: Plugin-Generic-SendByMailAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0

Description Linus Gasser 2004-11-30 09:58:06 UTC
Version:           0.1-beta1 (using KDE KDE 3.3.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Sendimages.cpp creates a temporary image-file with the last directory in the name. If this (or the name of the image, I suppose) name includes any special characters (non 7-bit, I think), the line

       *m_mailAgentProc << Temp;

misbehaves and gives some strange information to KProcess. In fact, I think that KProcess misbehaves, so perhaps this should be a bug-report against KProcess... But a workaround in kipi-plugins would be nice. I tried to give a Temp.utf8(), Temp.ascii(), Temp.latin1() to the KProcess, but it doesn't work, neither...

So, an image in

/home/ineiti/tmp/Anaïs/test.jpg

ends up in something like

/tmp/ineiti-.../.../Anaïs-test_jpg.jpg

and this name is not acceptable to KProcess...
Comment 1 Renchi Raju 2004-12-22 03:31:16 UTC
fixed in cvs
Comment 2 caulier.gilles 2017-06-29 15:28:19 UTC
Problem is not reproducible with new Send by Mail tool from digiKam core introduced with digiKam 5.7.0. The tool is available everywhere : Image Editor, Album View, Showfoto and Light Table. The items to send by mail can be selected by icon view items selection or by albums selection.

Gilles Caulier