uid);
- wprintf("class=\"stickynote_outer\" ");
- wprintf("style=\"");
- wprintf("left: %dpx; ", v->pos_left);
- wprintf("top: %dpx; ", v->pos_top);
- wprintf("width: %dpx; ", v->pos_width);
- wprintf("height: %dpx; ", v->pos_height);
- wprintf("background-color: #%02X%02X%02X ", v->color_red, v->color_green, v->color_blue);
- wprintf("\">");
+void tmpl_vcard_put_posleft(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%d", v->pos_left);
+}
- /* begin title bar */
+void tmpl_vcard_put_postop(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%d", v->pos_top);
+}
+
+void tmpl_vcard_put_poswidth(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%d", v->pos_width);
+}
+
+void tmpl_vcard_put_posheight(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%d", v->pos_height);
+}
- wprintf("
uid);
- wprintf("class=\"stickynote_titlebar\" ");
- wprintf("onMouseDown=\"NotesDragMouseDown(event,'%s')\" ", v->uid);
- wprintf("style=\"");
- wprintf("background-color: #%02X%02X%02X ", v->color_red/2, v->color_green/2, v->color_blue/2);
- wprintf("\">");
+void tmpl_vcard_put_posheight2(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%d", (v->pos_height / 16) - 5);
+}
- wprintf("
");
- wprintf(" | "); // nothing in the title bar, it's just for dragging
+void tmpl_vcard_put_width2(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%d", (v->pos_width / 9) - 1);
+}
- wprintf("");
- wprintf(" |
");
+void tmpl_vcard_put_color(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%02X%02X%02X", v->color_red, v->color_green, v->color_blue);
+}
- wprintf("
\n");
+void tmpl_vcard_put_bgcolor(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendPrintf(Target, "%02X%02X%02X", v->color_red/2, v->color_green/2, v->color_blue/2);
+}
- escputs(v->body);
+void tmpl_vcard_put_message(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrEscAppend(Target, NULL, v->body, 0, 0); /*TODO?*/
+}
- wprintf("
\n");
+void tmpl_vcard_put_uid(StrBuf *Target, WCTemplputParams *TP)
+{
+ struct vnote *v = (struct vnote *) CTX;
+ StrBufAppendBufPlain(Target, v->uid, -1, 0);
}
-/*
- * display sticky notes
- *
- * msgnum = Message number on the local server of the note to be displayed
- */
-void display_note(long msgnum, int unread) {
- char buf[1024];
- char mime_partnum[256];
- char mime_filename[256];
- char mime_content_type[256];
- char mime_disposition[256];
- int mime_length;
- char relevant_partnum[256];
- char *relevant_source = NULL;
+int notes_GetParamsGetServerCall(SharedMessageStatus *Stat,
+ void **ViewSpecific,
+ long oper,
+ char *cmd,
+ long len,
+ char *filter,
+ long flen)
+{
+ strcpy(cmd, "MSGS ALL");
+ Stat->maxmsgs = 32767;
+ wc_printf("