Thread View: news.software.nntp
18 messages
18 total messages
Started by Jeffrey M. Vinocur
Sat, 29 Mar 2008 13:34
Re: How can I restore an expired message ?
Author: Jeffrey M. Vinocur
Date: Sat, 29 Mar 2008 13:34
Date: Sat, 29 Mar 2008 13:34
19 lines
2001 bytes
2001 bytes
In article <9a23a2ce-0004-4207-bfca-f2ca1638512c@c19g2000prf.googlegroups.com>, Diego M. Garcia <diego.unitone@gmail.com> wrote: >Hi guys I've an linux box with inn working on it, but its expire time >was very short so I've setup it to doesnt expire anymore since it is >used for local projects only. But the new news clients cannot view the >old articles so I need to restore it ! How can I accomplish that ? You're not getting much response because you're in the wrong group (I've crossposted this to news.software.nntp for you). I'm having a little trouble figuring out what you're trying to accomplish. If you have restored old article files into the spool, but but they aren't visible to clients, you need to rebuild the overview database and possibly renumber the active file. In current versions of INN, this is most easily done with tdx-util.
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Fri, 04 Apr 2008 20:47
Date: Fri, 04 Apr 2008 20:47
26 lines
2660 bytes
2660 bytes
On 29 mar, 10:34, j...@litech.org (Jeffrey M. Vinocur) wrote: > In article <9a23a2ce-0004-4207-bfca-f2ca16385...@c19g2000prf.googlegroups.com>, > Diego M. Garcia <diego.unit...@gmail.com> wrote: > > >Hi guys I've an linux box with inn working on it, but its expire time > >was very short so I've setup it to doesnt expire anymore since it is > >used for local projects only. But the new news clients cannot view the > >old articles so I need to restore it ! How can I accomplish that ? > > You're not getting much response because you're in the wrong > group (I've crossposted this to news.software.nntp for you). > > I'm having a little trouble figuring out what you're trying to > accomplish. > > If you have restored old article files into the spool, but but > they aren't visible to clients, you need to rebuild the overview > database and possibly renumber the active file. In current > versions of INN, this is most easily done with tdx-util. Thanks for the tip Jeffrey ;) I will look for it ! Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Fri, 04 Apr 2008 20:58
Date: Fri, 04 Apr 2008 20:58
10 lines
1935 bytes
1935 bytes
Jeffrey the thing is, my inn server has expired the user messages so I want to reload that messages to the group so the new users can see the old messages. I'm looking on how to accomplish that with the tdx-util like you sayed. Thanks a lot, Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Jeffrey M. Vinocur
Date: Fri, 04 Apr 2008 21:03
Date: Fri, 04 Apr 2008 21:03
21 lines
1929 bytes
1929 bytes
In article <ebc1232b-f003-45a2-a92b-8222faf9d110@8g2000hsu.googlegroups.com>, Diego M. Garcia <diego.unitone@gmail.com> wrote: >Jeffrey the thing is, my inn server has expired the user messages so I >want to reload that messages to the group so the new users can see the >old messages. Okay, the first step is to get the articles themselves back in the spool (and then you rebuild the overview with tdx-util). What format do you currently have the articles in? >I'm looking on how to accomplish that with the tdx-util like you >sayed. ^^^^^ "said" (but your English is quite good otherwise) -- Jeffrey M. Vinocur jeff@litech.org
Re: How can I restore an expired message ?
Author: Jeffrey M. Vinocur
Date: Fri, 04 Apr 2008 21:03
Date: Fri, 04 Apr 2008 21:03
27 lines
2367 bytes
2367 bytes
In article <ft6528$kmj$1@puck.litech.org>, Jeffrey M. Vinocur <jeff@litech.org> wrote: >In article <ebc1232b-f003-45a2-a92b-8222faf9d110@8g2000hsu.googlegroups.com>, >Diego M. Garcia <diego.unitone@gmail.com> wrote: >>Jeffrey the thing is, my inn server has expired the user messages so I >>want to reload that messages to the group so the new users can see the >>old messages. > >Okay, the first step is to get the articles themselves back in >the spool (and then you rebuild the overview with tdx-util). > >What format do you currently have the articles in? I am going out of town for a few days, so I thought I would just try to answer this preemptively. If your storage method is tradspool, you will need to get the articles, one per file, back into the appropriate subdirectory of $pathspool/articles/ with the appropriate names (which would be the article number as you see in the Xref header). Depending on the format you have to start with, and how many articles there are, this may require a little bit of scripting. -- Jeffrey M. Vinocur jeff@litech.org
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Fri, 04 Apr 2008 21:50
Date: Fri, 04 Apr 2008 21:50
38 lines
3228 bytes
3228 bytes
On 4 abr, 18:03, j...@litech.org (Jeffrey M. Vinocur) wrote: > In article <ft6528$km...@puck.litech.org>, > Jeffrey M. Vinocur <j...@litech.org> wrote: > > >In article <ebc1232b-f003-45a2-a92b-8222faf9d...@8g2000hsu.googlegroups.com>, > >Diego M. Garcia <diego.unit...@gmail.com> wrote: > >>Jeffrey the thing is, my inn server has expired the user messages so I > >>want to reload that messages to the group so the new users can see the > >>old messages. > > >Okay, the first step is to get the articles themselves back in > >the spool (and then you rebuild the overview with tdx-util). > > >What format do you currently have the articles in? > > I am going out of town for a few days, so I thought I would just > try to answer this preemptively. > > If your storage method is tradspool, you will need to get the > articles, one per file, back into the appropriate subdirectory of > $pathspool/articles/ with the appropriate names (which would be > the article number as you see in the Xref header). Depending on > the format you have to start with, and how many articles there > are, this may require a little bit of scripting. > > -- > Jeffrey M. Vinocur > j...@litech.org How can I know what is the format that I'm using ? I'm new to inn server ... sorry for that .. I have the messages in my news client dont know if this can help in anything ! Thank you very much for your reply ;) Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Fri, 04 Apr 2008 22:04
Date: Fri, 04 Apr 2008 22:04
59 lines
3844 bytes
3844 bytes
On 4 abr, 18:50, "Diego M. Garcia" <diego.unit...@gmail.com> wrote: > On 4 abr, 18:03, j...@litech.org (Jeffrey M. Vinocur) wrote: > > > > > > > In article <ft6528$km...@puck.litech.org>, > > Jeffrey M. Vinocur <j...@litech.org> wrote: > > > >In article <ebc1232b-f003-45a2-a92b-8222faf9d...@8g2000hsu.googlegroups.com>, > > >Diego M. Garcia <diego.unit...@gmail.com> wrote: > > >>Jeffrey the thing is, my inn server has expired the user messages so I > > >>want to reload that messages to the group so the new users can see the > > >>old messages. > > > >Okay, the first step is to get the articles themselves back in > > >the spool (and then you rebuild the overview with tdx-util). > > > >What format do you currently have the articles in? > > > I am going out of town for a few days, so I thought I would just > > try to answer this preemptively. > > > If your storage method is tradspool, you will need to get the > > articles, one per file, back into the appropriate subdirectory of > > $pathspool/articles/ with the appropriate names (which would be > > the article number as you see in the Xref header). Depending on > > the format you have to start with, and how many articles there > > are, this may require a little bit of scripting. > > > -- > > Jeffrey M. Vinocur > > j...@litech.org > > How can I know what is the format that I'm using ? I'm new to inn > server ... sorry for that .. > I have the messages in my news client dont know if this can help in > anything ! > > Thank you very much for your reply ;) > Regards, > Diego Garcia- Ocultar texto entre aspas - > > - Mostrar texto entre aspas - Ok I dont know if I'm right but I suspect that is using the tradspool, because I've founded the file tradspool.map inside the /var/spool/ news/. I dont know where to locate the old articles files, because inside the folder /var/spool/news/articles/ it just contains empty folders ... Thank you again ;) Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Jeffrey M. Vinocur
Date: Sat, 05 Apr 2008 01:47
Date: Sat, 05 Apr 2008 01:47
30 lines
2349 bytes
2349 bytes
In article <4954dc70-a47c-4dd7-8758-1b35413c8917@b1g2000hsg.googlegroups.com>, Diego M. Garcia <diego.unitone@gmail.com> wrote: >On 4 abr, 18:50, "Diego M. Garcia" <diego.unit...@gmail.com> wrote: > >> How can I know what is the format that I'm using ? I'm new to inn >> server ... sorry for that .. You would look in storage.conf (but if you don't know the answer, probably you are using tradspool!). >I dont know where to locate the old articles files, because inside the >folder /var/spool/news/articles/ it just contains empty folders ... Right, if the articles expired from INN, they are gone and you will not find them anywhere on the server. If you still have the articles in your client, then it is not impossible to recover them (although it may be more trouble than you want to take). You would need to investigate what format your client saves the articles as (perhaps it can save or export them in a plaintext format), and then figure out a way to convert those to one article per file. -- Jeffrey M. Vinocur jeff@litech.org
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Sat, 05 Apr 2008 20:34
Date: Sat, 05 Apr 2008 20:34
39 lines
3140 bytes
3140 bytes
On 4 abr, 22:47, j...@litech.org (Jeffrey M. Vinocur) wrote: > In article <4954dc70-a47c-4dd7-8758-1b35413c8...@b1g2000hsg.googlegroups.com>, > Diego M. Garcia <diego.unit...@gmail.com> wrote: > > >On 4 abr, 18:50, "Diego M. Garcia" <diego.unit...@gmail.com> wrote: > > >> How can I know what is the format that I'm using ? I'm new to inn > >> server ... sorry for that .. > > You would look in storage.conf (but if you don't know the answer, > probably you are using tradspool!). > > >I dont know where to locate the old articles files, because inside the > >folder /var/spool/news/articles/ it just contains empty folders ... > > Right, if the articles expired from INN, they are gone and you > will not find them anywhere on the server. > > If you still have the articles in your client, then it is not > impossible to recover them (although it may be more trouble than > you want to take). > > You would need to investigate what format your client saves the > articles as (perhaps it can save or export them in a plaintext > format), and then figure out a way to convert those to one > article per file. > > -- > Jeffrey M. Vinocur > j...@litech.org Hi Jeffrey, I've checked my news client and its possible to save the messages to txt format. How can I procced ? Sorry to boder you :/ Thanks for the great help :) Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Julien ÉLIE
Date: Sat, 05 Apr 2008 21:34
Date: Sat, 05 Apr 2008 21:34
44 lines
3010 bytes
3010 bytes
Hi Diego,
>> You would need to investigate what format your client saves the
>> articles as (perhaps it can save or export them in a plaintext
>> format), and then figure out a way to convert those to one
>> article per file.
>
> I've checked my news client and its possible to save the messages to
> txt format. How can I procced ?
Do your articles also contain their headers?
If yes, you can use something like:
cat article.txt | inews -h
See the man page for inews <http://www.eyrie.org/~eagle/software/inn/docs/inews.html>
if you need to tweak it (or if you do not have headers).
By the way, there are probably too many headers and you should strip
those which will prevent your article from being accepted. I know
this line is bad in general (if there are matches in the body itself)
but it might be useful here before inews:
grep -E -v "^(X-Complaints-To|Xref|X-Trace|NNTP-Posting-Host): "
You should also tell innd to accept articles posted more than ten days ago:
ctlinnd param c 0
otherwise, they will be rejected. Do not forget to put the right configuration
after your process:
ctlinnd param c 10
Good luck,
--
Julien ÉLIE
« -- Vous refusez de porter pilum ?
-- Ben... On préfère se faire porter pâles... » (Astérix)
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Sat, 05 Apr 2008 22:46
Date: Sat, 05 Apr 2008 22:46
298 lines
12985 bytes
12985 bytes
On 5 abr, 18:34, Julien ÉLIE <iul...@nom-de-mon-site.com.invalid> wrote: > Hi Diego, > > >> You would need to investigate what format your client saves the > >> articles as (perhaps it can save or export them in a plaintext > >> format), and then figure out a way to convert those to one > >> article per file. > > > I've checked my news client and its possible to save the messages to > > txt format. How can I procced ? > > Do your articles also contain their headers? > If yes, you can use something like: > > cat article.txt | inews -h > > See the man page for inews <http://www.eyrie.org/~eagle/software/inn/docs/inews.html> > if you need to tweak it (or if you do not have headers). > > By the way, there are probably too many headers and you should strip > those which will prevent your article from being accepted. I know > this line is bad in general (if there are matches in the body itself) > but it might be useful here before inews: > > grep -E -v "^(X-Complaints-To|Xref|X-Trace|NNTP-Posting-Host): " > > You should also tell innd to accept articles posted more than ten days ago: > > ctlinnd param c 0 > > otherwise, they will be rejected. Do not forget to put the right configuration > after your process: > > ctlinnd param c 10 > > Good luck, > > -- > Julien ÉLIE > > « -- Vous refusez de porter pilum ? > -- Ben... On préfère se faire porter pâles... » (Astérix) Hi Julien, Thanks for yor response ;) I've performed the follow command grep -E -v " ^(X-Complaints-To|Xref| X-Trace|NNTP-Posting-Host): " /home/diego/Article.txt | inews -h and got the follow result: inews: more than 101 lines of header inews: article not posted I've googled about it and just find some guy saing that is a bug of inews ... dont know if its true so I post it here ... Here is just the result of the grep command: Path: localhost.localdomain!not-for-mail From: Diego M. Garcia <diego@nospam.com.br> Newsgroups: unitone.beta.animail Subject: Api do Sistema Animail para desenvolvimento de Plugins Date: Tue, 11 Mar 2008 19:58:28 -0300 Organization: Unit One Lines: 195 Message-ID: <mn.5cae7d833e306dae.82561@nospam.com.br> NNTP-Posting-Host: 189.29.188.119 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1205275796 13968 189.29.188.119 (11 Mar 2008 22:49:56 GMT) X-Complaints-To: news@localhost.localdomain NNTP-Posting-Date: Tue, 11 Mar 2008 22:49:56 +0000 (UTC) X-Newsreader: MesNews/1.08.00.01-gb Xref: localhost.localdomain unitone.beta.animail:60 Segue abaixo as regras para desenvolvimento de Plugins para o Animail, Esta documentação ainda não é a final e pode ser modificada, a versão atual do sistema ainda não suporta porem farei o maximo possivel para que o proximo release já possua a integração com os plugins ! Grande abraço a todos os colaboradores do sistema. ==================================| Documentação Plugins Animail | ==================================| Está documentação irá guia-lo em como desenvolver um plugin para o sistema Animail. Abaixo detalharemos todas os tipos de plugins disponiveis e as solicitações feitas pelo sistema em todos os modulos. ======================| Modulo Principal | ======================| * Todas os Plugins deve possuir os metodos abaixo. 1º Ao abrir, o sistema verifica a existencia de todas as dll's de plugins no diretório Plugins na pasta raiz do sistema, caso encontre dll's que não foram previamente instalada, ele automaticamente verifica se a dll possui todos os metodos exportados para funcionamento correto, se estiver tudo ok então ele adiciona a referencia a dll em sua lista de configurações internas. 2º O sistema carrega as dlls em memoria para agilizar na hora do processamento e faz uma solicitação a dll utilizando a função function GetPluginInfo(infoType: Integer): Pchar; Onde o parametro infoType pode ser: itName = 0 //Solicita Nome do Plugin itDescription = 1 //Solicita Descrição do Plugin itVersion = 2 //Solicita Versão do Plugin itAutorName = 3 //Solicita Nome do Autor do Plugin itAutorSite = 4 //Solicita o endereço do Site do Autor do Plugin itAutorCopyRight = 5 //Solicita as regras de uso do Autor do Plugin ==================================| plugin de Importação / Exportação | ==================================| 1º O sistema verifica o tipo do plugin utilizando a função GetPluginType: Integer; que devera retornar um dos valores abaixo: ptImportAndExport = 0 //Indica que é um Plugin de Importação e Exportação ptFilterMessage = 1 //Indica que é um Plugin para filtrar as mensagens ptValidateMessages = 2 //Indica que é um Plugin de validação de mensagens 2º Ao encontrar o tipo ptImportAndExport o sistema solicitara um pedido pelo Nome do Menu de Importação / Exportacao a ser criado na tela de Importação / Exportação chamando a função GetImportMenuName: string ou GetExportMenuName: string e em seguida a funçao ShowImportForm: Integer ou ShowExportForm:Integer. As funções ShowImportForm e ShowExportForm devem retornar um dos seguintes dados: sfSuccess = 0 //Indica que os dados estão ok e podem ser importados. sfError = 1 //Indica que os dados não estão ok e o sistema deverá mostrar o erro. sfShowInfo = 2 //Indica que esta ok porem o sistema devera mostrar uma mensagem de informação antes de começar a importação. sfShowWarning = 3 //Indica que esta ok porem o sistema devera mostrar uma mensagem de alerta antes de começar a importação. 3º Após chamar a funçao acima o sistema analiza os casos, se for sfSucess então faz um chamado a ImportedRecordCount:Integer e em seguida chama a funçao GetNextImportedRecord: array [0..1] of pchar; que devera retornar um array de pchar com os dados Nome e Email a quantidade de vezes retornada pela funçao ImportedRecordCount. Se for retornado sfError o sistema automaticamente faz um chamado a funçao GetErrorMsg: Pchar e mostra o erro para o usuario. Se for retornado sfShowInfo o sistema automaticamente faz um chamado a funçao GetMsg: Pchar, mostra a mensagem de informação para o usuario e em seguida começa a importação da mesma forma que foi mencionado no caso do sfSuccess. Se for retornado sfShowWarning o sistema automaticamente faz um chamado a funçao GetMsg: Pchar, mostra a mensagem de alerta para o usuario e em seguida começa a importação da mesma forma que foi mencionado no caso do sfSuccess. =================================| Plugin para filtrar as Mensagens | =================================| 1º O sistema verifica o tipo do plugin utilizando a função GetPluginType: Integer; que devera retornar um dos valores abaixo: ptImportAndExport = 0 //Indica que é um Plugin de Importação e Exportação ptFilterMessage = 1 //Indica que é um Plugin para filtrar as mensagens ptValidateMessages = 2 //Indica que é um Plugin de validação de mensagens 2º Ao encontrar o tipo ptFilterMessage o sistema aramazena na lista de plugins de Filtro de Mensagens e Durante o funcionamento do sistema, ao clicar em enviar o sistema dispara a seguinte função para cada item da lista: function ProcessMsg(mailUser, mailEmail, mailSubject, mailText: PChar): array [0..3] of PChar; O Plugin deverá processar os parametros para identificar as tags e devolver o result com os dados que o sistema deverá enviar para o destinatario ou uma string vazia caso tenha ocorrido uma exceção durante o processamento ou caso esta funcionalidade não esteja disponivel no plugin. Exemplo de Result necessario: var apResult: array [0..3] of PChar; begin apResult[0] := 'Diego'; apResult[1] := 'diego@nospam.com'; apResult[2] := 'Titulo da mensagem alterada pelo plugin.'; apResult[3] := 'Novo texto colocado pelo plugin'; Result := apResult; end; Caso a função retorne uma string vazia o sistema fara uma solicitação a dll chamando a função function HasError: Bool; Que indica se o plugin possui algum erro a ser mostrado pro úsuario Caso o Result seja verdadeiro o sistema chamara a funçao function GetLastError: PChar; Onde devera ser devolvido o result com o texto do erro. ====================================| Plugin para validação das Mensagens | ====================================| 1º O sistema verifica o tipo do plugin utilizando a função GetPluginType: Integer; que devera retornar um dos valores abaixo: ptImportAndExport = 0 //Indica que é um Plugin de Importação e Exportação ptFilterMessage = 1 //Indica que é um Plugin para filtrar as mensagens ptValidateMessages = 2 //Indica que é um Plugin de validação de mensagens 2º Ao encontrar o tipo ptValidateMessages o sistema aramazena na lista de plugins de Validaçao de Mensagens e Durante o funcionamento do sistema, apos o termino do processo de envio do sistema a seguinte função é chamada CheckProcessedMail(mailUser, mailEmail, mailSubject, mailText: PChar; mailPercent: Integer; mailLog: PChar):Bool; para cada email da lista que foi enviado, a funçao devera retornar True caso tenha sido validado com sucesso e False caso não tenha sido. 3º Ao termino deste processo sera feito um chamado a função HasCustomReport: Bool caso seja verdadeiro o sistema chamara o metodo ShowCustomReport do contrario nada mais será feito E o resultado oficial permanecera o da tela de estatisticas de envio padrao. ======================| Modulo Sobre | ======================| 1º Ao abrir o modulo sobre o sistema carrega todas as informações sobre os modulos carregados em memoria sendo assim nenhuma solicitação a dll é feita. -- Grande Abraço, Diego M. Garcia http://unitonedev.blogspot.com Thanks for the help guys, Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Julien ÉLIE
Date: Sun, 06 Apr 2008 06:37
Date: Sun, 06 Apr 2008 06:37
34 lines
2973 bytes
2973 bytes
Hi Diego, > I've performed the follow command grep -E -v " ^(X-Complaints-To|Xref| > X-Trace|NNTP-Posting-Host): " /home/diego/Article.txt | inews -h > and got the follow result: Seeing your article, you might also add "Path|NNTP-Posting-Date". As for your Message-ID, you will have to remove it if the article has already been received/rejected by your news server. > inews: more than 101 lines of header > inews: article not posted > > I've googled about it and just find some guy saing that is a bug of > inews ... dont know if its true so I post it here ... I have just tried to post your article to a local group on my news server and it works well. At least, it shoul work with INN 2.4/2.5. It looks as though inews does not find the blank line between "Xref" and "Segue abaixo"... Are you sure it is present in your file? > Here is just the result of the grep command: Is it the result of the grep command? It shouldn't contain all these headers! -- Julien ÉLIE « E Roma nemo te diuidet omen amore. »
Re: How can I restore an expired message ?
Author: Urs Janßen
Date: Sun, 06 Apr 2008 10:00
Date: Sun, 06 Apr 2008 10:00
13 lines
2226 bytes
2226 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>> grep -E -v " ^(X-Complaints-To|Xref|X-Trace|NNTP-Posting-Host): " /home/diego/Article.txt | inews -h
^remove that whitespace
>> inews: more than 101 lines of header
your saved article has \r\n where inews expects \n (or vice versa) ->
header/body delimiter not found -> all lines treated as headers -> error
> Is it the result of the grep command? It shouldn't contain all
> these headers!
" ^" vs. "^"
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Sun, 06 Apr 2008 14:15
Date: Sun, 06 Apr 2008 14:15
77 lines
4854 bytes
4854 bytes
On 6 abr, 03:37, Julien ÉLIE <iul...@nom-de-mon-site.com.invalid> wrote: > Hi Diego, > > > I've performed the follow command grep -E -v " ^(X-Complaints-To|Xref| > > X-Trace|NNTP-Posting-Host): " /home/diego/Article.txt | inews -h > > and got the follow result: > > Seeing your article, you might also add "Path|NNTP-Posting-Date". > As for your Message-ID, you will have to remove it if the article > has already been received/rejected by your news server. > > > inews: more than 101 lines of header > > inews: article not posted > > > I've googled about it and just find some guy saing that is a bug of > > inews ... dont know if its true so I post it here ... > > I have just tried to post your article to a local group on my news > server and it works well. At least, it shoul work with INN 2.4/2.5. > > It looks as though inews does not find the blank line between "Xref" > and "Segue abaixo"... Are you sure it is present in your file? > > > Here is just the result of the grep command: > > Is it the result of the grep command? It shouldn't contain all > these headers! > > -- > Julien ÉLIE > > « E Roma nemo te diuidet omen amore. » Hi Julien yes it is the result of the grep command but I've noted that the command has an space in it after the '"' character, take a look: grep -E -v "^ (X-Complaints-To|Xref|X-Trace|NNTP-Posting-Host): " / home/diego/Article.txt that way the result is the one I've posted for you. If I remove the space from the command (grep -E -v "^(X- Complaints-To|Xref|X-Trace|NNTP-Posting-Host): " /home/diego/ Article.txt) the result is changed to: Path: localhost.localdomain!not-for-mail From: Diego M. Garcia <diego@nospam.com.br> Newsgroups: unitone.beta.animail Subject: Api do Sistema Animail para desenvolvimento de Plugins Date: Tue, 11 Mar 2008 19:58:28 -0300 Organization: Unit One Lines: 195 Message-ID: <mn.5cae7d833e306dae.82561@nospam.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Date: Tue, 11 Mar 2008 22:49:56 +0000 (UTC) X-Newsreader: MesNews/1.08.00.01-gb Segue abaixo as regras para desenvolvimento de Plugins para o Animail, Esta documentação ainda não é a final e pode ser modificada, a versão atual do sistema ainda não suporta porem farei o maximo possivel para que o proximo release já possua a integração com os plugins ! Grande abraço a todos os colaboradores do sistema. .... But if I try to post it with the | inews -h the follow error happens: inews: no space after colon in " Onde o parametro infoType po..." inews: article not posted I dont know but it seens that inews is doing something wrong when processing the file... Any tips ? Thank you very mutch Julien and Jeffrey ! Regards, Diego Garcia
Re: How can I restore an expired message ?
Author: Julien ÉLIE
Date: Sun, 06 Apr 2008 16:34
Date: Sun, 06 Apr 2008 16:34
15 lines
2295 bytes
2295 bytes
Hi Diego, > inews: no space after colon in " > Onde o parametro infoType po..." > inews: article not posted inews is still considering the body of your article as its headers. Did you try to use "\n" instead of "\r\n" as line endings? -- Julien ÉLIE « Rien ni personne n'a tout à fait tort : même une horloge arrêtée a raison deux fois par jour. » (John Steinbeck)
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Sun, 06 Apr 2008 17:13
Date: Sun, 06 Apr 2008 17:13
34 lines
3100 bytes
3100 bytes
On 6 abr, 13:34, Julien ÉLIE <iul...@nom-de-mon-site.com.invalid> wrote: > Hi Diego, > > > inews: no space after colon in " > > Onde o parametro infoType po..." > > inews: article not posted > > inews is still considering the body of your article as its headers. > Did you try to use "\n" instead of "\r\n" as line endings? > > -- > Julien ÉLIE > > « Rien ni personne n'a tout à fait tort : même une horloge > arrêtée a raison deux fois par jour. » (John Steinbeck) Ok to solve that problem I used the dos2unix /home/diego/newArticle then I use the command /usr/lib/news/bin/ctlinnd param c 0 that returns me Ok after that I tryed again to cat /home/diego/ newArticle | inews -h and got the follow result: inews: cannot send article to server: 441 Can't set system "NNTP-Posting-Date" header inews: article not posted Dont know why because the command "ctlinnd param c 0" should avoid that ! Any more tips ? Thanks for the great help, Regards, Diego Garcia.
Re: How can I restore an expired message ?
Author: Julien ÉLIE
Date: Sun, 06 Apr 2008 17:59
Date: Sun, 06 Apr 2008 17:59
30 lines
3020 bytes
3020 bytes
Hi Diego,
> and got the follow result: inews: cannot send article to server: 441
> Can't set system "NNTP-Posting-Date" header
> inews: article not posted
You should try what I told you:
Seeing your article, you might also add "Path|NNTP-Posting-Date".
As for your Message-ID, you will have to remove it if the article
has already been received/rejected by your news server.
Normally, only "NNTP-Posting-Date" should be removed ("Path" and
"Message-ID" are OK for inews).
> Dont know why because the command "ctlinnd param c 0" should avoid
> that !
This setting allows to accept articles whatever their Date: header is.
It is not related to the NNTP-Posting-Date: header which is added
by the server when it receives your initial post. So if it is set,
the server rejects the article.
--
Julien ÉLIE
« L'homme a imaginé le cercle avant de savoir que la terre était ronde.
Ça prouve quand même une certaine faculté d'invention. » (Jacques Sternberg)
Re: How can I restore an expired message ?
Author: Diego M. Garcia
Date: Sun, 06 Apr 2008 18:46
Date: Sun, 06 Apr 2008 18:46
38 lines
3509 bytes
3509 bytes
On 6 abr, 14:59, Julien ÉLIE <iul...@nom-de-mon-site.com.invalid>
wrote:
> Hi Diego,
>
> > and got the follow result: inews: cannot send article to server: 441
> > Can't set system "NNTP-Posting-Date" header
> > inews: article not posted
>
> You should try what I told you:
>
> Seeing your article, you might also add "Path|NNTP-Posting-Date".
> As for your Message-ID, you will have to remove it if the article
> has already been received/rejected by your news server.
>
> Normally, only "NNTP-Posting-Date" should be removed ("Path" and
> "Message-ID" are OK for inews).
>
> > Dont know why because the command "ctlinnd param c 0" should avoid
> > that !
>
> This setting allows to accept articles whatever their Date: header is.
> It is not related to the NNTP-Posting-Date: header which is added
> by the server when it receives your initial post. So if it is set,
> the server rejects the article.
>
> --
> Julien ÉLIE
>
> « L'homme a imaginé le cercle avant de savoir que la terre était ronde.
> Ça prouve quand même une certaine faculté d'invention. » (Jacques Sternberg)
Ok I've just change the grep command to remove the NNTP-Posting-Date
and it works now ;)
Thank you very much Julien and Jeffrey ;)
Regards,
Diego Garcia
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads