dammit, learn to spell
[citadel.git] / citadel / server / modules / vcard / serv_vcard.c
index af831b78dcf289f85ffab65e9893a09d31566a4e..56451eef941a5a270e6b49a68093693e546e3409 100644 (file)
@@ -195,9 +195,9 @@ int vcard_upload_beforesave(struct CtdlMessage *msg, struct recptypes *recp) {
 
        // Ok, if we got this far, look into the situation further...
 
-       if (CM_IsEmpty(msg, eMesageText)) return(0);
+       if (CM_IsEmpty(msg, eMessageText)) return(0);
 
-       mime_parser(CM_RANGE(msg, eMesageText),
+       mime_parser(CM_RANGE(msg, eMessageText),
                    *vcard_extract_vcard,
                    NULL, NULL,
                    &v,         // user data ptr - put the vcard here
@@ -311,7 +311,7 @@ int vcard_upload_beforesave(struct CtdlMessage *msg, struct recptypes *recp) {
                StrBufAppendBufPlain(buf, HKEY("Content-type: " VCARD_MIME_TYPE "\r\n\r\n"), 0);
                StrBufAppendBufPlain(buf, ser, serlen, 0);
                StrBufAppendBufPlain(buf, HKEY("\r\n"), 0);
-               CM_SetAsFieldSB(msg, eMesageText, &buf);
+               CM_SetAsFieldSB(msg, eMessageText, &buf);
                free(ser);
        }
 
@@ -358,10 +358,10 @@ int vcard_upload_aftersave(struct CtdlMessage *msg, struct recptypes *recp) {
 
        if (!is_UserConf && !is_GAB) return(0);
 
-       if (CM_IsEmpty(msg, eMesageText))
+       if (CM_IsEmpty(msg, eMessageText))
                return 0;
 
-       ptr = msg->cm_fields[eMesageText];
+       ptr = msg->cm_fields[eMessageText];
 
        CC->vcard_updated_by_ldap=0;  /* As this will write LDAP's previous changes, disallow LDAP change auth until next LDAP change. */ 
 
@@ -386,7 +386,7 @@ int vcard_upload_aftersave(struct CtdlMessage *msg, struct recptypes *recp) {
 
                        /* Store our friendly/display name in memory */
                        if (is_MY_UserConf) {
-                               v = vcard_load(msg->cm_fields[eMesageText]);
+                               v = vcard_load(msg->cm_fields[eMessageText]);
                                extract_friendly_name(CC->cs_inet_fn, sizeof CC->cs_inet_fn, v);
                                vcard_free(v);
                        }
@@ -469,7 +469,7 @@ struct vCard *vcard_get_user(struct ctdluser *u) {
        msg = CtdlFetchMessage(VCmsgnum, 1);
        if (msg == NULL) return vcard_new();
 
-       v = vcard_load(msg->cm_fields[eMesageText]);
+       v = vcard_load(msg->cm_fields[eMessageText]);
        CM_Free(msg);
        return v;
 }
@@ -820,7 +820,7 @@ void dvca_callback(long msgnum, void *userdata) {
 
        msg = CtdlFetchMessage(msgnum, 1);
        if (msg == NULL) return;
-       mime_parser(CM_RANGE(msg, eMesageText),
+       mime_parser(CM_RANGE(msg, eMessageText),
                    *dvca_mime_callback,        /* callback function */
                    NULL, NULL,
                    NULL,                       /* user data */
@@ -1020,7 +1020,7 @@ void strip_addresses_already_have(long msgnum, void *userdata) {
 
        msg = CtdlFetchMessage(msgnum, 1);
        if (msg == NULL) return;
-       v = vcard_load(msg->cm_fields[eMesageText]);
+       v = vcard_load(msg->cm_fields[eMessageText]);
        CM_Free(msg);
 
        i = 0;
@@ -1087,7 +1087,7 @@ void store_this_ha(struct addresses_to_be_filed *aptr) {
                                StrBufAppendBufPlain(buf, HKEY("Content-type: " VCARD_MIME_TYPE "\r\n\r\n"), 0);
                                StrBufAppendBufPlain(buf, ser, serlen, 0);
                                StrBufAppendBufPlain(buf, HKEY("\r\n"), 0);
-                               CM_SetAsFieldSB(vmsg, eMesageText, &buf);
+                               CM_SetAsFieldSB(vmsg, eMessageText, &buf);
                                free(ser);
                        }
                        vcard_free(v);