apintocr / sentora_mail-quota-count

Counts Email Quota towards Web Quota, making it easier to manage Email accounts.
1 stars 2 forks source link

Set webmail path according to OS (Windows compatability) #2

Closed TGates71 closed 9 years ago

TGates71 commented 9 years ago

First apply: https://github.com/apintocr/sentora_mail-quota-count/issues/1 (Also created from my memory, will need testing and tweaking.) Next: Change Line 118 hooksCtrl.php:

$vmailpath = "/var/sentora/vmail";    // Path to vmail

To:

if (php_uname('s') == 'Windows NT') {
    $vmailpath = "c:/zpanel/bin/hmailserver/data/";    // Path to vmail
} else {
     $vmailpath = "/var/sentora/vmail";    // Path to vmail
}
apintocr commented 9 years ago

Done :+1: