rely on the maildir's existence with "SyncState *"
now that we open the box first, we know that it will exist at this point.
This commit is contained in:
parent
3169c59e10
commit
e5d323cc47
|
@ -621,7 +621,6 @@ box_selected( int sts, void *aux )
|
||||||
free( cmname );
|
free( cmname );
|
||||||
}
|
}
|
||||||
free( csname );
|
free( csname );
|
||||||
}
|
|
||||||
if (!(s = strrchr( svars->dname, '/' ))) {
|
if (!(s = strrchr( svars->dname, '/' ))) {
|
||||||
error( "Error: invalid SyncState '%s'\n", svars->dname );
|
error( "Error: invalid SyncState '%s'\n", svars->dname );
|
||||||
goto sbail;
|
goto sbail;
|
||||||
|
@ -632,6 +631,7 @@ box_selected( int sts, void *aux )
|
||||||
goto sbail;
|
goto sbail;
|
||||||
}
|
}
|
||||||
*s = '/';
|
*s = '/';
|
||||||
|
}
|
||||||
nfasprintf( &svars->jname, "%s.journal", svars->dname );
|
nfasprintf( &svars->jname, "%s.journal", svars->dname );
|
||||||
nfasprintf( &svars->nname, "%s.new", svars->dname );
|
nfasprintf( &svars->nname, "%s.new", svars->dname );
|
||||||
nfasprintf( &svars->lname, "%s.lock", svars->dname );
|
nfasprintf( &svars->lname, "%s.lock", svars->dname );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user