set the processing flag when attachments are being processed