FreeAndNil opened a new issue, #360:
URL: https://github.com/apache/logging-log4net/issues/360

   `SmtpPickupDirAppender` writes only `To`, `From`, `Subject` and `Date`, then 
the rendered events as
   UTF-8, unchanged. There is no `MIME-Version`, no `Content-Type` charset and 
no
   `Content-Transfer-Encoding`, and nothing limits the line length.
   
   - A logged value of about 930 characters without a line break gives a body 
line over the 998-octet
     limit of RFC 5322. A server that enforces it refuses the whole mail: the 
alert and the buffered
     events of other users with it.
   - Without a declared charset, a strict reader treats the body as US-ASCII 
and garbles non-ASCII
     text, such as Cyrillic or CJK names.
   - A NUL in a message is written raw.
   
   ANT-2026-TNHX6V52.
   
   Proposed fix: write `MIME-Version: 1.0`, `Content-Type: text/plain; 
charset=utf-8` and a
   `Content-Transfer-Encoding` on every mail. The body stays `8bit` and 
unchanged while every line fits;
   a body with a line over 998 octets goes out as `base64`. NUL is escaped as 
`\0`, as other appenders
   do.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] Pickup mail without MIME hea... FreeAndNil (via GitHub) via notifications

Reply via email to