+
+ /* Modern clients are using vNote format. Check for one... */
+
+ mime_parser(CM_RANGE(msg, eMesageText),
+ *notes_extract_vnote,
+ NULL, NULL,
+ &v, /* user data ptr - put the vnote here */
+ 0
+ );
+
+ if (v == NULL) return(0); /* no vNotes were found in this message */
+
+ /* Set the message EUID to the vNote UID */
+
+ if ((v->uid) && (!IsEmptyStr(v->uid))) {
+ syslog(LOG_DEBUG, "UID of vNote is: %s\n", v->uid);
+ CM_SetField(msg, eExclusiveID, v->uid, strlen(v->uid));
+ }
+
+ /* Set the message Subject to the vNote Summary */
+
+ if ((v->summary) && (!IsEmptyStr(v->summary))) {
+ CM_SetField(msg, eMsgSubject, v->summary, strlen(v->summary));
+
+ if (msg->cm_lengths[eMsgSubject] > 72) {
+ strcpy(&msg->cm_fields[eMsgSubject][68], "...");
+ CM_CutFieldAt(msg, eMsgSubject, 72);
+ }
+ }
+
+ vnote_free(v);