OldShatterhand
Member
Offline
Posts: 18
|
|
« Reply #60 on: July 04, 2011, 02:34:28 PM » |
|
hi, cause you did't reply to my last posts i did some further resarch and tried to understand the code of you emailpost.php. If I understand it right your mod makes something like checking the Reference-Id of the incoming Mails in the following lines: $header_data = ''; for ($i = 0, $n = count($data); $i < $n; $i++) { if (preg_match('~^(From|Subject|Content-Type|In-Reply-To|Message-ID|X-Mailer|Content-Transfer-Encoding): (.*)$~i', $data[$i], $match) != 0) $headers[strtolower($match[1])] = trim($match[2]);
if (preg_match('~^References: (.*)$~i', $data[$i], $match) != 0) $headers['references'][] = trim($match[1]);
$header_data .= $data[$i];
if (trim($data[$i]) == '') break; } When this is right I think I found the reason, why there is no possibility to reply to notifications about new topics. The modified notifications have all an Massage-Id ending with @srv36.000webhost.com (the server where the forum is hosted). The normal "New Topic" Notifications have Massage-Id ending with @mailhooks.com (for whatever reason, i can't explain that). I will try if I could find a solution to fix that (i think it's something to do in the Subs-Post.php?!) but my php knowledge is not very good (only a little bit from school ), so it would be very nice from you if you could give me some suggestions where to something and what. Sincerely, OldShatterhand
|
|
|
Logged
|
|
|
|
|
OldShatterhand
Member
Offline
Posts: 18
|
|
« Reply #62 on: July 05, 2011, 12:47:26 AM » |
|
hm ok.... so if I change the Email Subject of my answer to "Re: <name of topic>" instead of "Re: New Topic: <name of topic>" it should work. But it doesn't. Also there is another very strange thing: I switched on the debuging function of the emailpost.php. When I reply to a modified notification It works without problems and I see in the test.txt that everything worked fine. But when I reply to a normal "new topic" notification there is no debuging file created. So it seams that this replys are no really submitted from mailhooks.com to the script. EDIT: I tested if the mails are submitted through mailhooks.com with the service from http://www.postbin.org/ and it seems that there is no problem. So maybe the emailpost php script does not start to run, when replies to "new topic" mails are coming in
|
|
« Last Edit: July 05, 2011, 07:09:42 AM by OldShatterhand »
|
Logged
|
|
|
|
|
OldShatterhand
Member
Offline
Posts: 18
|
|
« Reply #64 on: July 08, 2011, 02:13:08 PM » |
|
yes I was referring about this in my last posts and it would be great if you could get this working. I understand if you don't noticed that before, cause my english is realy bad (i think) and I was mostly referring about 3 or 4 different things in one post . I also referred about some other things, like no new topic notification for threads started by mail, when auto announcement's are turned off (I don't like the announcement solution ) and no auto notification about new replies for threads started over forum. But they are firstly not so big problems and probaly only I see them as problems and secondly I did some dirty workarounds for those things (will work on other forums only with a bit modification) and so everything except replying to "new topic" notifications is working fine for me (from my point of view). If you want It I can also post my workarounds but it's only some Copy-Paste with litte code modifications and a seperate script for a cronjob. Yours sincerely, OldShatterhand
|
|
« Last Edit: July 08, 2011, 02:16:44 PM by OldShatterhand »
|
Logged
|
|
|
|
|
|
|
|
OldShatterhand
Member
Offline
Posts: 18
|
|
« Reply #69 on: August 12, 2011, 07:10:25 AM » |
|
hi, it's me again. I noticed another little thing/problem with your mod, which is mainly a problem for germans, like me. As you may know in the German language there a some specific letters called "umlaute" (see http://en.wikipedia.org/wiki/Germanic_umlaut). If someone post a new thread with a topic which contains one of this letters (in my forum this occurs relativly often) the Mod replaces this letter in the notification mail with an X. If you want to answer to this topic it is not possible now, cause the letter is wrong. Also if you manually modify the reply subject it is not possible to response (maybe because the formation thunderbird uses: ISO-8859-15. Maybee it's only a problem cause I don't use UTF-8 in my forum but i don't know it. If this is causing the problem i have one further question: is it possible to upgrade the db's to UTF-8 without having to care about data loss?
|
|
|
Logged
|
|
|
|
|
OldShatterhand
Member
Offline
Posts: 18
|
|
« Reply #71 on: August 13, 2011, 06:28:44 AM » |
|
it doesnt work. In the mails from the mod everything except the subject is formatted fine with utf-8. only in the subject the "Umlaute" are replaced by a X. Exampe with part of header and mail: .... Subject: test fXXr utf8 .... test für utf8
testtt
======================================== ......
when i send mails with thunderbird, which are formattet in utf8 the subjects of the mails looks like that (with the same subject as above): Subject: test =?UTF-8?B?ZsO8ciB1dGY4?= So maybe it is possible to teach the mod to write such subjects byself and to read them also when mails which such subjects come in. Otherwise (for example in this case) a new thread with the topic "test =?UTF-8?B?ZsO8ciB1dGY4?=" will be created instead of the right topic "test für utf8"
|
|
|
Logged
|
|
|
|
|
|
|