Menu

#8 Defect in QPEncoder make lines one char to long

open
nobody
None
5
2008-01-17
2008-01-17
No

Current implementation of QPEncoder can generate lines with 77 characters where standard specify max 76 characters per line.

This can trigger the MIME_QP_LONG_LINE rule in SpamAssassin and add points to the spam score.

Steps to reproduce:
Run Test Case "TestTwo" through a mail server and
a) look for MIME_QP_LONG_LINE from SpamAssassin.
b) manually validate line length to 76 plus equal char.

Suggested sollution:

Change line 420
From:
if (offset + columnposition > QPEncoder.MAX_CHARS_PER_LINE )

To:
if (offset + columnposition >= QPEncoder.MAX_CHARS_PER_LINE )

Line 430 is possible wrong but I do not have a test case for that.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.