case HELPSW:
snprintf(buf, sizeof(buf), "%s [msgs] [switches] +folder ...", invo_name);
print_help(buf, switches, 1);
case HELPSW:
snprintf(buf, sizeof(buf), "%s [msgs] [switches] +folder ...", invo_name);
print_help(buf, switches, 1);
- adios(NULL, "use -file or msgs, not both");
+ adios(EX_USAGE, NULL, "use -file or msgs, not both");
opnfolds(folders, foldp);
for (i = 0; i < filep; i++)
if (m_file(files[i], folders, foldp, 0))
opnfolds(folders, foldp);
for (i = 0; i < filep; i++)
if (m_file(files[i], folders, foldp, 0))
strncpy(maildir, toabsdir(folder), sizeof(maildir));
if (chdir(maildir) == NOTOK)
strncpy(maildir, toabsdir(folder), sizeof(maildir));
if (chdir(maildir) == NOTOK)
- adios(NULL, "unable to read folder %s", folder);
+ adios(EX_IOERR, NULL, "unable to read folder %s", folder);
/* parse the message range/sequence/name and set SELECTED */
for (msgnum = 0; msgnum < msgs.size; msgnum++)
if (!m_convert(mp, msgs.msgs[msgnum]))
/* parse the message range/sequence/name and set SELECTED */
for (msgnum = 0; msgnum < msgs.size; msgnum++)
if (!m_convert(mp, msgs.msgs[msgnum]))
seq_setprev(mp); /* set the previous-sequence */
/* create folder structures for each destination folder */
seq_setprev(mp); /* set the previous-sequence */
/* create folder structures for each destination folder */
*/
for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
if (is_selected(mp, msgnum)) {
*/
for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
if (is_selected(mp, msgnum)) {
if (m_file(cp, folders, foldp, !linkf))
if (m_file(cp, folders, foldp, !linkf))
create_folder(nmaildir, 0, exit);
if (chdir(nmaildir) == NOTOK)
create_folder(nmaildir, 0, exit);
if (chdir(nmaildir) == NOTOK)
- adios(NULL, "unable to read folder %s", fp->f_name);
+ adios(EX_IOERR, NULL, "unable to read folder %s", fp->f_name);