CVSROOT: /cvs Module name: src Changes by: mart...@cvs.openbsd.org 2020/03/08 15:47:05
Modified files: usr.sbin/smtpd : enqueue.c Log message: Rewrite qp_encoded_write. Among the fixes are: - Don't count a leading dot, since it's part of smtp and not the message. - Let qp_encoded_write handle line wrappings, since it can do a better job at the bookkeeping than the caller - Make sure a soft linebreak that starts with a dot is escaped for the SMTP-layer - Only encode a space character if it's followed by a hard linebreak, since this is the only case mandated by RFC5321 and it gives a more readable output and saves a few additional bytes. - Fix that we actually limit the encoded linelength to 76 characters as specified in RFC5321. Feedback and OK eric@