[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: dcop returns -4 after first call to object
From:       Ingo =?utf-8?q?Kl=C3=B6cker?= <kloecker () kde ! org>
Date:       2002-08-27 22:32:15
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeff!

On Monday 26 August 2002 09:08, Jeffrey Powell wrote:
> As Ingo suggested I have experimented with the dcop interface and met
> with yet a little more trouble. The first call succeeds the
> subsequent calls fail with error -4. The interface to the
> dcopAddMessage object then continues to fail until KMail is closed
> then re-opened. It would seem to me that the session is not closed or
> improperly closed at the end of the first dcop call from bash.
>
> How can I close or reset this interface?

After a look at the not very well documented source code I now know what 
error -4 means.

dcopAddMessage tries to prevent duplicate messages by keeping a list of 
Message Ids of messages which were added to the same folder. In your 
case all your message have the same Message Id. Therefore 
dcopAddMessage rejects all messages after the first one. To work around 
this problem you'll have to give each message another Message Id.

Regards,
Ingo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9a/3vGnR+RTDgudgRAj2UAKCTAkHszTnoL1MYeJUmARN+fVjvHgCgm6H5
+VjvchNWub6rrZfp1TYQMWk=
=7tQb
-----END PGP SIGNATURE-----

_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic