use an Enum for the cm_fields vector instead of nameless chars
[citadel.git] / citadel / modules / dspam / serv_dspam.c
index 86e8b30b0539b4b0b9c4dd3cc4a87f40884a3214..28a9a8d742804f510ced72809e1986581d768237 100644 (file)
@@ -168,8 +168,8 @@ void dspam_do_msg(long msgnum, void *userdata)
        {
 /* Copy to a safe place */
 
-               msg->cm_fields['G'] = malloc (CTX->signature->length * 2);
-               CtdlEncodeBase64(msg->cm_fields['G'], CTX->signature->data, CTX->signature->length, 0);
+               msg->cm_fields[eErrorMsg] = malloc (CTX->signature->length * 2);
+               CtdlEncodeBase64(msg->cm_fields[eErrorMsg], CTX->signature->data, CTX->signature->length, 0);
        }
        free(msgtext);