");
+ wc_printf(_("View/edit server-side mail filters"));
+ wc_printf("
\n");
+ wc_printf("
\n");
+
+ wc_printf("
\n");
+
+ wc_printf("
"
+ "
"
+ "
\n");
+
+ wc_printf(_("This installation of Citadel was built without support for server-side mail filtering."
+ " Please contact your system administrator if you require this feature. "));
+
+ wc_printf("
\n");
+ wDumpContent(1);
+}
+
+
+/*
+ * view/edit sieve config
*/
void display_sieve(void)
{
char script_names[MAX_SCRIPTS][64];
int num_scripts = 0;
int active_script = (-1);
- char buf[256];
+ char buf[SIZ]; /* Don't make this buffer smaller or it will restrict line length */
int i;
int rules_script_is_active = 0;
-
+
+ if (!WC->serv_info->serv_supports_sieve) {
+ display_no_sieve();
+ return;
+ }
memset(script_names, 0, sizeof script_names);
@@ -44,7 +69,7 @@ void display_sieve(void)
output_headers(1, 1, 2, 0, 0, 0);
- wprintf(" \n"
);
- wprintf("
\n");
- if (message != NULL) wprintf(message);
+ if (message != NULL) {
+ wc_printf("%s", message);
+ }
- wprintf("
\n");
+ wc_printf("
\n");
- svprintf("BOXTITLE", WCS_STRING, _("Add a new script"));
- do_template("beginbox");
+ do_template("beginbox_1", NULL);
+ StrBufAppendBufPlain(WC->WBuf, _("Add a new script"), -1, 0);
+ do_template("beginbox_2", NULL);
- wprintf(_("To create a new script, enter the desired "
+ wc_printf(_("To create a new script, enter the desired "
"script name in the box below and click 'Create'."));
- wprintf("
");
+ wc_printf("
");
- wprintf("
");
+ wc_printf("
");
- svprintf("BOXTITLE", WCS_STRING, _("Delete scripts"));
- do_template("beginbox");
+ do_template("beginbox_1", NULL);
+ StrBufAppendBufPlain(WC->WBuf, _("Delete scripts"), -1, 0);
+ do_template("beginbox_2", NULL);
- wprintf(_("To delete an existing script, select the script "
+ wc_printf(_("To delete an existing script, select the script "
"name from the list and click 'Delete'."));
- wprintf("