[ https://issues.apache.org/jira/browse/JAMES-4086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
hung closed JAMES-4086. ----------------------- > Mailet for folding long lines > ----------------------------- > > Key: JAMES-4086 > URL: https://issues.apache.org/jira/browse/JAMES-4086 > Project: James Server > Issue Type: Improvement > Reporter: hung > Priority: Major > Time Spent: 4h 40m > Remaining Estimate: 0h > > *Why?* > Some email clients (Outlook!) can generate some arbitrary long lines. For > instance a loooong discussions with many References can have a References > line exceeding 1000 characters. > {color:red}References: > <caou6bwkrkzbpuxbnz88uofkxyybv9y8cdpwyhxtpd9r-_ue...@mail.gmail.com> > <pr0p264mb335651d4b1a9a2a24afab535d2...@pr0p264mb3356.frap264.prod.outlook.com> > > <pr0p264mb33563d04b559ec154855e36ad2...@pr0p264mb3356.frap264.prod.outlook.com> > > <mwhpr0801mb36911622d86ea054d329d81fe7...@mwhpr0801mb3691.namprd08.prod.outlook.com> > > <sn4pr0801mb3696195e7746201412671f71e7...@sn4pr0801mb3696.namprd08.prod.outlook.com> > > <pr0p264mb3356634284cab379147bc77ad2...@pr0p264mb3356.frap264.prod.outlook.com> > > <sn4pr0801mb369668222a6726e917eb5761e7...@sn4pr0801mb3696.namprd08.prod.outlook.com> > > <pr0p264mb3356362a5fc890d0e53567f5d2...@pr0p264mb3356.frap264.prod.outlook.com> > > <pr0p264mb33563b96b1cc3774f1bf23fbd2...@pr0p264mb3356.frap264.prod.outlook.com> > > <sn4pr0801mb36961e26d369149c13c84e2ae7...@sn4pr0801mb3696.namprd08.prod.outlook.com> > > <cyxpr08mb90174a13cf388a1e7eb48d0df9...@cyxpr08mb9017.namprd08.prod.outlook.com> > > <pa4pr07mb7101c5f735acd27149593a1c89...@pa4pr07mb7101.eurprd07.prod.outlook.com> > <CYXPR08MB90173 > 4D5BD04714BD6A > 04551f9...@cyxpr08mb9017.namprd08.prod.outlook.com> > <pa4pr07mb710195e419888bbe1988427989...@pa4pr07mb7101.eurprd07.prod.outlook.com> > <042d01db09ec$beedd0f0$3cc972d0$@avocat.fr>{color} > The issue is that RFC5322 mandates not exceeding 998 characters per lines so > postfix is configured by default to fold such long lines! > We do protect the references header as per our DKIM signing: > {color:red}DKIM-Signature: a=rsa-sha256; > b=wRnnh7MWRU2Rly2nVeoKaao+UOlG87Cs0MRD614YE3TokZsaGVqMZQVYgqWQ+9XzBqzF0tp7Zt+907TEBSTIHAcShikJuiv0Sl5fjrgzpaJrkPtYe51MmPfkSY6USXmdOsdXhZBhVdBJ5M+r4LaZL0LYYKJZVn1re4khGsalvXo=; > s=s2; d=avocat.fr; v=1; bh=2AjlhSVg7EzuioM7CZqg3hz0OtP3/dOlGrqo3PYe9eg=; > h=from : reply-to : subject : date : to : cc : resent-date : resent-from : > resent-sender : resent-to : resent-cc : in-reply-to : references : list-id : > list-help : list-unsubscribe : list-subscribe : list-post : list-owner : > list-archive;{color} > And doing such folding after the signature indeed breaks the DKIM signature. > Some domains do not interprete well our p=quarantine policy and just reject > the mails: > {color:red}Diagnostic-Code: smtp; 550 5.7.0 Email quarantined per DMARC > policy{color} > Thus we would need to fold headers correctly prior to forwarding the mails to > Postfix. > *How?* > Write a FoldLongLines mailet defaulting to 998 chars (like postfix) > It would fold headers that exceed this length. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org