/*
** Scan the folders
*/
+ /*
+ ** change directory to base of nmh directory for
+ ** crawl_folders
+ */
+ if (chdir(nmhdir) == NOTOK) {
+ adios(EX_OSERR, nmhdir, "unable to change directory to");
+ }
if (all || ftotal > 0) {
/*
** If no folder is given, do them all
*/
- /*
- ** change directory to base of nmh directory for
- ** crawl_folders
- */
- if (chdir(nmhdir) == NOTOK)
- adios(EX_OSERR, nmhdir, "unable to change directory to");
if (!argfolder) {
if (msg)
admonish(NULL, "no folder given for message %s", msg);
{
int atrlen;
char atrcur[BUFSIZ];
- register struct node *np;
+ struct node *np;
snprintf(atrcur, sizeof(atrcur), "atr-%s-", seq_cur);
atrlen = strlen(atrcur);