After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 562948 - unable to send mails containing UTF8 strings (subject)
unable to send mails containing UTF8 strings (subject)
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Mail
0.28.x
Other Linux
: High major
: ---
Assigned To: Johnny Jacob
evolution-mapi-maint
: 600831 624302 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-02 09:41 UTC by july
Modified: 2011-01-12 11:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description july 2008-12-02 09:41:21 UTC
when try to send mail with subject in latin (e.g. test) despite body text is in cyrillic (e.g. проба) sending mail works.

when try to send mail with subject in cyrillic (e.g. тест) sending dosent work. here is a small backtrice:

exchange-mapi-connection.c(1939): Entering exchange_mapi_create_item libexchangemapi-Message: exchange-mapi-connection.c(1941): exchange_mapi_create_item: lock(connect_lock)
Conversion error: Illegal multibyte sequence(�)
    SetProps                 : MAPI_E_CALL_FAILED (0x80004005)
libexchangemapi-Message: exchange-mapi-connection.c(2051): exchange_mapi_create_item: unlock(connect_lock)
Comment 1 Johnny Jacob 2008-12-03 16:08:53 UTC
Awesome ! What is the SVN revision you have ? Can you try with the latest svn revision 
Comment 2 july 2008-12-03 16:27:11 UTC
sorry, for not including this info.

~/packages/sources/cvs/ev_mapi/evolution-mapi_new$ svn info
Path: .
URL: svn://svn.gnome.org/svn/evolution-mapi/trunk
Repository Root: svn://svn.gnome.org/svn/evolution-mapi
Repository UUID: 757ab788-fb4a-4386-9208-f8d9b22530eb
Revision: 20
Node Kind: directory
Schedule: normal
Last Changed Author: jjohnny
Last Changed Rev: 20
Last Changed Date: 2008-12-02 10:44:12 +0200 (Tue, 02 Dec 2008)

it is latest, right?
Comment 3 Johnny Jacob 2008-12-11 08:10:56 UTC
Raised a ticker in openchange's libmapi http://trac.openchange.org/ticket/123 .

Rephrasing summary to "unable to send mails containing UTF8 strings (subject / body)"
Comment 4 july 2009-05-20 06:28:54 UTC
sorry about writing here about openchangeclinet, but despite i have register at trac.openchange.org i don't have permission to add ticket

at http://trac.openchange.org/ticket/123 it is stated that r1167 may have some fixes. but they did not help.

i have try
~/packages/sources/cvs/openchange$ svn info
Path: .
URL: svn://websvn.openchange.org/openchange/trunk
Repository Root: svn://websvn.openchange.org/openchange
Repository UUID: 71d39326-ef09-db11-b2a4-00e04c779ad1
Revision: 1342
Node Kind: directory
Schedule: normal
Last Changed Author: occl
Last Changed Rev: 1342
Last Changed Date: 2009-05-08 01:00:41 +0300 (Fri, 08 May 2009)


and

~/packages/sources/git/evolution-mapi$ git log

commit 20a1804be63c7ce2ef9b23ffa1bbe50523345677
Author: Johnny Jacob <jjohnny@novell.com>
Date:   Wed May 13 14:58:02 2009 +0530

    Bumping EDS / EVO minimum requirement versions to 2.27.2 because of Bug 581424



and still cant send mails with cyrrilic in body or subject...

bellow are some gdb (first with subject and body in Cyrillic (unicode), second just the body


[ev27@sf-july-6710b ~]$ gdb openchangeclient
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
(gdb) run -f .evolution/mapi-profiles.ldb -S -t july@xxx.yy -s проба --body "тестване на бодито"
Starting program: /usr/bin/openchangeclient -f .evolution/mapi-profiles.ldb -S -t july@nat.bg -s проба --body "тестване на бодито"
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
Cannot find new threads: generic error
(gdb) bt
  • #0 dl_open_worker
    from /lib/ld-linux-x86-64.so.2
  • #1 _dl_catch_error
    from /lib/ld-linux-x86-64.so.2
  • #2 _dl_open
    from /lib/ld-linux-x86-64.so.2
  • #3 dlopen_doit
    from /lib/libdl.so.2
  • #4 _dl_catch_error
    from /lib/ld-linux-x86-64.so.2
  • #5 _dlerror_run
    from /lib/libdl.so.2
  • #6 dlopen
    from /lib/libdl.so.2
  • #7 _sasl_get_plugin
    from /usr/lib/libsasl2.so.2
  • #8 _sasl_load_plugins
    from /usr/lib/libsasl2.so.2
  • #9 sasl_client_init
    from /usr/lib/libsasl2.so.2
  • #10 gensec_sasl_init
    at auth/gensec/cyrus_sasl.c line 384
  • #11 run_init_functions
    at param/util.c line 252
  • #12 gensec_init
    at auth/gensec/gensec.c line 1323
  • #13 dcerpc_init
    at librpc/rpc/dcerpc.c line 36
  • #14 MAPIInitialize
    at libmapi/cdo_mapi.c line 250
  • #15 main
    at utils/openchangeclient.c line 3109
  • #0 dl_open_worker
    from /lib/ld-linux-x86-64.so.2
  • #1 _dl_catch_error
    from /lib/ld-linux-x86-64.so.2
  • #2 _dl_open
    from /lib/ld-linux-x86-64.so.2
  • #3 dlopen_doit
    from /lib/libdl.so.2
  • #4 _dl_catch_error
    from /lib/ld-linux-x86-64.so.2
  • #5 _dlerror_run
    from /lib/libdl.so.2
  • #6 dlopen
    from /lib/libdl.so.2
  • #7 _sasl_get_plugin
    from /usr/lib/libsasl2.so.2
  • #8 _sasl_load_plugins
    from /usr/lib/libsasl2.so.2
  • #9 sasl_client_init
    from /usr/lib/libsasl2.so.2
  • #10 gensec_sasl_init
    at auth/gensec/cyrus_sasl.c line 384
  • #11 run_init_functions
    at param/util.c line 252
  • #12 gensec_init
    at auth/gensec/gensec.c line 1323
  • #13 dcerpc_init
    at librpc/rpc/dcerpc.c line 36
  • #14 MAPIInitialize
    at libmapi/cdo_mapi.c line 250
  • #15 main
    at utils/openchangeclient.c line 3109
Continuing.
[New Thread 0x7f09819036f0 (LWP 14325)]
Conversion error: Illegal multibyte sequence()
    sendmail                 : MAPI_E_CALL_FAILED (0x80004005)

Program exited normally.

Comment 5 Akhil Laddha 2009-11-06 04:57:22 UTC
*** Bug 600831 has been marked as a duplicate of this bug. ***
Comment 6 Valent Turkovic 2009-11-27 08:34:06 UTC
I'm also seeing this. I tried sending a message with Croatian diactics that has same subject and body:
"što će biti s đurom?"

but it fails :(
Comment 7 Johnny Jacob 2009-11-27 08:43:13 UTC
We are still waiting for a fix from libmapi library. The fix is scheduled for 0.10 release of libmapi. till then we have to wait. Thanks.
Comment 8 Milan Crha 2010-01-28 14:17:25 UTC
I fixed the issue for body within bug #608320, the subject part is still there
Comment 9 Julien Kerihuel 2010-02-01 21:44:13 UTC
Global fix committed in OpenChange r1695
Comment 10 Milan Crha 2010-06-11 13:36:51 UTC
As Julien said, this is waiting for openchange 0.10. There is nothing more evolution-mapi can do about this, thus I'm closing this as fixed.
Comment 11 Milan Crha 2010-07-15 08:47:48 UTC
*** Bug 624302 has been marked as a duplicate of this bug. ***
Comment 12 kainuja 2011-01-11 14:33:11 UTC
(In reply to comment #10)
> As Julien said, this is waiting for openchange 0.10. There is nothing more
> evolution-mapi can do about this, thus I'm closing this as fixed.

It seems this bug is not fixed with that release. Still, with latest versions  2.31.1 and 0.32.1, I can not sent mail with 8-bit characters in headers (recipient name). Mail stays in outbox and evo says "Error while sending message".
Comment 13 Milan Crha 2011-01-12 11:51:10 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > As Julien said, this is waiting for openchange 0.10. There is nothing more
> > evolution-mapi can do about this, thus I'm closing this as fixed.
> 
> It seems this bug is not fixed with that release. Still, with latest versions 
> 2.31.1 and 0.32.1, I can not sent mail with 8-bit characters in headers
> (recipient name). Mail stays in outbox and evo says "Error while sending
> message".

I suppose your evolution is of version 2.31.1, and evolution-mapi version is 0.32.1 (it's pretty strange to mix evo 2.31.x with ema 0.32.x, maybe a typo?). But as you quoted, this requires also openchange 0.10. So my question is, do you compile openchange 0.10 (with samba4) and evolution-mapi 0.32.1 yourself, same as you know that the correct evolution-mapi library is loaded, the one which is using openchange 0.10? I believe there is something wrong with this compilation, because it works fine for me.