GeezerVison is showing github.com — Pickup mail without MIME headers · Issue #360 · apache/logging-log4net
Pickup mail without MIME headers #360
Description
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.
Activity
added a commit that references this issue
on Nov 16, 2026#360 Write MIME headers in pickup mails, the body as 8bit or base64
Metadata
Metadata
Development
No branches or pull requestsIssue actions