+
+/*
+ * Given a 'struct blogpost' containing a msgnum, populate the id
+ * and refs fields by fetching them from the Citadel server
+ */
+void blogview_learn_thread_references(struct blogpost *bp)
+{
+ StrBuf *Buf;
+ Buf = NewStrBuf();
+ serv_printf("MSG0 %ld|1", bp->msgnum); /* top level citadel headers only */
+ StrBuf_ServGetln(Buf);
+ if (GetServerStatus(Buf, NULL) == 1) {
+ while (StrBuf_ServGetln(Buf), strcmp(ChrPtr(Buf), "000")) {
+ if (!strncasecmp(ChrPtr(Buf), "msgn=", 5)) {
+ bp->id = NewStrBufDup(Buf);
+ StrBufCutLeft(bp->id, 5);
+ }
+ else if (!strncasecmp(ChrPtr(Buf), "wefw=", 5)) {
+ bp->refs = NewStrBufDup(Buf);
+ StrBufCutLeft(bp->refs, 5);
+ }
+ }
+ }
+ FreeStrBuf(&Buf);
+}
+
+
+
+
+int blogview_render(SharedMessageStatus *Stat, void **ViewSpecific, long oper)