From 2eb595dbab74f76c42f44193945eba48144873ba Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 4 Feb 2008 13:57:48 +0000 Subject: Status-info: Works and shows some information (not sure enabled/disabled should be there). Config-tab: Only graphical layout is taking shape. No real data is shown. Data can't be changed. Expert-tab: Works as it should (probably all done). git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@687 ab2d0c66-481e-0410-8bed-d214d4d58bed --- fetchmail-config-html.lsp | 205 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 fetchmail-config-html.lsp (limited to 'fetchmail-config-html.lsp') diff --git a/fetchmail-config-html.lsp b/fetchmail-config-html.lsp new file mode 100644 index 0000000..9ae4af1 --- /dev/null +++ b/fetchmail-config-html.lsp @@ -0,0 +1,205 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + +") + for k,v in pairs(tags) do + if (myform[v]) then + local val = myform[v] + io.write("\t 0) then io.write(" class='error'") end + io.write(">" .. val.label .. "\n") + + io.write("\t\t
" .. val.value .. "\n") + if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end + if (#val.errtxt > 0) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") + end + end + io.write("") +end +?> +") + for k,v in pairs(tags) do + if (myform[v]) then + local val = myform[v] + io.write("\t 0) then io.write(" class='error'") end + io.write(">" .. val.label .. "\n") + + io.write("\t\t
" .. html.form[val.type](val) .. "\n") + if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end + if (#val.errtxt > 0) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") + end + end + io.write("") +end +?> + +

SYSTEM INFO

+ + +

CONFIGURATION

+ +
" method="POST"> + +

GUIDED CONFIGURATION

+

FREQUENCY

+

Select how often the mailboxes will be checked. For ETRN transfers (below) this specifies how often transfers are initiated

+ + +

MAILBOXES

+

In the boxes below, select up to 10 mailboxes to check for mail. You will need to specify the remote mailbox and password, as well as the local (internal) mailbox to forward the mail to. The SMTP host is the name or address of the SMTP server to send the mail to. For mail destined for the internal branch network, this should be svcoutside (the address of the outside interface of the services BSN component). This is then forwarded to the to the internal component of the BSN for sending on to the branch network.

+ +

For branches that use a POP3 account for the entire domain, selecting the pop3domain method will setup the appropriate configuration for retrieving and distributing the mail appropriately. The domain information should be your internet smtp domain. The mailbox field is ignored when this method is selected.

+ +

When selecting the pop3 or imap methods, the domain field should be left blank.

+ + +
+") +for i=1, table.maxn(mailboxform) do + leftpadd="30px" + rightpadd="5px" + + io.write("") + io.write("") + io.write("") + io.write("") +end +io.write("
") + io.write("
METHOD
") + io.write("
REMOTE
") + io.write("
LOCAL
") + val = "method" + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("") + val = "remotehost" + io.write(mailboxform[i][val]["label"]) + io.write(":") + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("") + val = "localhost" + io.write(mailboxform[i][val]["label"]) + io.write(":") + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("
") + val = "disabled" + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write(" " .. mailboxform[i][val]["label"]) + io.write("") + val = "remotemailbox" + io.write(mailboxform[i][val]["label"]) + io.write(":") + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("") + val = "localmailbox" + io.write(mailboxform[i][val]["label"]) + io.write(":") + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("
") + io.write("") + val = "remotepassword" + io.write(mailboxform[i][val]["label"]) + io.write(":") + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("") + val = "localdomain" + io.write(mailboxform[i][val]["label"]) + io.write(":") + io.write(html.form[mailboxform[i][val]["type"]](mailboxform[i][val])) + io.write("

") +?> +
+ + +

LAST RESORT

+

The Postmaster address is the address of last resort when fetchmail cannot determine how to send a mail message. If left blank, undelieverable mail may be discarded.

+ + +

ETRN

+

This is for branches that have DNS mail domains hosted by an ISP that allows for ETRN dequeueing. ETRN dequeueing causes the SMTP mail exchanger at the ISP to forward mail to you via SMTP. You will need to make sure that DNS is setup appropriately and that your ISP supports ETRN. If you have not arranged with your ISP to have ETRN support, leave these fields blank.

+ + + + +

ADVANCED CONFIGURATION

+

GENERAL

+ + + + +

SAVE AND APPLY ABOVE SETTINGS

+ + + + +
+

MANAGEMENT

+
+
+
+ + + + + +
+ + 0) then ?> +
Previous action result
+
+ +
+
+ + + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + + + -- cgit v1.2.3