*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* option is specified, only the last path name component of each field
* body is output. The entire field body is output if the -text option
* is used; the contents of the -text argument are ignored. If the -list
* option is specified, only the last path name component of each field
* body is output. The entire field body is output if the -text option
* is used; the contents of the -text argument are ignored. If the -list
* below, each line is numbered starting with 1. A tab separates the
* number from the field body.
*
* below, each line is numbered starting with 1. A tab separates the
* number from the field body.
*
- unsigned char *comp = NULL;
- char *text = NULL, *folder = NULL, buf[BUFSIZ];
+ char *comp = NULL, *text = NULL, *folder = NULL, buf[BUFSIZ];
char **argp, **arguments;
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
char **argp, **arguments;
struct msgs_array msgs = { 0, 0, NULL };
struct msgs *mp;
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
if (*cp == '+' || *cp == '@') {
if (folder)
adios (NULL, "only one folder at a time!");
if (*cp == '+' || *cp == '@') {
if (folder)
adios (NULL, "only one folder at a time!");
- draft = getcpy(m_draft(folder, (char *)0, 1, &isdf));
+ draft = getcpy(m_draft(folder, NULL, 1, &isdf));
adios (maildir, "unable to change directory to");
/* read folder and create message structure */
adios (maildir, "unable to change directory to");
/* read folder and create message structure */
adios (NULL, "unable to read folder %s", folder);
/* check for empty folder */
adios (NULL, "unable to read folder %s", folder);
/* check for empty folder */
adios (NULL, "null component name");
if (**ap == '-')
adios (NULL, "invalid component name %s", *ap);
adios (NULL, "null component name");
if (**ap == '-')
adios (NULL, "invalid component name %s", *ap);
adios (NULL, "too large component name %s", *ap);
for (cp = *ap; *cp; cp++)
adios (NULL, "too large component name %s", *ap);
for (cp = *ap; *cp; cp++)