Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Webslice
ISPConfig 3
Commits
5335a40f
Commit
5335a40f
authored
10 years ago
by
Marius Cramer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: FS#3474 - Mail plugins do not load files from conf-custom
parent
7e61904d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/plugins-available/getmail_plugin.inc.php
+5
-1
5 additions, 1 deletion
server/plugins-available/getmail_plugin.inc.php
server/plugins-available/maildrop_plugin.inc.php
+10
-2
10 additions, 2 deletions
server/plugins-available/maildrop_plugin.inc.php
with
15 additions
and
3 deletions
server/plugins-available/getmail_plugin.inc.php
+
5
−
1
View file @
5335a40f
...
@@ -100,7 +100,11 @@ class getmail_plugin {
...
@@ -100,7 +100,11 @@ class getmail_plugin {
if
(
$data
[
"new"
][
"active"
]
==
'y'
)
{
if
(
$data
[
"new"
][
"active"
]
==
'y'
)
{
// Open master template
// 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
// Shall emails be deleted after retrieval
if
(
$data
[
"new"
][
"source_delete"
]
==
'y'
)
{
if
(
$data
[
"new"
][
"source_delete"
]
==
'y'
)
{
...
...
This diff is collapsed.
Click to expand it.
server/plugins-available/maildrop_plugin.inc.php
+
10
−
2
View file @
5335a40f
...
@@ -137,7 +137,11 @@ class maildrop_plugin {
...
@@ -137,7 +137,11 @@ class maildrop_plugin {
}
}
// Load the master template
// 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
);
$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
if
(
$data
[
"new"
][
"autoresponder_start_date"
]
!=
'0000-00-00 00:00:00'
)
{
// Dates have been set
...
@@ -201,7 +205,11 @@ class maildrop_plugin {
...
@@ -201,7 +205,11 @@ class maildrop_plugin {
}
}
if
(
$data
[
"new"
][
"move_junk"
]
==
'y'
)
{
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"
];
$mailfilter_content
.
=
$data
[
"new"
][
"custom_mailfilter"
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment