} else if (name.equals(F_actionAttachDone)) { mIsAttachDone = true; } else if (name.equals(F_actionAttachCancel)) { mIsAttachCancel = true; } else if (name.equals(F_actionAttachAdd)) { mIsAttachAdd = true;
    private ZMessageComposeBean getComposeBean(List<FileItem> items) {        ZMessageComposeBean compose = new ZMessageComposeBean();        for (FileItem item : items) {            if (!item.isFormField()) {                // deal with attachment uploads later                if (item.getFieldName().equals(F_fileUpload) && item.getName() != null && item.getName().length() > 0) {                    compose.addFileItem(item);                }            } else {                String name = item.getFieldName();                String value;                try { value = item.getString("utf-8"); } catch (UnsupportedEncodingException e) { value = item.getString();}                if (name.equals(F_to)) {                    compose.setTo(value);                } else if (name.equals(F_cc)) {                    compose.setCc(value);                } else if (name.equals(F_bcc)) {                    compose.setBcc(value);                } else if (name.equals(F_subject)) {                    compose.setSubject(value);                } else if (name.equals(F_messageAttachment)) {                    int i = value.indexOf(':');                    String id = i == -1 ? value : value.substring(0, i);                    String subject = i == -1 ? null : value.substring(i+1);                    compose.getMessageAttachments().add(new MessageAttachment(id, subject));                } else if (name.equals(F_originalAttachment)) {                    compose.setCheckedAttachmentName(value);                } else if (name.equals(F_body)) {                    compose.setContent(value);                } else if (name.equals(F_replyto)) {                    compose.setReplyTo(value);                } else if (name.equals(F_from)) {                    compose.setFrom(value);                } else if (name.equals(F_inreplyto)) {                    compose.setInReplyTo(value);                } else if (name.equals(F_messageid)) {                    compose.setMessageId(value);                } else if (name.equals(F_draftid)) {                    compose.setDraftId(value);                } else if (name.equals(F_actionCancel)) {                    mIsCancel = true;                } else if (name.equals(F_actionSend)) {                    mIsSend = true;                } else if (name.equals(F_actionDraft)) {                    mIsDraft = true;                }            }        }        return compose;    }