Thanks Elizabeth. Not really what I mean by open source, but interesting.
I have already found vtiger though. What I was asked for was sales lead management because the head of sales spends too much time running spreadsheets. We finally had a look at what was going on in there and technically it turns out to be a trivial problem, one I can solve with code modules I've already written for production systems. That's what happens when users develop their own stuff over years - they think it must be a major project to replace with real software. He can keep his reporting spreadsheets, I'll just point them all to a real database which captures all the data automatically.
For anyone interested, vtiger looks great. Doubt we'll be using it for a while though, another case of not invented here.