aboutsummaryrefslogtreecommitdiff
path: root/src/builtin/callout.bi
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtin/callout.bi')
-rw-r--r--src/builtin/callout.bi9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/builtin/callout.bi b/src/builtin/callout.bi
index 9c8affeb..dd4a61ee 100644
--- a/src/builtin/callout.bi
+++ b/src/builtin/callout.bi
@@ -18,7 +18,6 @@
#include "filenames.h"
#include "callout.h"
-MF_VAR(callout_server_url, STRING, SYM_PRECIOUS);
MF_VAR(ehlo_domain, STRING, SYM_PRECIOUS);
MF_VAR(mailfrom_address, STRING, SYM_PRECIOUS);
@@ -30,6 +29,13 @@ MF_PRAGMA(provide-callout, 1, 1)
provide_callout = 1;
}
+MF_DEFUN(default_callout_server_url, STRING)
+{
+ MF_RETURN_STRING(callout_server_url ?
+ callout_server_url : DEFAULT_CALLOUT_SOCKET);
+}
+END
+
static void
initvar(const char *name, const char *str)
{
@@ -41,7 +47,6 @@ initvar(const char *name, const char *str)
}
MF_INIT([<
- initvar("callout_server_url", default_callout_url);
if (ehlo_domain)
initvar("ehlo_domain", ehlo_domain);
if (mailfrom_address)

Return to:

Send suggestions and report system problems to the System administrator.