X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fserv_netmail.c;h=b84c5dea2c941224fb7e31557495047521a54b6f;hb=1f515ca535f1e25cd0e95aa275796d0915505c75;hp=733a6ae37db66ac141972ae6dd47b3b33a994af1;hpb=ebef395a9cb568444adc0ed4d8239b58db4d6420;p=citadel.git diff --git a/citadel/modules/network/serv_netmail.c b/citadel/modules/network/serv_netmail.c index 733a6ae37..b84c5dea2 100644 --- a/citadel/modules/network/serv_netmail.c +++ b/citadel/modules/network/serv_netmail.c @@ -117,6 +117,12 @@ void aggregate_recipients(StrBuf **recps, RoomNetCfg Which, OneRoomNetCfg *OneRN StrBufAppendBufPlain(*recps, HKEY(","), i); } StrBufAppendBuf(*recps, nptr->Value[0], 0); + if (Which == ignet_push_share) + { + StrBufAppendBufPlain(*recps, HKEY(","), 0); + StrBufAppendBuf(*recps, nptr->Value[1], 0); + + } } } @@ -322,7 +328,6 @@ void network_process_list(SpoolControl *sc, struct CtdlMessage *omsg, long *dele CtdlMsgSetCM_Fields(msg, 'K', SKEY(sc->Users[roommailalias])); - CtdlMsgSetCM_Fields(msg, 'F', SKEY(sc->Users[roommailalias])); /* if there is no other recipient, Set the recipient * of the list message to the email address of the @@ -527,7 +532,7 @@ void network_process_ignetpush(SpoolControl *sc, struct CtdlMessage *omsg, long } QN_syslog(LOG_INFO, - "%sSending to %s\n", + " %sSending to %s\n", (send)?"":"Not ", ChrPtr(Recipient)); } @@ -601,6 +606,7 @@ void network_process_ignetpush(SpoolControl *sc, struct CtdlMessage *omsg, long void network_spool_msg(long msgnum, void *userdata) { + struct CitContext *CCC = CC; struct CtdlMessage *msg = NULL; long delete_after_send = 0; /* Set to 1 to delete after spooling */ SpoolControl *sc; @@ -609,6 +615,13 @@ void network_spool_msg(long msgnum, msg = CtdlFetchMessage(msgnum, 1); + if (msg == NULL) + { + QN_syslog(LOG_ERR, + "failed to load Message <%ld> from disk\n", + msgnum); + return; + } network_process_list(sc, msg, &delete_after_send); network_process_digest(sc, msg, &delete_after_send); network_process_participate(sc, msg, &delete_after_send);