On March 26, 2007 04:13:43 pm Frank Scheffold wrote:
> when you tested our otr plugin you see what the sent messages with enabled
> otr are stored encrypted in the history.
I believe the problem is that because in the GPG case the crypto is done by a
plugin, it is run *after* the history plugin loggs the message. What you are
doing is you're setting the encrypted message inside the Kopete::Message,
which will basically mean *none* of the other plugins in the chain are ever
going to see the plain text:
( Line 146 of otrplugin.cpp, in version 0.1: )
msg.setBody( encBody, Kopete::Message::RichText );
I think you need to comment out that line... if I understand the code
correctly the plugin is sending the message out over the wire with the line
before it, so you should not have to modify the message here, unless that is
your intention.
Somewhat unrelated - but it might be a nice feature request to have this as
optional in the history plugin anyway; I can see lots of reasons why people
who use the OTR plugin (or GPG plugin) would not want their conversations
logged, but not care if plain text messages over eg. MSN are logged.
Would be easy to key off of the MessageFormat::Crypted property for this if
they had "Do not log encrypted chat sessions" checked off in the history
plugin settings for example. The OTR plugin should probably set this property
to true.
--
Jason Keirstead
Software Developer
Q1 Labs Inc - The Nexus of Security and Networking
Office: 506-462-9117 ext. 111
Fax: 506-459-7016
[EMAIL PROTECTED] | www.q1labs.com
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel