FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Error mailing to mailing list
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Error mailing to mailing list [message #165592] Fri, 22 July 2011 18:31 Go to next message
wittrs is currently offline  wittrs   United States
Messages: 134
Registered: August 2009
Karma: 0
Senior Member
Getting an error periodically when someone posts to the board and it doesn't get sent to the email list.

The error in fudform can be seen here: http://seanwilson.org/errorlog.png

The error from my webhost says this:

ALERT - mail() - double newline in headers, possible injection, mail dropped (attacker '130.108.145.81', file '/hsphere/local/home/ludwiggroup/seanwilson.org/forum/theme/sean3/post.php' , line 2721)


The web host then writes, "Probably error appears when message is created incorrectly and header of new email is corrupted. This issue is related to the application and the way it creates email. Please re-check it from your side when error appears next time on your board."

Any help on this?

The message that failed to send was this one: http://seanwilson.org/forum/index.php?t=msg&th=3898&goto=6823&S =21881c28718eae48ec5cece03ef392f4#msg_6823
Re: Error mailing to mailing list [message #165596 is a reply to message #165592] Sun, 24 July 2011 14:07 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
This looks like a bug in mlist_post.inc. Can you please add some debugging code to the bottom of the script to capture the message?

PS: I assume you are running 3.0.2.
Re: Error mailing to mailing list [message #165597 is a reply to message #165596] Sun, 24 July 2011 14:16 Go to previous messageGo to next message
wittrs is currently offline  wittrs   United States
Messages: 134
Registered: August 2009
Karma: 0
Senior Member
... yes, 3.0.2.

I'm not sure I know what debugging code is. I have a php book (5.3) on my shelf. And I do fool around with code some. Can you give me some idea of where to start with this? I'll give it a go as soon as I can.

Yours, always very appreciative.
Re: Error mailing to mailing list [message #165604 is a reply to message #165597] Mon, 25 July 2011 08:53 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Add something like this just before the send_email() call:

$fh = fopen($GLOBALS['ERROR_PATH'] .'debug.msg', 'w');
fwrite($fh, "$header\n\n$final_body");
fclose($fh);


The code is obviously untested, but should get you started.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Import forum data
Next Topic: There is something inside the forum statistics
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 02:26:59 GMT 2024

Total time taken to generate the page: 0.02613 seconds