The invention relates to a filter with a gasket applied in line shape at an edge of the filter. The invention suggests to apply the gasket with a nozzle which facilitates a gasket that is thinner and/or whose protrusion beyond the filter is lower than this would be feasible for example through injection molding.