Finely chop the onion and fry in olive oil until tender. Peel the skin off the tomatoes and mash them with a fork. Add to the onion along with the juice from the jar.
Add all the other ingredients (pre-squeeze the juice from half a lime), mix, bring to a boil and let cook for another 10-15 minutes. Remove cinnamon sticks, lime and garlic.