Page 1 of 1
Contact form, SPAM email mod.: Odd line breaks
Posted: Mon Sep 02, 2013 8:59 pm
by Huhu
I am encountering strange line breaks in emails from the Contact Form and in the modeation email form teh Spam protector; even links are broken this way.
See here, the "="
Code: Select all
En ny trackback har gjorts till din blogg-artikel med namnet "Fankiska sk=
ållbröd // Fränkisches Krustenbrot".
Kräver gransk=
ning: Ja
Länk till artikel: http://uv=
blog.uvbo.se/(...)/12-Fankiska-skallbroed-Fraenkisches-Kruste=
nbrot.html
Weblog: films x
Länk till extern artikel: http://www.fi=
lm(...)it.com
Can those line breaks be deactivated within s9y?
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 9:44 am
by Timbalu
Does the mails header source code contain "Content-Transfer-Encoding: base64"?
If this is true, your PHP is missing the "imap_8bit" function. Ask your ISP to compile that with PHP.
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 9:48 am
by Huhu
No, sorry, it says "Content-Transfer-Encoding: quoted-printable"
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 10:35 am
by Timbalu
Hmm ok, then this looks like that a linebreak =0A is not properly converted back, while it remains to show a leftover = sign. Is it "=0A" in the mails source code? Is there also a "Content-Type: text/plain; charset=UTF-8"? Does every comment mail arrive like that, or just some?
Maybe this unproper view isn't the fault of the sender, than of your receiving email client, else I don't really have an idea why this should happen like this, and I even wonder why it breaks < 75 char lines too.
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 11:45 am
by Huhu
Hej,
thanks for helping!
Ok, here the source code:
Code: Select all
X-Mailer: Serendipity/1.6.2
X-Engine: PHP/5.2.17
MIME-Version: 1.0
Precedence: bulk
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Content-Transfer-Encoding: quoted-printable
En ny kommentar har skrivits (...) till artikeln =
med namnet "Kontakta".=0A=0AAnv=C3=A4ndare IP-adress: X.XX.XX=
X.XX=0A=0AField 'Namn': XXXX=C3=B6m=0AField 'E-post': XXXX=
X@XXail.com=0AField 'Har du ett eget lag?': Nej=
=0A'Me=
ssage': ...
So does it read:
Code: Select all
En ny kommentar har skrivits (...), till artikeln =
med namnet "Kontakta".
Användare IP-adress: X.XX.XX=
X.XX
Field 'Namn': XXXXXX
Field 'E-post': XXXX=
X@XXail.com
Field 'Har du ett eget lag?': Nej=
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 12:18 pm
by Timbalu
No, the normal =0A linebreaks by posted comment forms are read well.
It must be somehow the imap_8bit "breakage" ..., which breaks with = in the source code and the email client "should?" stick that together again (at least my Thunderbird is doing this well). In example
Code: Select all
Im Blog John Doe' area51 wurde ein neuer Kommentar zu Eintrag "Kontaktformul=
ar" abgegeben!=0A=0ABenutzer IP-Adresse: 00.111.22.333=0ABenutzer Name: John=
Doe=0A ... etc.
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 3:54 pm
by Huhu
Thanks! Interesting. I am using Mail.app with OS 10.6, and this error only occurs with s9y so far.
Any other user of mac mail out there who has the same problem?
Re: Contact form, SPAM email mod.: Odd line breaks
Posted: Tue Sep 03, 2013 6:14 pm
by Timbalu