I've just eaten some marmalade which has been in the fridge for at least six months (previously opened). I thought it was safe if you scrape the manky bit off the top but then i looked at the jar and it says to use it within 3 weeks.
I always thought jam lasted much longer than this.