justingit / dada-mail

Self-Hosted, Full Featured, Email Mailing List Manager. Announcement + Discussion Lists, Web-based Installer, Installs with minimal dependencies, sendmail/SMTP/Amazon SES supported
https://dadamailproject.com
GNU General Public License v2.0
169 stars 40 forks source link

Message line length exceeded for Grab content from a URL #1169

Closed rabell closed 1 year ago

rabell commented 1 year ago

I am using v11.21.0 When I send a mailing using Grab content from a URL, I get a lot of rejects: 550 Maximum message linelength exceeded 28942/8000 The problem is caused by HTMLminifier.pm removing newlines in minify.

RFS 5322 says: 2.1.1. Line Length Limits

There are two limits that this specification places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.

I easily fixed the problem by setting: remove_newlines => 0,

justingit commented 1 year ago

In Sending -> Advanced Options

Is the Default PlainTexst Message Encoding and Default HTML Message Encoding set to, "quoted-printable"?

rabell commented 1 year ago

YesRegards,RobertOn 25 Aug 2023, at 16:37, Justin J @.***> wrote: In Sending -> Advanced Options Is the Default PlainTexst Message Encoding and Default HTML Message Encoding set to, "quoted-printable"?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

justingit commented 1 year ago

Quoted-Printable would have the max lines for an email message set to 75, and this would not be a problem.

rabell commented 1 year ago

I used the URL https://www.polepositiontravel.com/newsletter/148 and the email sent is as attached.

You will see that HTML content at line 120 is a single line.

Indonesian MotoGP & fly-away events - Unique Offer to our Australasian customers -- Special newsletter form Pole Position Travel - 'Pole Position Travel Australasia' (aus@polepositiontravel.com) - 2023-08-09 1031.zip

justingit commented 1 year ago

Hmm, testing this myself - it seems to work perfectly - do make sure the settings are the defaults as shown:

image

test_email.txt

rabell commented 1 year ago

I retested myself, and can confirm there is no problem.Apologies - I looked at settings in wrong mailing list.The settings were wrong in the mailing list used. I have corrected and advised the individual concerned.Regards,RobertOn 26 Aug 2023, at 02:16, Justin J @.***> wrote: Hmm, testing this myself - it seems to work perfectly - do make sure the settings are the defaults as shown:

Indonesian MotoGP & fly-away events - Unique Offer to our Australasian customers -- Special newsletter form Pole Position Travel - 'Pole Position Travel Australasia' @.***) - 2023-08-09 1031 copy.txt

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

justingit commented 1 year ago

Good to hear. I appreciate you filling out an issue regardless, cheers. Closing,