I found that last year when we dug out our compost and repotted our rather pathetic lemon tree and not so bad olive tree which are in pots, we had tomato plants sprouting from the compost!
Tomato seeds obviously like to sit in a composter for a year or so.


