Bug Preventing eMail Delivery in at least 1.6.2.16 up to 1.6.2.19 (Probably much more)



  • This is a deprecation error which won't show up on earlier versions of Python but does effect Python 8.1 up. The fix is very simple:

    diff -wurp a/tools/swift/classes/Swift/Transport/AbstractSmtpTransport.php b/tools/swift/classes/Swift/Transport/AbstractSmtpTransport.php
    --- a/tools/swift/classes/Swift/Transport/AbstractSmtpTransport.php	2023-09-27 21:04:32.000000000 +0000
    +++ b/tools/swift/classes/Swift/Transport/AbstractSmtpTransport.php	2023-10-15 17:24:18.086451046 +0000
    @@ -395,7 +395,7 @@ abstract class Swift_Transport_AbstractS
                 do {
                     $line = $this->_buffer->readLine($seq);
                     $response .= $line;
    -            } while (null !== $line && false !== $line && ' ' != $line{3});
    +            } while (null !== $line && false !== $line && ' ' != $line[3]);
             } catch (Swift_TransportException $e) {
                 $this->_throwException($e);
             } catch (Swift_IoException $e) {
    
    


  • Sorry, I was suffering from "Brain Freeze". That should read PHP 8.1 not Python.



  • Thanks for your help :)
    The correction has been made for future PhenixSuite versions.


Se connecter pour répondre