Browse Source

Tested on Fedora 7 (32-bit).

Corrected -v and -explain output when reloading MTA.


git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@30 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
master
adeniz 12 years ago
parent
commit
197ecedb1c
2 changed files with 14 additions and 14 deletions
  1. 12
    12
      SNFMilterConfig/PostfixIntegrate.cpp
  2. 2
    2
      SNFMilterConfig/SNFMilterConfigTests.txt

+ 12
- 12
SNFMilterConfig/PostfixIntegrate.cpp View File

OutputVerboseEnd(); OutputVerboseEnd();
if (!Explain()) {
if (MtaIsRunningDetected()) {
ReloadMta();
if (!ReloadMta()) {
}
std::cerr << "Unable to reload the postfix configuration. Please run "
<< "'postfix reload' for the integration with SNFMilter to take effect.";
} }
OutputVerboseEnd(); OutputVerboseEnd();
if (!Explain()) {
if (MtaIsRunningDetected()) {
if (!ReloadMta()) {
ReloadMta();
}
std::cerr << "Unable to reload the postfix configuration. Please run "
<< "'postfix reload' for the integration with SNFMilter to take effect.";
} }
bool bool
PostfixIntegrate::ReloadMta() { PostfixIntegrate::ReloadMta() {
if (!MtaIsRunningDetected()) {
return true;
}
if (Verbose()) { if (Verbose()) {
std::cout << "Reloading postfix...\n"; std::cout << "Reloading postfix...\n";

+ 2
- 2
SNFMilterConfig/SNFMilterConfigTests.txt View File



Result: Pass. Result: Pass.


POSTFIX-07: Repeat POSTFIX-01 thru POSTFIX-07 on Fedora.
POSTFIX-07: Repeat POSTFIX-01 thru POSTFIX-06 on Fedora.


Result:
Result: Pass.


POSTFIX-08: Repeat POSTFIX-01 thru POSTFIX-07 on OpenSuse. POSTFIX-08: Repeat POSTFIX-01 thru POSTFIX-07 on OpenSuse.



Loading…
Cancel
Save