|
|
|
|
One more question [message #6812 is a reply to message #6811] |
Fri, 25 October 2002 05:14 |
|
belmax
Messages: 114 Registered: October 2002 Location: Saint-Petersburg, Russia
Karma: 0
|
Senior Member |
|
|
Ilia,
I make my FUD in win-1251 charset, because my old forum (WBB) has same charset.
I wonna import messages from newsgroup. His messages in KOI-8r charset.
Can nntp.php convert (KOI-8R --> Win-1251) messages from newsgroup on the fly?
And reversed convert when my users post messages from FUD to newsgroup.
Can you, Ilia, make this modification for us?
Thanks
sorry for my poor english
[Updated on: Fri, 25 October 2002 06:29] Report message to a moderator
|
|
|
|
|
|
Re: Start importing messages from asigned date [message #6830 is a reply to message #6814] |
Fri, 25 October 2002 12:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
belmax wrote on Fri, 25 October 2002 02:26 | Ilia,
I successfuly start import messages from newsgroup.
But FUD take very old messages (2001 year).
This messages today is not actually and use more disk space.
I dont need this old messages.
How I can set up date, from wich I wont start import messages?
|
Well, there are two alternatives, you can allow the messages to be imported and then use the 'Thread Pruning' option to remove all messages inside the imported forum older then X days/weeks/etc...
The other possibility is more complex but non-the-less doable. FUDforum keeps a file where it contains the last NNTP id of the message it imported last, if you modify this id to an id of a message older then certain date then only messages newer then that message will be imported.
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: Start importing messages from asigned date [message #6899 is a reply to message #6898] |
Mon, 28 October 2002 13:33 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
No, connect to the news group manually and find out an id of a message that you want to start with. Then put the id of that message inside that file.
When the import process will run it'll import messages who's IDs are greater then the id of the message you've entered.
FUDforum Core Developer
|
|
|
|
|
Re: Start importing messages from asigned date [message #6902 is a reply to message #6901] |
Mon, 28 October 2002 15:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You are taking a wrong approach. To get the above mentioned id, you need to manually (via telnet) make a request to the NNTP server and request a list of articles in the news group you are trying to import. That will return a few number such as 'starting id' and number of entries. Using those two numbers you can specify a proper starting position.
FUDforum Core Developer
|
|
|
|
|
|
Re: Start importing messages from asigned date [message #6920 is a reply to message #6917] |
Mon, 28 October 2002 18:02 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The lock file is and always be 0 bytes, it is used for something else entirely, primarily to prevent more then 1 nntp import script running on the same newsgroup.
The other file should contain just the number from which to start importing, no new lines or anything like that, just a number.
To get this number you must follow a VERY basic procedure:
telnet news_server 119
GROUP your_news_group
The response will look something like this:
211 2001 6063 8089 your_news_group
211 - Return Code
2001 - # number of messages
6063 - 1st message id
8089 - last message id
I think it should be pretty obvious what you need to do from this point on...
FUDforum Core Developer
|
|
|
|
|
|