[jan] Fix stripping attachments in dynamic view (aarno.sandvik@helsinki.fi, Bug #11959).