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

Home » FUDforum » How To » Testing maillist.php to import mailing list message into forum
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Testing maillist.php to import mailing list message into forum [message #34670 is a reply to message #34665] Mon, 13 November 2006 20:57 Go to previous messageGo to previous message
Injaki is currently offline  Injaki   Spain
Messages: 3
Registered: November 2006
Location: Madrid (Spain)
Karma:
Junior Member
After several re-installs and some test, I've discovered why the maillist.php script wasn't working for me, it was just a case of misunderstanding of regexps. I'm not a programmer, so I'm not sure to be right; anyway here is what I've found:

The shown warning refers to clean_up_data() function in the script ("range out of order" warning). This function replaces input subject with a given replacement when matching a regexp, using the php preg_replace() function.
The fact is that in my import rule the regexp was [Retroaccion-JD] (as with the given [PHP] example in Subject Mangling section in Mailing list Manager). But it seems to me that the [Retroaccion-JD] regexp matches everything, so the subject was always replaced with the replacement (NULL string in my case). That could be the reason for the script trying to insert a message with NULL subject regardless of the message being imported.
Just reading a bit about regexp I substituted [Retroaccion-JD] with \[Retroaccion-JD\] and everything was ok.

This shows also that for the maillist.php scritp to work, the subject of the message being imported has not to be NULL (also after applying the Subject Mangling function), as I've tested afterwards, because no 'NULL-subjected' message can be imported into the forum at all. So the users of the mailing list has to be adviced not to send messages with blank Subject, or at least be sure that the Subject Mangling function leaves always at least a short string in the subject line.


Btw, I'm running the script with Files locked, not as advertised in Mailing List Manager page, and it is working. Why is necessary to unlock the forum files to execute maillist.php?

Thank you very much

[Updated on: Tue, 14 November 2006 09:38]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I register Users Automatically from my other php applications?
Next Topic: Don't want maillist.php to create new users
Goto Forum:
  

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

Current Time: Fri Nov 22 21:39:33 GMT 2024

Total time taken to generate the page: 0.04763 seconds