sj26 / mailcatcher

Catches mail and serves it through a dream.
http://mailcatcher.me
MIT License
6.3k stars 575 forks source link

SMTP size extensions unhandled #465

Closed sj26 closed 3 years ago

sj26 commented 3 years ago

Originally reported in #399, sometimes "From" entries have a "SIZE=X" suffix. It looks like smtp size extensions are advertised by EventMachine SMTP, but unhandled.

From https://datatracker.ietf.org/doc/html/rfc1870#section-8:

220 EventMachine SMTP Server
EHLO ymir.claremont.edu
250-Ok EventMachine SMTP Server
250-NO-SOLICITING
250 SIZE 20000000
MAIL FROM:<ned@thor.innosoft.com> SIZE=500000
250 Ok
RCPT TO:<ned@innosoft.com>
250 Ok
DATA
354 Send it
From: ned@thor.innosoft.com
Subject: Hello

This is a message
. 
250 Message accepted
QUIT
221 Ok
Screen Shot 2021-06-23 at 1 28 45 pm