@Override protected synchronized void updateHeaders() throws MessagingException { if (ZPARSER) { for (int i = 0; i < getCount(); i++) { ((JavaMailMimeBodyPart) getBodyPart(i)).updateHeaders(); } } else { super.updateHeaders(); } }