Bug 132220 - Errors when trying to send pictures using thunderbird
Summary: Errors when trying to send pictures using thunderbird
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-SendByMail (show other bugs)
Version: 5.6.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 20:31 UTC by Jörg Hermsdorf
Modified: 2018-03-23 12:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Hermsdorf 2006-08-10 20:31:37 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    SuSE RPMs

I encountered some problems when Thunderbird 1.5 is choosen to be used as the email client when sending pictures with the digikam kipi-sendimages plugin. Maybe there is still some relation to bug 108227, when thunderbird wasn't even started.
I'm running OpenSuse 10.1 with KDE 3.5.4. The "Preparing images to send" dialog runs fine and starts Thunderbird, but it does not open a composer window with the selected pictures attached. So it just starts thunderbird but nothing else. This behavior seems not to be consistent across different machines. On one machine it works sometimes, but I couldn't figure out why.
But they all have the following output in common when digikam is run from Konsole:
Warning: unrecognized command line flag -mail
Hash Manager Error : 1
Error - could not open affix description file /usr/lib/thunderbird/components/myspell/de.aff
Failure loading aff file /usr/lib/thunderbird/components/myspell/de.aff

Maybe there have been some changes to Thunderbird 1.5 command line interface, the kipi-sendimage plugin must be adjusted to?! As far as I can judge this, Thunderbird should be called with the '-compose' option and not with the '-mail' option, shouldn't it? Or is this a thunderbird issue?
Comment 1 Tom Albers 2006-08-10 20:46:34 UTC
Please specify the kipi-version you are using.
Comment 2 Jörg Hermsdorf 2006-08-10 20:59:11 UTC
libkipi: 0.1.4-5.1
kipi-plugins: 0.1.0_0.1
Comment 3 Tom Albers 2006-08-11 20:08:23 UTC
The commandline works for me. The -mail parameter is used when there is no instance of thunderbird found and needs to be started. Can you test with thunderbird already started?

Is there anymore output on the commandline? Did you select thunderbird in the setup pulldown from the dialog?
Comment 4 Jörg Hermsdorf 2006-08-16 17:58:05 UTC
Ok, after intensive testing, why it sometimes works and sometimes not, I finally found the reason:
If one of the pictures you want to send, is from an album, wich "Album Name" (= directory name) has spaces in the name e.g. "my pictures" then no Composer window is opened.

It's probably, because the kipi-plugin generates the filename of the converted pictures out of the "Album Name". The rule seems to be: albumName-originalFilename_originalExtension.newExtension

I guess that, if albumName contains spaces, they are not escaped correctly and so the arguments passed to Thunderbird don't have the right syntax. That's why Thunderbird starts, but won't open a Composer window with the pictures attached?!
Comment 5 Jörg Hermsdorf 2006-08-16 18:05:29 UTC
by the way, running Thunderbird from commandline with the -mail parameter always outputs:
Warning: unrecognized command line flag -mail

When I have no Thunderbird instance started, then Thunderbird start's without the -mail parameter, too. I'm running Thunderbird 1.5.0.5. Maybe the -mail parameter isn't needed anymore, but the Thunderbird developers forgot to update the commandline output of 'thunderbird -help'.
Comment 6 J Beard 2006-08-20 11:31:54 UTC
Similar problem. 
Running Suse 10.0, KDE 3.4.2 level b, MozillaThunderbird, gwenview 1.3.0-3, kipi-plugins-0.1.2-0.pm.0@i386, libkipi-0.1.4.-0.pm.1@386.

With Thunderbird 1.0.xx Gwenview successfully sends pictures by email. 
With Thunderbird 1.5.-4.1 or 1.5.0.5-0.1 Gwenview sends only pictures for which there are not any spaces in the directory name and in the file name ie the path to the picture contains no spaces. 
Thus Plugins Images Email_Images... of /home/Pictures/Ships/image_111.jpg is satisfactory, but Email_Images...  of /home/Pictures/Ships/image 111.jpg does not proceed past the item "starting mailer agent ..." in "Preparing images to send - Gwenview" window.

Thanks to Jorg Hermsdorf for identifying the cause, now I have a work-around by renaming pictures and directories 
Comment 7 Jörg Hermsdorf 2006-08-20 17:04:42 UTC
Would be good if renaming the files were just an option and not default, because often it is not desired (and needed) to have such complicated, technical sounding picture filenames in an email.
So my proposal is the following:

- 1st: originalFilename.newExtension is the default naming rule for pictures; if originalFilname contains spaces, they are escaped with backslashes (of course you need to check if just escaping them with backslashes is sufficient... but it should be, I guess you are passing the pictures on commandline basis to thunderbird!? Or do you use some kind of API interface?)

- 2nd: there is is an option to include the 'album name' in the new filename, used for situations where you need to send a lot of pictures

- 3rd: for experts, there is an audiocd like naming option (like in Control Center -> Sound & Multimedia -> Audio-CDs -> Names) where you can use placeholders to define the naming rule of the filenames for the converted pictures, e.g.:
%{albumname}-%{filename}_%{original_extension}.%{new_extension}
(Probably you can use a lot of the code from the audiocd module, or maybe there is already a KDE library for things like this?)

- 4th option: maybe some people would also like to have this: instead of adding the 'album name' to the filename, pictures are wrapped into an archive (using Ark) where 'album name' is a folder inside the archive and the pictures are placed inside this folder. This way you could send a lot of pictures within a single attachment, e.g. a .zip file :)
Comment 8 Angelo Naselli 2007-01-06 00:30:56 UTC
*** Bug 139646 has been marked as a duplicate of this bug. ***
Comment 9 Michael Höchstetter 2007-01-06 12:38:00 UTC
now the thunderbird and mozilla clients should work. I tested with thunderbird   1.5.0.9 and mozilla 1.7.13. Please help me testing with your versions.

Comment 10 Christian 2007-01-06 16:00:28 UTC
I am using kipi-plugins 0.1.3-0.2.rc1.fc5, thunderbird 1.5.0.9 and it does not work. I have no space nowhere, but still not working.
It use to work fine before the last digikam update with thunderbird 1.5.0.8.
Then the new digikam and kipi-plugins did not work with thunderbird 1.5.0.8 and now 1.5.0.9
Any hit ?
Comment 11 Michael Höchstetter 2007-01-06 17:35:10 UTC
please update to the latest cvs, there was a bug inside.
Comment 12 Christian 2007-01-06 18:42:04 UTC
How do i do that ? I installed everything with yum on FC5 ...
Thanks for the beginners ...
Comment 13 Christian 2007-01-06 18:55:36 UTC
I installed the latest CVS with yum on the update repo.
But still does not work ...
Comment 14 Michael Höchstetter 2007-01-06 19:32:55 UTC
you caught me unprepared: lets talk about SVN instead of CVS ;-)

ok. Open http://www.kipi-plugins.org/drupal/?q=node/4
and follow instructions in section "SVN"

then compile it... 
read the Compiling-HOWTO here: http://www.kipi-plugins.org/drupal/?q=node/3

hope that helps
Comment 15 Michael Höchstetter 2007-01-10 19:21:37 UTC
is it now working for you?
Comment 16 Christian 2007-01-10 20:06:52 UTC
Thanks a lot for coming back to check.
I have tried your procedure, but i did not manage.
The first link goes on a web page for a file which is no longer on the ftp server
(when i click on the "from here" at the bottom of the page to get the SVN file, it says "550 fail to change directory")
I have tried to find the file the links points to on the ftp server, but it did not succeed ... (there are file with very close name, but not the exact same name of the link). And i do not want to try compiling a wrong file ....
Any other place where i can download the SVN ? Or any other file ?
Thanks in advance !
Christian
Comment 17 Angelo Naselli 2007-01-10 22:24:23 UTC
hmm, sorry there's a wrong link the right one should be
"ftp://ftp.kde.org/pub/kde/unstable/snapshots/kdeextragear-libs.tar.bz2"
Anyway you can go on www.kipi-plugins.org and looking for "Download"
Follow the roules to download from svn and next looking for
"HOWTO install" to build from source. 
HTH,
    Angelo
P.S. Valerio as soon as possible we should make those steps more clear.
Comment 18 Valerio Fuoglio 2007-01-10 22:52:04 UTC
Angelo,

I agree, we should work on it.

Broken link fixed.
Comment 19 Christian 2007-01-11 14:58:15 UTC
Thanks guys, i managed to download via SVN.
But since i am a beginner in Linux, i have a question to install this ...
Installation procedure says :
"export KDEDIR=KDE_installation_dir_on_your_system"
OK, but there are so many directories where i find KDE, how do i know which one is the KDE installation directory ?
Is it/usr/lib/kde3 or /usr/share/applications/kde or /etc/kde or in my /home ?...
(That would then be /home/Valerie/.kde). I also have /usr/include/kde and some kde stuff in /usr/include  ...
Thanks in advance,
Christian
Comment 20 Angelo Naselli 2007-01-11 15:48:14 UTC
Ok you're right. The best way to talk about that should be kde-imaging ml, more
than here. We will add a better note on our web site though. 

Here you are a mini how-to
Assumption:
1) svn tree is in $HOME/KDE/libs
2) Normal KDE environment is under /usr (used in addition to KDEDIRS variable, see below)
3) You want to test it without breaking your system ;) (e.g. using your home)
     for instance in $HOME/KDE/TEST

Steps:
# cd $HOME/KDE/libs
# svn up
[...command output...]
# make -f Makefile.cvs
[...command output...]
# ./configure --enable-debug=full --prefix=$HOME/KDE/TEST
[...command output...]
# make install

You can run next commands once
# export KDEDIRS=$HOME/KDE/TEST:/usr
# export PATH=$HOME/KDE/TEST/bin:$PATH
# kbuildsycoca
[...command output...]

At this point running a host application such as digikam, gwenview,... you
will see the kipi-plugins from svn. Before compiling beware, 
though, to have all the needed libraries, I mean exiv 0.12, opengl, etc.

Angelo
Comment 21 Michael Höchstetter 2007-01-16 16:15:39 UTC
*** Bug has been marked as fixed ***.