Description of problem:
logwatch.pl base64 encodes multiple segments and concatenates the encoded parts instead of concatenating the segments and then encoding a single text block. This creates imbedded "end" equal signs in the mime block which causes decode errors.
Version-Release number of selected component (if applicable):
Any time any segment but the last has a length not divisible by three and encode = base64 was specified in the logwatch.conf file.
Steps to Reproduce:
1. specify encode = base64 in logwatch.conf
invalid mime block in email.
valid mime block in email.
How can I actually reproduce this? Making some parts not divisible by 3 before encoding them still produces valid output.
Created attachment 1137033 [details]
The naive fix works for me. Without the fix I get invalid email, with the fix I get valid email. Not knowing perl it is difficult for me to provide a test case.
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions
Created attachment 1333603 [details]
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.