git: libexec/dma: split body of mails not respecting RFC5322

Daniel Fojt deef at crater.dragonflybsd.org
Sat Jul 11 10:46:47 PDT 2020


commit a5737f81fa9baa4777d6ea805689228151c76844
Author: Daniel Fojt <df at neosystem.org>
Date:   Sat Jul 11 19:43:00 2020 +0200

    libexec/dma: split body of mails not respecting RFC5322
    
    When receiving mails with body not respecting RFC5322 [1] (may happen
    with automatically generated mails, for example from cron(8)), try to
    split by words finding the last space before 1000's character. If this
    fails, then simply refuse to further receive and process such input.
    
    Taken from: FreeBSD (revision 326641)
    Discussed with: Sascha Wildner
    
    [1] https://tools.ietf.org/html/rfc5322#section-2.1.1

Summary of changes:
 libexec/dma/mail.c | 85 ++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 57 insertions(+), 28 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a5737f81fa9baa4777d6ea805689228151c76844


-- 
DragonFly BSD source repository



More information about the Commits mailing list