Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
7574e4c3
Commit
7574e4c3
authored
Jan 06, 2009
by
fantu
Browse files
fix #410 - Change mailbox name
parent
2549b27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/mail_plugin.inc.php
View file @
7574e4c3
...
...
@@ -116,7 +116,7 @@ class mail_plugin {
// Move mailbox, if domain has changed and delete old mailbox
if
(
$data
[
'new'
][
'maildir'
]
!=
$data
[
'old'
][
'maildir'
]
&&
is_dir
(
$data
[
'old'
][
'maildir'
]))
{
exec
(
'mv -f '
.
escapeshellcmd
(
$data
[
'old'
][
'maildir'
])
.
'* '
.
escapeshellcmd
(
$data
[
'new'
][
'maildir'
]));
exec
(
'mv -f '
.
escapeshellcmd
(
$data
[
'old'
][
'maildir'
])
.
'
/
* '
.
escapeshellcmd
(
$data
[
'new'
][
'maildir'
]));
if
(
is_file
(
$data
[
'old'
][
'maildir'
]
.
'.ispconfig_mailsize'
))
exec
(
'mv -f '
.
escapeshellcmd
(
$data
[
'old'
][
'maildir'
])
.
'.ispconfig_mailsize '
.
escapeshellcmd
(
$data
[
'new'
][
'maildir'
]));
rmdir
(
$data
[
'old'
][
'maildir'
]);
$app
->
log
(
'Moved Maildir from: '
.
$data
[
'old'
][
'maildir'
]
.
' to '
.
$data
[
'new'
][
'maildir'
],
LOGLEVEL_DEBUG
);
...
...
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