@flu: When I bought my 328 it had about 2 days of factory warranty left. I did have the full history, it was a lease return. I remember that the heads had been replaced, which was a known issue with the 328.
The code was something like: engine (or coolant) did not reach operating temp.