main (int argc, char **argv)
{
int inplace = 0, quietsw = 0, verbosw = 0;
main (int argc, char **argv)
{
int inplace = 0, quietsw = 0, verbosw = 0;
char *cp, *maildir, *folder = NULL, buf[BUFSIZ];
char *cp, *maildir, *folder = NULL, buf[BUFSIZ];
- char **argp, **arguments, *msgs[MAXARGS];
+ char **argp, **arguments;
+ struct msgs_array msgs = { 0, 0, NULL };
}
}
if (!context_find ("path"))
free (path ("./", TFOLDER));
}
}
if (!context_find ("path"))
free (path ("./", TFOLDER));
adios (NULL, "no messages in %s", folder);
/* parse all the message ranges/sequences and set SELECTED */
adios (NULL, "no messages in %s", folder);
/* parse all the message ranges/sequences and set SELECTED */
- for (msgnum = 0; msgnum < msgp; msgnum++)
- if (!m_convert (mp, msgs[msgnum]))
+ for (msgnum = 0; msgnum < msgs.size; msgnum++)
+ if (!m_convert (mp, msgs.msgs[msgnum]))