Implement POP3 TOP command #6

Closed
opened 2026-06-17 17:12:31 +01:00 by lyrathorpe · 0 comments
Owner

The POP3 TOP command is unsupported and returns -ERR. Many mail clients issue TOP (header + N body lines) before RETR for previews and header sync.

Fix:

  • Implement TOP : return the headers plus the first n lines of the body, dot-stuffed and CRLF-terminated (see the RETR dot-stuffing fix).
  • Advertise via CAPA if/when CAPA is added.

Acceptance:

  • TOP returns headers plus the requested number of body lines, correctly terminated.
The POP3 TOP command is unsupported and returns -ERR. Many mail clients issue TOP (header + N body lines) before RETR for previews and header sync. Fix: - Implement TOP <msg> <n>: return the headers plus the first n lines of the body, dot-stuffed and CRLF-terminated (see the RETR dot-stuffing fix). - Advertise via CAPA if/when CAPA is added. Acceptance: - TOP returns headers plus the requested number of body lines, correctly terminated.
lyrathorpe added the enhancement label 2026-06-17 17:12:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lyrathorpe/legacy-email-proxy#6