Send and verify messages (Perl)
pidgin at unreliablesource.net
Mon Jun 25 19:15:46 EDT 2007
On Mon, Jun 25, 2007 at 04:34:09PM -0400, Greg Chagnon wrote:
> I'm looking at the sample Perl code to sign on and send IMs, but when I run
> it it seems like I'm only sending the message to myself. How do I send a
> message to another user through the Perl interface? Also, if I'm signed on
> as the recipient, how do I verify the message was actually sent. Basically,
> what I want to do is have 2 accounts signed on from different computers and
> have one send the message to the other, and verify that it was in fact
> sent. Thanks for any help!
Without seeing the code you are using it is really hard to say what the
problem is. At a guess I would say that you are using something like
Purple::Conversation::write instead of Purple::Conversation::IM::send.
The only way to verify that what you sent got to a receiver correctly is
to use some sort of checksum that gets verified and sent back. Assuming
you really need to know that the message you sent got to the other end
exactly the way you sent it.
More information about the Devel