]> code.citadel.org Git - citadel.git/blobdiff - webcit/pushemail.c
* add new 'Context' Parameter to the template call
[citadel.git] / webcit / pushemail.c
index e67c04b47e023364197743554385d586c89d8862..d4e06bed52e2fd450b583fd39c24d341369fc226 100644 (file)
@@ -62,10 +62,10 @@ void display_pushemail(void) {
        serv_printf("GOTO %s", WC->wc_roomname);
        serv_getln(buf, sizeof  buf);
        }
-output_headers(1, 1, 2, 0, 0, 0);
-do_template("pushemail");
+       output_headers(1, 1, 2, 0, 0, 0);
+       do_template("pushemail", NULL);
 //do_template("endbox");
-wDumpContent(1);
+       wDumpContent(1);
 }
 
 void save_pushemail(void) {
@@ -111,3 +111,11 @@ void save_pushemail(void) {
        serv_getln(buf, sizeof buf);
        http_redirect("display_pushemail");
 }
+
+void 
+InitModule_PUSHMAIL
+(void)
+{
+       WebcitAddUrlHandler(HKEY("display_pushemail"), display_pushemail, 0);
+       WebcitAddUrlHandler(HKEY("save_pushemail"), save_pushemail, 0);
+}