Automatically unflag expired documents