diff --git a/lam/docs/manual-sources/chapter-modules.xml b/lam/docs/manual-sources/chapter-modules.xml
index 3801db25..1620adb6 100644
--- a/lam/docs/manual-sources/chapter-modules.xml
+++ b/lam/docs/manual-sources/chapter-modules.xml
@@ -1933,7 +1933,7 @@
- Usage:
+ Usage
You can specify a routing address, the mail server and a number of
local addresses to route.
@@ -1948,6 +1948,24 @@
+
+ Wildcards
+
+ The module supports wildcards in the following input
+ fields:
+
+
+
+ Routing address
+
+
+
+ Local address
+
+
+
+ See the other modules that you activated what wildcards they
+ provide (e.g. $user).
diff --git a/lam/lib/modules/inetLocalMailRecipient.inc b/lam/lib/modules/inetLocalMailRecipient.inc
index 9b416d72..704ce4fc 100644
--- a/lam/lib/modules/inetLocalMailRecipient.inc
+++ b/lam/lib/modules/inetLocalMailRecipient.inc
@@ -1,9 +1,8 @@
addElement(new htmlTableExtendedInputCheckbox('inetLocalMailRecipient_addExt', false, _('Automatically add this extension'), 'autoAdd'), true);
- $profileContainer->addElement(new htmlTableExtendedInputField(_('Mail server'), 'inetLocalMailRecipient_host', null, 'mailHost'));
+ $profileContainer->addElement(new htmlTableExtendedInputField(_('Routing address'), 'inetLocalMailRecipient_mailRoutingAddress', null, 'mailRoutingAddress'), true);
+ $profileContainer->addElement(new htmlTableExtendedInputField(_('Local address'), 'inetLocalMailRecipient_mailLocalAddress', null, 'localAdr'), true);
+ $profileContainer->addElement(new htmlTableExtendedInputField(_('Mail server'), 'inetLocalMailRecipient_host', null, 'mailHost'), true);
$return['profile_options'] = $profileContainer;
// profile checks
$return['profile_checks']['inetLocalMailRecipient_host'] = array(
@@ -103,7 +104,9 @@ class inetLocalMailRecipient extends baseModule {
'error_message' => $this->messages['mailHost'][0]);
// profile mappings
$return['profile_mappings'] = array(
- 'inetLocalMailRecipient_host' => 'mailHost'
+ 'inetLocalMailRecipient_host' => 'mailHost',
+ 'inetLocalMailRecipient_mailRoutingAddress' => 'mailRoutingAddress',
+ 'inetLocalMailRecipient_mailLocalAddress' => 'mailLocalAddress',
);
// upload fields
$return['upload_columns'] = array(
@@ -234,6 +237,7 @@ class inetLocalMailRecipient extends baseModule {
return array();
}
$errors = array();
+ $this->getAccountContainer()->replaceWildcardsInPOST(array('localAdr', 'mailRoutingAddress'));
$this->attributes['mailRoutingAddress'] = array();
$this->attributes['mailLocalAddress'] = array();
$this->attributes['mailHost'] = array();