X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Finstmsg%2Fserv_instmsg.c;fp=citadel%2Fmodules%2Finstmsg%2Fserv_instmsg.c;h=cb4101a9744f79aac11cd0a87cb8d636e4550812;hb=951fbe7c1ee0b3554af22d6ae0d1d51c1642ae0f;hp=d84ce6244070503ba26030954d58b9410ab7ef37;hpb=02226afa2dbdc2f08b1b10de890d75f35ca0dee0;p=citadel.git diff --git a/citadel/modules/instmsg/serv_instmsg.c b/citadel/modules/instmsg/serv_instmsg.c index d84ce6244..cb4101a97 100644 --- a/citadel/modules/instmsg/serv_instmsg.c +++ b/citadel/modules/instmsg/serv_instmsg.c @@ -459,16 +459,16 @@ void flush_individual_conversation(struct imlog *im) { msg->cm_anon_type = MES_NORMAL; msg->cm_format_type = FMT_RFC822; if (!IsEmptyStr(im->usernames[0])) { - msg->cm_fields['A'] = strdup(im->usernames[0]); + msg->cm_fields[eAuthor] = strdup(im->usernames[0]); } else { - msg->cm_fields['A'] = strdup("Citadel"); + msg->cm_fields[eAuthor] = strdup("Citadel"); } if (!IsEmptyStr(im->usernames[1])) { - msg->cm_fields['R'] = strdup(im->usernames[1]); + msg->cm_fields[eRecipient] = strdup(im->usernames[1]); } - msg->cm_fields['O'] = strdup(PAGELOGROOM); - msg->cm_fields['N'] = strdup(NODENAME); - msg->cm_fields['M'] = SmashStrBuf(&im->conversation); /* we own this memory now */ + msg->cm_fields[eOriginalRoom] = strdup(PAGELOGROOM); + msg->cm_fields[eNodeName] = strdup(NODENAME); + msg->cm_fields[eMesageText] = SmashStrBuf(&im->conversation); /* we own this memory now */ /* Start with usernums[1] because it's guaranteed to be higher than usernums[0], * so if there's only one party, usernums[0] will be zero but usernums[1] won't.