Changeset 1958790


Ignore:
Timestamp:
Oct 6, 2017, 10:25:28 PM (7 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
f4287ad
Parents:
d400776
git-author:
Anders Kaseorg <andersk@mit.edu> (03/16/16 22:46:35)
git-committer:
Anders Kaseorg <andersk@mit.edu> (10/06/17 22:25:28)
Message:
zephyr_zwrite: Use owl_function_zwrite

This adds outgoing personals to the message list, and supports zcrypt,
all for the low low price of −4 LoC.  (I’m not sure why anyone would
use this interface, though, given the existence of
BarnOwl::zwrite('andersk', '-m', 'message').)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zwrite.c

    r7dcef03 r1958790  
    270270  rv = owl_zwrite_create_from_line(&z, cmd);
    271271  if (rv != 0) return rv;
    272   if (!owl_zwrite_is_message_set(&z)) {
    273     owl_zwrite_set_message(&z, msg);
    274   }
    275   owl_zwrite_populate_zsig(&z);
    276   owl_zwrite_send_message(&z);
     272  owl_function_zwrite(&z, msg);
    277273  owl_zwrite_cleanup(&z);
    278274  return(0);
Note: See TracChangeset for help on using the changeset viewer.