Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
c719dc0b
Commit
c719dc0b
authored
Sep 07, 2011
by
tbrehm
Browse files
Fixed a warning in maildrop plugin.
parent
92e50958
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/maildrop_plugin.inc.php
View file @
c719dc0b
...
...
@@ -211,10 +211,14 @@ class maildrop_plugin {
unset
(
$config_file_path
);
}
else
{
// Delete the mailfilter recipe
$email_parts
=
explode
(
"@"
,
$data
[
"old"
][
"email"
]);
$file
=
$this
->
mailfilter_config_dir
.
'/'
.
$email_parts
[
1
]
.
'/'
.
$email_parts
[
0
]
.
'/.mailfilter'
;
if
(
is_file
(
$file
))
unlink
(
$file
)
or
$app
->
log
(
"Unable to delete file:
$file
"
,
LOGLEVEL_WARN
);
$app
->
log
(
"Deleting custom Mailfiter"
.
$file
,
LOGLEVEL_DEBUG
);
if
(
isset
(
$data
[
"old"
][
"email"
]))
{
$email_parts
=
explode
(
"@"
,
$data
[
"old"
][
"email"
]);
$file
=
$this
->
mailfilter_config_dir
.
'/'
.
$email_parts
[
1
]
.
'/'
.
$email_parts
[
0
]
.
'/.mailfilter'
;
if
(
is_file
(
$file
))
{
unlink
(
$file
)
or
$app
->
log
(
"Unable to delete file:
$file
"
,
LOGLEVEL_WARN
);
$app
->
log
(
"Deleting custom Mailfiter"
.
$file
,
LOGLEVEL_DEBUG
);
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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