Fix: When using option MAIN_MAIL_ALLOW_SENDMAIL_F, a mail was sent to
sender.
This commit is contained in:
parent
d903db6a18
commit
ef8b555750
@ -3,6 +3,7 @@ English Dolibarr ChangeLog
|
|||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
|
|
||||||
***** ChangeLog for 3.5.4 compared to 3.5.3 *****
|
***** ChangeLog for 3.5.4 compared to 3.5.3 *****
|
||||||
|
Fix: When using option MAIN_MAIL_ALLOW_SENDMAIL_F, a mail was sent to sender.
|
||||||
Fix: Question about warehouse must not be done when module stock is disabled.
|
Fix: Question about warehouse must not be done when module stock is disabled.
|
||||||
Fix: Option STOCK_SUPPORTS_SERVICES was not correctly implemented
|
Fix: Option STOCK_SUPPORTS_SERVICES was not correctly implemented
|
||||||
(missing test at some places).
|
(missing test at some places).
|
||||||
|
|||||||
@ -404,7 +404,7 @@ class CMailFile
|
|||||||
// le return-path dans les header ne fonctionne pas avec tous les MTA
|
// le return-path dans les header ne fonctionne pas avec tous les MTA
|
||||||
// Le passage par -f est donc possible si la constante MAIN_MAIL_ALLOW_SENDMAIL_F est definie.
|
// Le passage par -f est donc possible si la constante MAIN_MAIL_ALLOW_SENDMAIL_F est definie.
|
||||||
// La variable definie pose des pb avec certains sendmail securisee (option -f refusee car dangereuse)
|
// La variable definie pose des pb avec certains sendmail securisee (option -f refusee car dangereuse)
|
||||||
$bounce .= ($bounce?' ':'').(! empty($conf->global->MAIN_MAIL_ERRORS_TO) ? '-f' . $conf->global->MAIN_MAIL_ERRORS_TO : ($this->addr_from != '' ? '-f' . $this->addr_from : '') );
|
$bounce .= ($bounce?' ':'').(! empty($conf->global->MAIN_MAIL_ERRORS_TO) ? '-f' . $this->getValidAddress($conf->global->MAIN_MAIL_ERRORS_TO,2) : ($this->addr_from != '' ? '-f' . $this->getValidAddress($this->addr_from,2) : '') );
|
||||||
}
|
}
|
||||||
if (! empty($conf->global->MAIN_MAIL_SENDMAIL_FORCE_BA)) // To force usage of -ba option. This option tells sendmail to read From: or Sender: to setup sender
|
if (! empty($conf->global->MAIN_MAIL_SENDMAIL_FORCE_BA)) // To force usage of -ba option. This option tells sendmail to read From: or Sender: to setup sender
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user