Mailq: add a special subject to the mailq messages. the client can filter for it...
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 6 Feb 2012 23:01:09 +0000 (00:01 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 6 Feb 2012 23:01:09 +0000 (00:01 +0100)
citadel/msgbase.c

index f49f1cc649433ff324fe2801cb6863259277e455..cedd10984727755f5bca5f225c09dab678662102 100644 (file)
@@ -3258,6 +3258,7 @@ long CtdlSubmitMsg(struct CtdlMessage *msg,       /* message to save */
                                        imsg->cm_magic = CTDLMESSAGE_MAGIC;
                                        imsg->cm_anon_type = MES_NORMAL;
                                        imsg->cm_format_type = FMT_RFC822;
+                                       imsg->cm_fields['U'] = strdup("QMSG");
                                        imsg->cm_fields['A'] = strdup("Citadel");
                                        imsg->cm_fields['J'] = strdup("do not journal");
                                        imsg->cm_fields['M'] = instr;   /* imsg owns this memory now */
@@ -3366,6 +3367,7 @@ long CtdlSubmitMsg(struct CtdlMessage *msg,       /* message to save */
                imsg->cm_magic = CTDLMESSAGE_MAGIC;
                imsg->cm_anon_type = MES_NORMAL;
                imsg->cm_format_type = FMT_RFC822;
+               imsg->cm_fields['U'] = strdup("QMSG");
                imsg->cm_fields['A'] = strdup("Citadel");
                imsg->cm_fields['J'] = strdup("do not journal");
                imsg->cm_fields['M'] = instr;   /* imsg owns this memory now */