X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsieve.c;h=0db8f5ae0bca9b1cdc1ec4e0c26bb51ab867d5a5;hb=fd034bea666febed8eff22cf10f2b72b8b009665;hp=dc511b4ab83c6bd6d7696a9808486784cdf518d5;hpb=5dc7d255bba61dbc1138eb8bf9c3b063acc01124;p=citadel.git
diff --git a/webcit/sieve.c b/webcit/sieve.c
index dc511b4ab..0db8f5ae0 100644
--- a/webcit/sieve.c
+++ b/webcit/sieve.c
@@ -1,5 +1,19 @@
-/*
- * $Id$
+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software. You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "webcit.h"
@@ -16,23 +30,22 @@ void display_no_sieve(void) {
output_headers(1, 1, 2, 0, 0, 0);
- wprintf("
\n");
- wprintf("");
- wprintf("
");
- wprintf(_("View/edit server-side mail filters"));
- wprintf("
\n");
- wprintf("
\n");
+ wc_printf("
\n");
+ wc_printf("");
+ wc_printf("
");
+ wc_printf(_("View/edit server-side mail filters"));
+ wc_printf("
\n");
+ wc_printf("
\n");
- wprintf("
\n");
+ wc_printf("
\n");
- wprintf("
"
- "
"
+ wc_printf("
"
"
\n");
- wprintf(_("This installation of Citadel was built without support for server-side mail filtering."
+ 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. "));
- wprintf("
\n");
+ wc_printf("
\n");
wDumpContent(1);
}
@@ -45,7 +58,7 @@ 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;
@@ -73,7 +86,7 @@ void display_sieve(void)
output_headers(1, 1, 2, 0, 0, 0);
- wprintf(" \n"
);
- wprintf("
\n");
- wprintf("");
- wprintf("
");
- wprintf(_("View/edit server-side mail filters"));
- wprintf("
\n");
- wprintf("
\n");
+ wc_printf("
\n");
+ wc_printf("");
+ wc_printf("
");
+ wc_printf(_("View/edit server-side mail filters"));
+ wc_printf("
\n");
- svput("BOXTITLE", WCS_STRING, _("Add a new script"));
- do_template("beginboxx", NULL);
+ do_template("beginbox_1");
+ StrBufAppendBufPlain(WC->WBuf, _("Add a new script"), -1, 0);
+ do_template("beginbox_2");
- 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("
");
- svput("BOXTITLE", WCS_STRING, _("Delete scripts"));
- do_template("beginboxx", NULL);
+ do_template("beginbox_1");
+ StrBufAppendBufPlain(WC->WBuf, _("Delete scripts"), -1, 0);
+ do_template("beginbox_2");
- 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("