4 * ajax-powered autocompletion...
10 * Recipient autocompletion results
12 void recp_autocomplete(char *partial
) {
16 output_headers(0, 0, 0, 0, 0, 0);
18 hprintf("Content-type: text/html\r\n"
20 "Connection: close\r\n"
21 "Pragma: no-cache\r\n"
22 "Cache-Control: no-store\r\n"
30 serv_printf("AUTO %s", partial
);
31 serv_getln(buf
, sizeof buf
);
33 while(serv_getln(buf
, sizeof buf
), strcmp(buf
, "000")) {
34 extract_token(name
, buf
, 0, '|', sizeof name
);
48 void _recp_autocomplete(void) {recp_autocomplete(bstr("recp"));}
49 void _cc_autocomplete(void) {recp_autocomplete(bstr("cc"));}
50 void _bcc_autocomplete(void) {recp_autocomplete(bstr("bcc"));}
54 InitModule_AUTO_COMPLETE
57 WebcitAddUrlHandler(HKEY("recp_autocomplete"), _recp_autocomplete
, 0);
58 WebcitAddUrlHandler(HKEY("cc_autocomplete"), _cc_autocomplete
, 0);
59 WebcitAddUrlHandler(HKEY("bcc_autocomplete"), _bcc_autocomplete
, 0);