Contact form, SPAM email mod.: Odd line breaks

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Contact form, SPAM email mod.: Odd line breaks

Post 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?
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post by Huhu »

No, sorry, it says "Content-Transfer-Encoding: quoted-printable"
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post 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=
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Huhu
Regular
Posts: 157
Joined: Tue Oct 04, 2011 3:22 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post 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?
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Contact form, SPAM email mod.: Odd line breaks

Post by Timbalu »

This seems to be Mail.app related, see
https://discussions.apple.com/thread/3040166
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply