Skip to content

Commit 2d18c09

Browse files
committed
Fixed: FS#1086 - fetchmail jobs get not removed from disk when they were deleted in ispconfig.
1 parent 942538f commit 2d18c09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/plugins-available/getmail_plugin.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ function update($event_name,$data) {
144144
function delete($event_name,$data) {
145145
global $app, $conf;
146146

147+
// load the server specific configuration options for getmail
148+
$app->uses("getconf");
149+
$getmail_config = $app->getconf->get_server_config($conf["server_id"], 'getmail');
150+
$this->getmail_config_dir = $getmail_config["getmail_config_dir"];
151+
147152
$config_file_path = escapeshellcmd($this->getmail_config_dir.'/'.$data["old"]["source_server"].'_'.$data["old"]["source_username"].'.conf');
148153
if(stristr($config_file_path,"..") || stristr($config_file_path,"|") || stristr($config_file_path,";") || stristr($config_file_path,'$')) {
149154
$app->log("Possibly faked path for getmail config file: '$config_file_path'. File is not written.",LOGLEVEL_ERROR);

0 commit comments

Comments
 (0)