]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/msgbase.c
biff was here
[citadel.git] / citadel / server / msgbase.c
index 679390eea01aa753e6e44e8cf3cb22690190d85f..bf24b4148946299ca9c3cce4dcb05930d281671e 100644 (file)
@@ -2803,9 +2803,7 @@ long CtdlSubmitMsg(struct CtdlMessage *msg,       /* message to save */
                
        CM_SetFieldLONG(msg, eVltMsgNum, newmsgid);
 
-       /* If this is private, local mail, make a copy in the
-        * recipient's mailbox and bump the reference count.
-        */
+       // If this is private, local mail, make a copy in the recipient's mailbox and bump the reference count.
        if ((recps != NULL) && (recps->num_local > 0)) {
                char *pch;
                int ntokens;
@@ -2819,7 +2817,7 @@ long CtdlSubmitMsg(struct CtdlMessage *msg,       /* message to save */
                        if (CtdlGetUser(&userbuf, recipient) == 0) {
                                CtdlMailboxName(actual_rm, sizeof actual_rm, &userbuf, MAILROOM);
                                CtdlSaveMsgPointerInRoom(actual_rm, newmsgid, 0, msg);
-                               CtdlBumpNewMailCounter(userbuf.usernum);
+                               CtdlBumpNewMailCounter(userbuf.usernum);        // if this user is logged in, tell them they have new mail.
                                PerformMessageHooks(msg, recps, EVT_AFTERUSRMBOXSAVE);
                        }
                        else {