*/
strcpy(uuid, "");
p = msg->cm_fields[eMesageText];
- a = strlen(p);
+ a = msg->cm_lengths[eMesageText];
while (--a > 0) {
if (!strncasecmp(p, "X-KOrg-Note-Id: ", 16)) { /* Found it */
safestrncpy(uuid, p + 16, sizeof(uuid));
if ((v->summary) && (!IsEmptyStr(v->summary))) {
CM_SetField(msg, eMsgSubject, v->summary, strlen(v->summary));
- if (strlen(msg->cm_fields[eMsgSubject]) > 72) {
+ if (msg->cm_lengths[eMsgSubject] > 72) {
strcpy(&msg->cm_fields[eMsgSubject][68], "...");
CM_CutFieldAt(msg, eMsgSubject, 72);
}