Changeset 9ceee9d for message.c


Ignore:
Timestamp:
Jul 4, 2003, 12:26:03 AM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3ba3af0
Parents:
5b85d19
Message:
There is now a zcrypt command
Replies to zcrypted messages now work
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r09489b89 r9ceee9d  
    699699
    700700    out=owl_malloc(strlen(owl_message_get_body(m))*16+20);
    701     ret=zcrypt_decrypt(out, owl_message_get_body(m), owl_message_get_class(m), owl_message_get_instance(m));
     701    ret=owl_zcrypt_decrypt(out, owl_message_get_body(m), owl_message_get_class(m), owl_message_get_instance(m));
    702702    if (ret==0) {
    703703      owl_message_set_body(m, out);
     
    743743  owl_message_set_class(m, owl_zwrite_get_class(&z));
    744744  owl_message_set_instance(m, owl_zwrite_get_instance(&z));
    745   owl_message_set_recipient(m,
    746                             long_zuser(owl_zwrite_get_recip_n(&z, 0))); /* only gets the first user, must fix */
     745  if (owl_zwrite_get_numrecips(&z)>0) {
     746    owl_message_set_recipient(m,
     747                              long_zuser(owl_zwrite_get_recip_n(&z, 0))); /* only gets the first user, must fix */
     748  }
    747749  owl_message_set_opcode(m, owl_zwrite_get_opcode(&z));
    748750  owl_message_set_realm(m, owl_zwrite_get_realm(&z)); /* also a hack, but not here */
Note: See TracChangeset for help on using the changeset viewer.