Features / Usability

Features / Usability

Notification mail with doubled newline

posts: 1 Germany

Hello, every newline in the original Forumpost is mailed as a doubled newline. Which extends the text lentgth enourmous. Is it my fault or is it a windows bug or is it a tiki bug(I'm Using TikiWiki 1.9.1 but I runs and I dont want to change this until 1.10 if it is not sure that a update will fix this little bug. Because I did some tweaks during the Login and a I'm using AulaWiki.
I thought it might be something with this \r\n thing. But I don't know.

Please give me a short post/hint if this is a known (and fixed) bug or if you know which lib should be hacked.


posts: 1586 Canada

Hi Wulle!

From memory, there is the same bug with newsletters and with wiki page change notifications.

The bug appears in some mail clients (ex.: IMP webmail and gmail) but not others (Thunderbird). I am using Linux servers.

I have a temporary fix in notificationemaillib.php

< $smarty->assign_by_ref('mail_pagedata', $edit_data);

> $smarty->assign_by_ref('mail_pagedata', str_replace "\r\n", "\n", $edit_data));

I didn't commit because I am prety sure it is not a good way to solve this problem.

There is a "Mail end of line:" setting in tiki-admin.php?page=general which is supposed to help here but it hasn't worked for me.

I have noticed the same problems with text emails sent by phplist, therefore I think it is a bug in the email transfer class:

Maybe we should upgrade to the latest version?

Upcoming Events

No records to display