Changeset e75011e for commands.c


Ignore:
Timestamp:
Jun 30, 2002, 1:21:42 PM (22 years ago)
Author:
Erik Nygren <nygren@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:
b68f9cd
Parents:
1403ee9
Message:
Added "reply zaway" which sends a zaway response to the current msg.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r8ee73f8d re75011e  
    9898  OWLCMD_ARGS("reply", owl_command_reply,  OWL_CTX_INTERACTIVE,
    9999              "reply to the current message",
    100               "reply [-e] [ sender | all ]",
     100              "reply [-e] [ sender | all | zaway ]",
    101101              "If -e is specified, the zwrite command line is presented to\n"
    102102              "allow editing.\n\n"
     
    104104              "If 'all' or no args are specified, reply publically to the\n"
    105105              "same class/instance for non-personal messages and to the\n"
    106               "sender for personal messages.\n"),
     106              "sender for personal messages.\n\n"
     107              "If 'zaway' is specified, replies with a zaway message.\n\n"),
    107108
    108109  OWLCMD_ARGS("set", owl_command_set, OWL_CTX_ANY,
     
    11271128  if ((argc==1) || (argc==2 && !strcmp(argv[1], "all"))) {   
    11281129    owl_function_reply(0, !edit);
    1129   } else if ((argc==1) || (argc==2 && !strcmp(argv[1], "sender"))) {
     1130  } else if (argc==2 && !strcmp(argv[1], "sender")) {
    11301131    owl_function_reply(1, !edit);
     1132  } else if (argc==2 && !strcmp(argv[1], "zaway")) {
     1133    owl_message *m;
     1134    owl_view    *v;
     1135    v = owl_global_get_current_view(&g);   
     1136    m = owl_view_get_element(v, owl_global_get_curmsg(&g));
     1137    if (m) owl_zephyr_zaway(m);
    11311138  } else {
    11321139    owl_function_makemsg("Invalid arguments to the reply command.");
Note: See TracChangeset for help on using the changeset viewer.