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
Zvonimir
ISPConfig 3
Commits
5335a40f
Commit
5335a40f
authored
Apr 29, 2014
by
Marius Cramer
Browse files
Fixed: FS#3474 - Mail plugins do not load files from conf-custom
parent
7e61904d
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/getmail_plugin.inc.php
View file @
5335a40f
...
...
@@ -100,7 +100,11 @@ class getmail_plugin {
if
(
$data
[
"new"
][
"active"
]
==
'y'
)
{
// Open master template
$tpl
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf/getmail.conf.master'
);
if
(
file_exists
(
$conf
[
"rootpath"
]
.
'/conf-custom/getmail.conf.master'
))
{
$tpl
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf-custom/getmail.conf.master'
);
}
else
{
$tpl
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf/getmail.conf.master'
);
}
// Shall emails be deleted after retrieval
if
(
$data
[
"new"
][
"source_delete"
]
==
'y'
)
{
...
...
server/plugins-available/maildrop_plugin.inc.php
View file @
5335a40f
...
...
@@ -137,7 +137,11 @@ class maildrop_plugin {
}
// Load the master template
$tpl
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf/autoresponder.master'
);
if
(
file_exists
(
$conf
[
"rootpath"
]
.
'/conf-custom/autoresponder.master'
))
{
$tpl
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf-custom/autoresponder.master'
);
}
else
{
$tpl
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf/autoresponder.master'
);
}
$tpl
=
str_replace
(
'{vmail_mailbox_base}'
,
$mail_config
[
"homedir_path"
],
$tpl
);
if
(
$data
[
"new"
][
"autoresponder_start_date"
]
!=
'0000-00-00 00:00:00'
)
{
// Dates have been set
...
...
@@ -201,7 +205,11 @@ class maildrop_plugin {
}
if
(
$data
[
"new"
][
"move_junk"
]
==
'y'
)
{
$mailfilter_content
.
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf/mailfilter_move_junk.master'
)
.
"
\n
"
;
if
(
file_exists
(
$conf
[
"rootpath"
]
.
'/conf-custom/mailfilter_move_junk.master'
))
{
$mailfilter_content
.
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf-custom/mailfilter_move_junk.master'
)
.
"
\n
"
;
}
else
{
$mailfilter_content
.
=
file_get_contents
(
$conf
[
"rootpath"
]
.
'/conf/mailfilter_move_junk.master'
)
.
"
\n
"
;
}
}
$mailfilter_content
.
=
$data
[
"new"
][
"custom_mailfilter"
];
...
...
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