#30 Encryption status of *ALL* historical messages

open
nobody
4
2005-06-08
2005-04-10
Anonymous
No

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

Discussion

  • Christophe CACHAT

    Logged In: YES
    user_id=287357

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

     
  • Bill Tompkins

    Bill Tompkins - 2005-06-08

    Logged In: YES
    user_id=21203

    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 - 2005-06-08
    • priority: 5 --> 4
     
  • Christophe CACHAT

    Logged In: YES
    user_id=287357

    Hello,

    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):
    ------------------8<--------------------------
    gaim-encryption-2.38.1/encrypt.c.notification
    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
    %d:%s%s";
    @@ -808,6 +808,11 @@
    GE_store_msg(who, acct->gc, *message, &first_out_msg,
    &last_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,
    our_key->digest,
    his_key->digest, 10000, "",
    footer);
    ------------------8<-----------------------
    in /usr/share/pixmaps/gaim/smileys/gaim-encryption, we would
    find the file "theme" starting with:
    ------------------8<-----------------------
    Name=Gaim-Encryption
    Description=Default theme refined for Gaim-Encryption
    Icon=lock.png
    Author=Christophe Cachat

    [default]
    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

    [MSN]
    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>
    ------------------8<-----------------------

    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>

     

Log in to post a comment.