[Pidgin] #7009: conversation signals: message formats are inconsistent

Pidgin trac at pidgin.im
Mon Sep 8 11:52:03 EDT 2008


#7009: conversation signals: message formats are inconsistent
------------------+---------------------------------------------------------
Reporter:  nowic  |        Type:  defect   
  Status:  new    |   Component:  libpurple
 Version:  2.5.1  |    Keywords:           
------------------+---------------------------------------------------------
 If you register the signals "sending-im-msg" and/or "receiving-im-msg" in
 a plugin you get very inconsistent message formats. The structure varies
 if the message was sent or received and it depends on the protocol which
 is used. Even the text formating is implemented diffently in different
 protocols <span style=""> vs <font>, etc.

 So as a plugin developer you have to add a lot of protocol specific code
 if you want to manipulate messages. In my opinion, there should be one
 defined message format and formating style which all protocols have to
 follow as soon as they pass the message to libpurple. Please correct me if
 do not get purple's architecture correctly.

 The attached plugin shows the described problem. The messages.log file
 shows some messages sent with bonjour, icq and jabber. As I do not use
 other protocols I can't comment on them. The most annoying is jabber as
 all receved messages are wraped in xhtml (outgoing messages are not).

 Cheers,

 Simon Wenner

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7009>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list