X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmessages.c;h=0d5b6214d7f549e2d88e9d4f76710d2a85f1a407;hb=e6bf3fbb861de99b2dceeb4578eddc46c3f8a856;hp=dd739fc5650092de222e312959b4527d2427f3fa;hpb=08f454c366425823606ea2f566d336b67af31996;p=citadel.git diff --git a/webcit/messages.c b/webcit/messages.c index dd739fc56..0d5b6214d 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -811,8 +811,15 @@ void readloop(long oper, eCustomRoomRenderer ForceRenderer) WCC->num_displayed = 0; /* Put some helpful data in vars for mailsummary_json */ - svputlong("READLOOP:TOTALMSGS", Stat.nummsgs); - svputlong("READLOOP:STARTMSG", Stat.startmsg); + { + StrBuf *Foo; + + Foo = NewStrBuf (); + StrBufPrintf(Foo, "%ld", Stat.nummsgs); + PutBstr(HKEY("__READLOOP:TOTALMSGS"), NewStrBufDup(Foo)); + StrBufPrintf(Foo, "%ld", Stat.startmsg); + PutBstr(HKEY("__READLOOP:STARTMSG"), Foo); + } /* * iterate over each message. if we need to load an attachment, do it here. @@ -1385,8 +1392,10 @@ void display_enter(void) return; } } - svputlong("RCPTREQUIRED", recipient_required); - svputlong("SUBJREQUIRED", recipient_required || subject_required); + if (recipient_required) + PutBstr(HKEY("__RCPTREQUIRED"), NewStrBufPlain(HKEY("1"))); + if (recipient_required || subject_required) + PutBstr(HKEY("__SUBJREQUIRED"), NewStrBufPlain(HKEY("1"))); begin_burst(); output_headers(1, 0, 0, 0, 1, 0);