Combine 2 cups ground poppy seeds and 1 ¼ cup milk in a medium saucepan.
Bring to a boil over medium heat, uncovered, stirring occasionally so the milk and poppy seeds do not burn.
Stir in ½ cup granulated sugar, 2 Tablespoons jam, ¼ teaspoon ground cinnamon, and ⅛ teaspoon ground cloves.
Reduce the heat to medium-low and cook, stirring often, until the sugar dissolves and the poppy seeds soften, about 10 minutes.
If the seeds absorb all the milk, add a splash more; as it cooks, the liquid evaporates and the filling thickens.
Stir in 1 Tablespoon rum.
Transfer the filling to a bowl and let it cool to room temperature before using.
