Menu

7.4.3 config mailer - only lower case characters

2020-04-16
2020-04-17
  • Roman Bronis

    Roman Bronis - 2020-04-16

    Not sure if this was reported but we noticed an issue with 7.4.3 in Ubuntu with mailer field in the config - before it executes, it makes the characters to lower case. This is not good practice in case you have capital letter switches, for example: msmtp -C ... is converted to msmtp -c ... and totaly breaks the command.

     
  • Bjorn

    Bjorn - 2020-04-17

    Thanks for the report. The code was patched so that mailer is no longer lower-cased. The lower-casing of configuration values deserves a fuller review, but for now it should fix your issue.

    The 7.4.3 release is no longer supported, and thus I recommend you move to the current 7.5.3. If you want to patch your older logwatch.pl script, you can replace the sub CleanVars code in your file with the newest version of sub CleanVars.

     
  • Roman Bronis

    Roman Bronis - 2020-04-17

    I'm glad this is fixed in new versions, let's hope our repo will eventually catch-up (in like 2025 :D ).

    Due to maintenance reasons, I had to make a workaround by making lowercase wrapper script for my "mailer" msmtp. This should work for both older and newer versions and once we get to >7.5.3 I don't need to fix it back. :)

    Thank you for your support and good work.

     
  • Bjorn

    Bjorn - 2020-04-17

    Just to clarify (perhaps for others): the patch was just pushed through based on your report, so will not be available under the "Files" tab until the next tagged release. If you download the current git snapshot (under the "Git" tab), the patch will be there. So your comment of > 7.5.3 is correct.

     

Log in to post a comment.