Changeset 2adaf1d for commands.c


Ignore:
Timestamp:
Oct 11, 2002, 3:44:22 PM (22 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:
b45293f
Parents:
88736cb
Message:
Added the dump command
removed old zlog functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r486688f r2adaf1d  
    169169              "and displays them.\n"),
    170170
     171  OWLCMD_ARGS("dump", owl_command_dump, OWL_CTX_ANY,
     172              "dump messages to a file",
     173              "dump <filename>",
     174              "Dump messages in current view to the named file."),
     175
    171176  OWLCMD_ARGS("smartzpunt", owl_command_smartzpunt, OWL_CTX_INTERACTIVE,
    172177              "creates a zpunt based on the current message",
     
    779784  sprintf(buff, "Owl version %s", OWL_VERSION_STRING);
    780785  owl_function_makemsg(buff);
     786}
     787
     788char *owl_command_dump(int argc, char **argv, char *buff) {
     789  if (argc!=2) {
     790    owl_function_makemsg("usage: dump <filename>");
     791    return(NULL);
     792  }
     793
     794  owl_function_dump(argv[1]);
     795  return(NULL);
    781796}
    782797
Note: See TracChangeset for help on using the changeset viewer.