Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
95ed0d3c
Commit
95ed0d3c
authored
Jan 28, 2010
by
tbrehm
Browse files
Fixed: FS#959 - Changeing email alias
parent
e2ce4359
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_user_edit.php
View file @
95ed0d3c
...
...
@@ -303,6 +303,20 @@ class page_action extends tform_actions {
$app
->
db
->
query
(
$sql
);
}
//** If the email address has been changed, change it in all aliases too
if
(
$this
->
oldDataRecord
[
'email'
]
!=
$this
->
dataRecord
[
'email'
])
{
//* Update the aliases
$forwardings
=
$app
->
db
->
queryAllRecords
(
"SELECT * FROM mail_forwarding WHERE destination = '"
.
$app
->
db
->
quote
(
$this
->
oldDataRecord
[
'email'
])
.
"'"
);
if
(
is_array
(
$forwardings
))
{
foreach
(
$forwardings
as
$rec
)
{
$destination
=
$app
->
db
->
quote
(
$this
->
dataRecord
[
'email'
]);
$app
->
db
->
datalogUpdate
(
'mail_forwarding'
,
"destination = '
$destination
'"
,
'forwarding_id'
,
$rec
[
'forwarding_id'
]);
}
}
}
// end if email addess changed
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment