LOG(("YieldSpoolLock was successful."));
PRBool YieldSpoolLock(const char *spoolnameStr){#ifdef MOVEMAIL_DEBUG    fprintf(stderr, "<<Attempting lockfile removal: %s.lock>>",            spoolnameStr);#endif    nsCAutoString lockstr(spoolnameStr);    lockstr.Append(".lock");    nsresult rv;    // Create nsFileSpec and nsILocalFile for the spool.lock file    nsFileSpec locklocspec(lockstr.get());    nsCOMPtr<nsILocalFile> locklocfile;    rv = NS_FileSpecToIFile(&locklocspec, getter_AddRefs(locklocfile));    if (NS_FAILED(rv))        return PR_FALSE;    // Check if the lock file exists    PRBool exists;    rv = locklocfile->Exists(&exists);    if (NS_FAILED(rv))        return PR_FALSE;    // Delete the file if it exists    if (exists) {        rv = locklocfile->Remove(PR_FALSE /* non-recursive */);        if (NS_FAILED(rv))            return PR_FALSE;    }#ifdef MOVEMAIL_DEBUG    fprintf(stderr, " LOCK YIELDING WAS SUCCESSFUL.\n");#endif    // Success.    return PR_TRUE;}