Bug 114201 - send messages via DCOP bug
Summary: send messages via DCOP bug
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Applications
Component: DCOP Interface (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 00:52 UTC by Pete
Modified: 2008-07-22 13:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pete 2005-10-11 00:52:40 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
Compiler:          GCC4 
OS:                Linux

When sending a message to a contact by DCOP that has the same address on 2 accounts (Eg Yahoo! address activated for passport)

With the yahoo! account the user to recieve the message is offline, while online with msn/passport. If the Yahoo! account is listed in the local Kopete above the msn account with the user, it gives up after seeing the user is offline on Yahoo! without trying further accounts.

Either having Kopete allow the account to send with or/and having it try all accounts when sending a message over dcop would be good.
Comment 1 Olivier Goffart 2005-10-24 16:53:40 UTC
I don't understand.
can you please ellaborate ?
Comment 2 Pete 2005-10-28 18:27:50 UTC
Ok, I will try make this simple.

Say someone has 2 accounts added within kopete, user@yahoo.com using the yahoo! messenger service with that address also activated for msn messenger, (through passport.com) and added as a msn account.

Im not sure exactly how it works, but the accounts get an ordering, say the yahoo! is first as we added it to kopete before the msn account (using the same user@yahoo.com address).

Say user2@yahoo.com is added on yahoo! and msn, the user is online with both services. Sending a message to user2@yahoo.com via DCOP works fine. If however the user is offline on the yahoo! (first) account kopete gives up and gives a message box saying that the user is offline, while they are actually still contactable via the second account (msn) but kopete gives up before it gets there.
Comment 3 Olivier Goffart 2005-10-28 19:16:21 UTC
Ok i see.
You could use the  KIMIface messageContact  function.
This one doesn't take the contactid as parametter, but the addressbookID of the contact.
Comment 4 Pete 2005-10-28 19:22:48 UTC
So how do I use that? I tried 'dcop kopete KIMIface messageContact user@yahoo.com message from within kdcop for testing, it gave an error about contact ID not found. (I did use an actual contact, not user@yahoo.com).

Im looking for a way to send by the address of the contact
Comment 5 Olivier Goffart 2005-10-28 20:47:45 UTC
the ID must be the addressbook id.
You can get the addressbook id by calling
dcop kopete KIMIface locate user@yahoo.com YahooProtocol

the messageContact function of the KIMIface interface will message the most reachable contact of the metacontact.
Comment 6 Pete 2005-10-29 02:48:41 UTC
Maybe im being too fussy here (Im aware it could be achieved through several DCOP calls too) but whatever way I tried before it would give up after the first time the user is offline.

I could do a DCOP call and check all the possible accounts, but surely if you try and send a message to a user address it would be best for kopete to try all accounts with that user added?
Comment 7 Matt Rogers 2005-11-14 06:26:14 UTC
yahoo allows you to send messages to those contacts that are online, so i'm wondering if this is a yahoo bug or another bug somewhere else
Comment 8 Pete 2005-11-14 08:55:05 UTC
Im aware that you can send messages to a Yahoo! contact if they are online, but its when the address used for the remote user is offline on one account but online on another that the problem occurs
Comment 9 Maxim Myskov 2008-07-20 18:12:33 UTC
Bug doesn't make sense because DCOP has gone
Comment 10 Michael 2008-07-22 13:58:50 UTC
DCOP Interface has been dropped in the newer kopete releases.