if (!strcmp(buf, "000")) {
wprintf("<i>");
wprintf(_("unexpected end of message"));
- wprintf("</i><br /><br />\n");
+ wprintf(" (1)</i><br /><br />\n");
wprintf("</span>\n");
return;
}
if (!strcmp(buf, "000")) {
wprintf("<i>");
wprintf(_("unexpected end of message"));
- wprintf("</i><br /><br />\n");
+ wprintf(" (2)</i><br /><br />\n");
goto ENDBODY;
}
if (!strncasecmp(buf, "X-Citadel-MSG4-Partnum:", 23)) {
while (serv_getln(buf, sizeof buf), strcasecmp(buf, "text")) {
if (!strcmp(buf, "000")) {
- wprintf(_("unexpected end of message"));
+ wprintf("%s (3)", _("unexpected end of message"));
return;
}
if (include_headers) {
strcpy(mime_content_type, "text/plain");
while (serv_getln(buf, sizeof buf), (strlen(buf) > 0)) {
if (!strcmp(buf, "000")) {
- wprintf(_("unexpected end of message"));
+ wprintf("%s (4)", _("unexpected end of message"));
goto ENDBODY;
}
if (!strncasecmp(buf, "Content-type: ", 14)) {
wprintf("<div class=\"auto_complete\" id=\"recp_name_choices\"></div>");
/** Pop open an address book -- begin **/
-
wprintf(
- "<a href=\"javascript:PopOpenAddressBook();\" title=\"%s\">"
- "<img border=0 width=16 height=16 src=\"static/viewcontacts_16x.gif\">"
+ " <a href=\"javascript:PopOpenAddressBook('recp_id');\" title=\"%s\">"
+ "<img align=middle border=0 width=16 height=16 src=\"static/viewcontacts_16x.gif\">"
"</a>", _("Contacts")
);
-
/** Pop open an address book -- end **/
wprintf("</td><td></td></tr>\n");
escputs(bstr("cc"));
wprintf("\" size=50 maxlength=1000 />");
wprintf("<div class=\"auto_complete\" id=\"cc_name_choices\"></div>");
+
+ /** Pop open an address book -- begin **/
+ wprintf(
+ " <a href=\"javascript:PopOpenAddressBook('cc_id');\" title=\"%s\">"
+ "<img align=middle border=0 width=16 height=16 src=\"static/viewcontacts_16x.gif\">"
+ "</a>", _("Contacts")
+ );
+ /** Pop open an address book -- end **/
+
wprintf("</td><td></td></tr>\n");
wprintf("<tr><td>");
escputs(bstr("bcc"));
wprintf("\" size=50 maxlength=1000 />");
wprintf("<div class=\"auto_complete\" id=\"bcc_name_choices\"></div>");
+
+ /** Pop open an address book -- begin **/
+ wprintf(
+ " <a href=\"javascript:PopOpenAddressBook('bcc_id');\" title=\"%s\">"
+ "<img align=middle border=0 width=16 height=16 src=\"static/viewcontacts_16x.gif\">"
+ "</a>", _("Contacts")
+ );
+ /** Pop open an address book -- end **/
wprintf("</td><td></td></tr>\n");
/** Initialize the autocomplete ajax helpers (found in wclib.js) */
wprintf("<tr><td>");
wprintf("<font size=-1>");
- wprintf(_("Subject (optional):"));
+ if (recipient_required) {
+ wprintf(_("Subject:"));
+ }
+ else {
+ wprintf(_("Subject (optional):"));
+ }
wprintf("</font>");
wprintf("</td><td>"
"<input type=\"text\" name=\"subject\" value=\"");
wprintf("</form>\n");
wprintf("</td></tr></table></div>\n");
- wprintf("</div>\n"); /* End of 'content' div */
-
- /* Open a new div, hidden initially, for address book popups.
- * FIXME put this in its own function so we can use it from the
- * calendar too.
- */
- wprintf("<div id=\"address_book_popup\" style=\"display:none;\">");
- wprintf("<div id=\"address_book_popup_container_div\">");
- wprintf("<div id=\"address_book_popup_middle_div\"></div>");
- wprintf("<div id=\"address_book_inner_div\"></div>");
- wprintf("</div>");
- /* The 'address_book_popup' div will be closed by wDumpContent() */
-DONE: wDumpContent(1);
+DONE: address_book_popup();
+ wDumpContent(1);
}