#30 Encryption status of *ALL* historical messages


The Rx:plain/secure button (or menuitem) shows only
instantaneous status of last received message. No
information is kept in the scrolled area for any other
message nor in the log files if you record your messages.

Could it be possible to have an icon (like a
lock/key/whatever) that would be added directly to the
beginning of the message (i.e. part of the text)? It
could be using a string like (LOCK) en (CRYPT) that
would be replaced by relevant icon just in conversation
window, like all other emoticons and would look nicely
in log files ;-)

By the way, changing the icon of encryption-capable
buddies in the buddy list could be a nice addon, like
requested in an old message for AIM.

Hope you find this idea interesting.

-- c2


  • Logged In: YES

    Sorry, request sent while I was apparently not logged on.
    I'm now!
    -- c2

  • Bill Tompkins
    Bill Tompkins

    Logged In: YES

    This would be interesting. It might be possible just using
    some HTML on the local side to put in the icons...

  • Bill Tompkins
    Bill Tompkins

    • priority: 5 --> 4
  • Logged In: YES


    since my request, I have had a look at the code and maybe
    find a way as little intrusive as possible: The idea is to
    have a theme called gaim-encryption (or anything smarter)
    and have one icon of a lock for example, then rely the whole
    theme on the default one. lock.png would then be linked to
    the smiley "(CRYPT):" for example and we would prepend it to
    all outgoing encrypted messages. I tried it myself, it seems
    to be working bu I really did the minimum within the source.

    Here is my patch against 2.38 (not sure it looks nice within
    the SF comment box):
    2005-06-11 19:16:19.000000000 +0100
    +++ gaim-encryption-2.38.1/encrypt.c 2005-08-29
    16:27:34.000000000 +0100
    @@ -718,7 +718,7 @@

    static void GE_send_msg_cb(GaimAccount *acct, char *who,
    char **message, void* data) {
    - unsigned char *out_msg, *crypt_msg = 0;
    + unsigned char *out_msg, *crypt_msg = 0, *tmp;
    char *dupname;
    int msgsize;
    const char msg_format[] = "%s: Msg:S%.10s:R%.10s: Len
    @@ -808,6 +808,11 @@
    GE_store_msg(who, acct->gc, *message, &first_out_msg,

    } else { /* We have a key. Encrypt and send. */
    + tmp = g_strconcat("(CRYPT): ", *message, 0);
    + g_free(*message);
    + *message = tmp;
    gaim_debug(GAIM_DEBUG_INFO, "gaim-encryption", "has
    key\n", dupname);
    baggage_size = sprintf(baggage, msg_format, header,
    his_key->digest, 10000, "",
    in /usr/share/pixmaps/gaim/smileys/gaim-encryption, we would
    find the file "theme" starting with:
    Description=Default theme refined for Gaim-Encryption
    Author=Christophe Cachat

    lock.png (CRYPT):
    ../default/smile.png :) :-) (zz)
    ../default/sad.png :( :-(
    ../default/wink.png ;) ;-)
    ../default/tongue.png :-P :-p
    ../default/scream.png =-O =-o
    ../default/kiss.png :-*
    ../default/yell.png >:o >:O

    lock.png (CRYPT):
    ../default/msn_angel.png (a) (A)
    ../default/msn_angry.png :-@ :@
    ../default/msn_bat.gif :-[ :[
    ../default/msn_beer.png (B) (b)
    ../default/msn_bowl.png (||)

    <many more>

    Hope you will find the idea interesting: 4 lines added, one
    temp var, one icon, one external theme file. I have some
    screenshots if you are interested as well as comprehensive
    RPM spec file that builds the theme file from installed
    default theme, not assuming icons are there or not.

    Tell me if you are interested.

    CC <ccharlie2@users.sourceforge.net>