<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">(Please reply-to-all, as I'm sending this to both relevant lists)<DIV><BR class="khtml-block-placeholder"></DIV><DIV>AIM DirectIM can't work within an OTR-encrypted chat; the same is true of any other gaim plugin-based encryption scheme.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>1) User sends message in Gaim</DIV><DIV>2) Gaim gives plugins an opportunity to modify the message; an encryption plugin such as gaim-otr encrypts the message if appropriate, returning the encrypted message</DIV><DIV>3) Gaim sends the encrypted message to the prpl</DIV><DIV>4) In the case of oscar within a DirectIM session, the message is normally post-processed, looking for <IMG> tags, which reference ids from the gaim img store in the form <img='2'> where <FONT class="Apple-style-span" face="Monaco" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">gaim_imgstore_get(2)</SPAN><FONT class="Apple-style-span" face="Helvetica" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"> will return the GaimStoredImage* for the image.  The image's data, size, etc. are inserted into the message..... but the message is encoded, so such a tag isn't found, and images can not be sent.</SPAN></FONT></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>A similar situation exists on the receiving side, where the prpl processes the incoming message, looking for <img> tags to convert to the gaim img store and their corresponding IDs but sees only the gibberish of an encrypted message.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-style-span">As I mentioned, this is <I>not</I> specific to the gaim-otr implementation but rather a result of how the signals are set up.  One solution I've come up with is giving the prpl a chance to modify the outgoing message before it is sent to plugins via a signal, and similarly call the prpl for final post-processing of incoming messages after the first signal is sent when receiving a message.</SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thoughts?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,</DIV><DIV>Evan</DIV><DIV>www.adiumx.com</DIV></BODY></HTML>