🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
26 messages
26 total messages Started by Jon Bendtsen Wed, 13 May 2009 12:44
GRRRR, why does it have to be so stupid
#80999
Author: Jon Bendtsen
Date: Wed, 13 May 2009 12:44
14 lines
1474 bytes
Hi NG

"inews failed: inews: cannot send article to server: 441 Can't parse
"Date" header inews: article not posted"

*siiiiiiiiigh* you cant parse the Date header because there is no
Date header. But why doesnt it just create a Date header when there
is none?



JonB
ps: be strict what you send out, be forgiving what you receive. But
inn2 doesnt forgive mistakes like the above
Re: GRRRR, why does it have to be so stupid
#81000
Author: Grant Taylor
Date: Wed, 13 May 2009 15:31
13 lines
1434 bytes
On 05/13/09 07:44, Jon Bendtsen wrote:
> ps: be strict what you send out, be forgiving what you receive.

*nod*

"Be liberal in what you accept and conservative in what you send."

That has been an on going battle on all fronts for a *VERY* *LONG* time. 
  I doubt that that will change any time soon.



Grant. . . .
Re: GRRRR, why does it have to be so stupid
#81001
Author: Julien ÉLIE
Date: Wed, 13 May 2009 16:58
18 lines
1630 bytes
Hi Jon,

> "inews failed: inews: cannot send article to server: 441 Can't parse
> "Date" header inews: article not posted"
>
> *siiiiiiiiigh* you cant parse the Date header because there is no
> Date header.  But why doesnt it just create a Date header when there
> is none?

It is a mandatory header.  A news server should not generate it itself
upon receiving an article.

-- 
Julien ÉLIE

« Quod sis, esse uelis nihilque malis ;
  Summum nec metuas diem nec optes. » (Martial) 
Re: GRRRR, why does it have to be so stupid
#81002
Author: Jon Bendtsen
Date: Wed, 13 May 2009 17:17
19 lines
1648 bytes
Julien ÉLIE wrote:
> Hi Jon,
> 
>> "inews failed: inews: cannot send article to server: 441 Can't parse
>> "Date" header inews: article not posted"
>>
>> *siiiiiiiiigh* you cant parse the Date header because there is no
>> Date header.  But why doesnt it just create a Date header when there
>> is none?
> 
> It is a mandatory header.  A news server should not generate it itself
> upon receiving an article.

I think it should add the Date header if it is missing. But only
when a client posts.



JonB
Re: GRRRR, why does it have to be so stupid
#81003
Author: Heiko Schlichting
Date: Wed, 13 May 2009 17:35
20 lines
1825 bytes
Jon Bendtsen <noone@example.com> wrote:
> Julien ÉLIE wrote:
>>> But why doesnt it just create a Date header when there is none?
>> 
>> It is a mandatory header.  A news server should not generate it itself
>> upon receiving an article.
>
> I think it should add the Date header if it is missing. But only
> when a client posts.

No, it should not. Message-IDs are stored in history only for some period
and it is necessary to check, if the article is new and not already stored
in the history. Overwriting or generating a date header will increase the
risk of duplicates if someone injects old articles which happens every now
and then.

Therefore it is a very good thing that the header in mandatory. It protects
us for most of usenet wide duplicates.

Heiko
Re: GRRRR, why does it have to be so stupid
#81004
Author: Russ Allbery
Date: Wed, 13 May 2009 18:32
41 lines
2486 bytes
Jon Bendtsen <noone@example.com> writes:

> "inews failed: inews: cannot send article to server: 441 Can't parse
> "Date" header inews: article not posted"
>
> *siiiiiiiiigh* you cant parse the Date header because there is no
> Date header. But why doesnt it just create a Date header when there
> is none?

There's something very wrong here, since indeed INN will do exactly
that, as required by the protocol.  An injecting agent must be willing
to accept a proto-article without a Date header and add one.

What server are you talking to?  And are you sure there was no Date
header in the article, not even an empty one?

windlord:~> telnet news nntp
Trying 171.67.22.74...
Connected to news.stanford.edu (171.67.22.74).
Escape character is '^]'.
200 news.stanford.edu InterNetNews server INN 2.4.4 (20060818 snapshot) ready
mode reader
200 news.stanford.edu InterNetNews NNRP server INN 2.4.4 (20060818 snapshot) ready (posting ok).
post
340 Ok, recommended ID <guf3mk$7bi$1@news.stanford.edu>
Newsgroups: su.test
From: Russ Allbery <rra@stanford.edu>
Subject: Testing absence of Date header

Testing
..
240 Article posted <guf3mk$7bi$1@news.stanford.edu>
quit
205 .
Connection closed by foreign host.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: GRRRR, why does it have to be so stupid
#81005
Author: Julien ÉLIE
Date: Wed, 13 May 2009 19:25
28 lines
2227 bytes
Hi Russ,

> There's something very wrong here, since indeed INN will do exactly
> that, as required by the protocol.  An injecting agent must be willing
> to accept a proto-article without a Date header and add one.

Oh yes, I forgot about that.  In USEPRO:

  3.5.  Duties of an Injecting Agent

    The Message-ID and Date header fields with appropriate contents
    MUST be added when not present in the proto-article.


> What server are you talking to?  And are you sure there was no Date
> header in the article, not even an empty one?

Isn't it what we already spoke about last month here?

    <grcnc1$2uip$1@munin.diku.dk>

    http://groups.google.fr/group/news.software.nntp/browse_frm/thread/1d53db7beb3677e3

-- 
Julien ÉLIE

« A facto ad ius non datur consequentia. » 
Re: GRRRR, why does it have to be so stupid
#81006
Author: Russ Allbery
Date: Wed, 13 May 2009 19:37
21 lines
1775 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Hi Russ,

>> What server are you talking to?  And are you sure there was no Date
>> header in the article, not even an empty one?
>
> Isn't it what we already spoke about last month here?
>
>    <grcnc1$2uip$1@munin.diku.dk>
>
>    http://groups.google.fr/group/news.software.nntp/browse_frm/thread/1d53db7beb3677e3

Possibly so, although the original message said that there was no Date
header at all.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: GRRRR, why does it have to be so stupid
#81007
Author: Julien ÉLIE
Date: Wed, 13 May 2009 20:23
37 lines
2365 bytes
Hi Russ,

> Possibly so, although the original message said that there was no Date
> header at all.

Maybe.  The fact is that I cannot reproduce it with inews:


Both

22:19 news@trigo ~% echo "test" | inews -t "test" -n "trigofacile.test"
22:21 news@trigo ~% echo "Newsgroups: trigofacile.test\nSubject: test\n\ntest" | inews -h

send that message:


Path: news.trigofacile.com!not-for-mail
From: news@news.trigofacile.com (news)
Newsgroups: trigofacile.test
Subject: test
Date: Wed, 13 May 2009 22:20:05 +0200 (CEST)
Organization: Groupes francophones par TrigoFACILE
Lines: 1
Message-ID: <gufa1l$an9$1@news.trigofacile.com>
NNTP-Posting-Host: localhost.localdomain
X-Trace: news.trigofacile.com 1242246005 10986 127.0.0.1 (13 May 2009 20:20:05 GMT)
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 13 May 2009 20:20:05 +0000 (UTC)

test
..

-- 
Julien ÉLIE

« Vna salus uictis, nullam sperare salutem. » (Énée de Virgile) 
Re: GRRRR, why does it have to be so stupid
#81008
Author: Bruce Esquibel
Date: Wed, 13 May 2009 21:30
22 lines
1839 bytes
Julien ?LIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> Possibly so, although the original message said that there was no Date
>> header at all.

> Maybe.  The fact is that I cannot reproduce it with inews:


One other possibility is it might not be inn's inews he's using either.

I think trn and maybe pine (or mutt, not sure) ship with their own versions.

The OP didn't give any specifics on what platform or anything else he was
doing so it's just a left field guess. It's just there is a fraction of a
memory in my head from days long ago about running into something similar.

In my case it goes back to cnews and nntpd days but who knows with some of
these distros these days.

-bruce
bje@ripco.com
 
Re: GRRRR, why does it have to be so stupid
#81010
Author: D. Stussy
Date: Wed, 13 May 2009 23:10
23 lines
2068 bytes
"Grant Taylor" <gtaylor@riverviewtech.net> wrote in message
news:guep8q$1oq0$2@tranq7.tranquility.net...
> On 05/13/09 07:44, Jon Bendtsen wrote:
> > ps: be strict what you send out, be forgiving what you receive.
>
> "Be liberal in what you accept and conservative in what you send."

Not true anymore, but being too strict causes [false] rejections.  ;-)

> That has been an on going battle on all fronts for a *VERY* *LONG* time.
>   I doubt that that will change any time soon.

> > But why doesnt it just create a Date header when there is none?

That's not its job.  It's job is to make certain a message passed to it can
be posted.  The client program using "inews" is responsible.

Note in the recent RFCs 5321 and 5322 (for SMTP and e-mail in general),
there was an expanded discussion about whether servers should "fix"
messages or simply reject them.  Fixing is considered dangerous, and that
probably carries over to here as well.

Re: GRRRR, why does it have to be so stupid
#81012
Author: Julien ÉLIE
Date: Thu, 14 May 2009 05:46
84 lines
5585 bytes
Hi D. Stussy,

> Note in the recent RFCs 5321 and 5322 (for SMTP and e-mail in general),
> there was an expanded discussion about whether servers should "fix"
> messages or simply reject them.  Fixing is considered dangerous, and that
> probably carries over to here as well.

Interesting, indeed:

[RFC 5321]

6.4. Compensating for Irregularities

   Unfortunately, variations, creative interpretations, and outright
   violations of Internet mail protocols do occur; some would suggest
   that they occur quite frequently.  The debate as to whether a well-
   behaved SMTP receiver or relay should reject a malformed message,
   attempt to pass it on unchanged, or attempt to repair it to increase
   the odds of successful delivery (or subsequent reply) began almost
   with the dawn of structured network mail and shows no signs of
   abating.  Advocates of rejection claim that attempted repairs are
   rarely completely adequate and that rejection of bad messages is the
   only way to get the offending software repaired.  Advocates of
   "repair" or "deliver no matter what" argue that users prefer that
   mail go through it if at all possible and that there are significant
   market pressures in that direction.  In practice, these market
   pressures may be more important to particular vendors than strict
   conformance to the standards, regardless of the preference of the
   actual developers.

   The problems associated with ill-formed messages were exacerbated by
   the introduction of the split-UA mail reading protocols (Post Office
   Protocol (POP) version 2 [15], Post Office Protocol (POP) version 3
   [16], IMAP version 2 [41], and PCMAIL [42]).  These protocols
   encouraged the use of SMTP as a posting (message submission)
   protocol, and SMTP servers as relay systems for these client hosts
   (which are often only intermittently connected to the Internet).
   Historically, many of those client machines lacked some of the
   mechanisms and information assumed by SMTP (and indeed, by the mail
   format protocol, RFC 822 [28]).  Some could not keep adequate track
   of time; others had no concept of time zones; still others could not
   identify their own names or addresses; and, of course, none could
   satisfy the assumptions that underlay RFC 822's conception of
   authenticated addresses.

   In response to these weak SMTP clients, many SMTP systems now
   complete messages that are delivered to them in incomplete or
   incorrect form.  This strategy is generally considered appropriate
   when the server can identify or authenticate the client, and there
   are prior agreements between them.  By contrast, there is at best
   great concern about fixes applied by a relay or delivery SMTP server
   that has little or no knowledge of the user or client machine.  Many
   of these issues are addressed by using a separate protocol, such as
   that defined in RFC 4409 [18], for message submission, rather than
   using originating SMTP servers for that purpose.

   The following changes to a message being processed MAY be applied
   when necessary by an originating SMTP server, or one used as the
   target of SMTP as an initial posting (message submission) protocol:

   o  Addition of a message-id field when none appears

   o  Addition of a date, time, or time zone when none appears

   o  Correction of addresses to proper FQDN format

   The less information the server has about the client, the less likely
   these changes are to be correct and the more caution and conservatism
   should be applied when considering whether or not to perform fixes
   and how.  These changes MUST NOT be applied by an SMTP server that
   provides an intermediate relay function.

   In all cases, properly operating clients supplying correct
   information are preferred to corrections by the SMTP server.  In all
   cases, documentation SHOULD be provided in trace header fields and/or
   header field comments for actions performed by the servers.

-- 
Julien ÉLIE

« Deux informaticiens discutent vers le 2 janvier :
  -- Qu'est ce que tu as pris comme résolution cette année ?
  -- 1024 × 768, et toi ? » 
Re: GRRRR, why does it have to be so stupid
#81013
Author: Julien ÉLIE
Date: Thu, 14 May 2009 05:54
40 lines
2633 bytes
Hi Bruce,

>>> Possibly so, although the original message said that there was no Date
>>> header at all.
>>
>> Maybe.  The fact is that I cannot reproduce it with inews:
>
> One other possibility is it might not be inn's inews he's using either.

He wrote in his post-scriptum:

"ps: be strict what you send out, be forgiving what you receive. But
inn2 doesnt forgive mistakes like the above"

:)

Maybe he does not use the same version (I tested with INN 2.5.0 and
Russ with INN 2.4.4).  It is not an inews error but an innd error
that inews reports.

As Russ suggests, it first should be checked that the Date: header is
really absent from the original message.


> In my case it goes back to cnews and nntpd days but who knows with some of
> these distros these days.

C News seems to use it according to:
    http://packages.debian.org/fr/lenny/inews

(Too bad "suck" is not in Lenny.  It is marked as unavailable in Lenny,
in the recommended C News packages.)

-- 
Julien ÉLIE

« Deux informaticiens discutent vers le 2 janvier :
  -- Qu'est ce que tu as pris comme résolution cette année ?
  -- 1024 × 768, et toi ? » 
Re: GRRRR, why does it have to be so stupid
#81014
Author: Jon Bendtsen
Date: Thu, 14 May 2009 10:42
26 lines
2109 bytes
Russ Allbery wrote:
> Jon Bendtsen <noone@example.com> writes:
> 
>> "inews failed: inews: cannot send article to server: 441 Can't parse
>> "Date" header inews: article not posted"
>>
>> *siiiiiiiiigh* you cant parse the Date header because there is no
>> Date header. But why doesnt it just create a Date header when there
>> is none?
> 
> There's something very wrong here, since indeed INN will do exactly
> that, as required by the protocol.  An injecting agent must be willing
> to accept a proto-article without a Date header and add one.
> 
> What server are you talking to?  And are you sure there was no Date
> header in the article, not even an empty one?

i used mailpost from inn2. And i know that there was no date header
because after trying a handfull times to get inn2 to accept the date
header, only to have it rejected, edit in it, try again and be
rejected ... then i deleted the date header line and tried to submit
it again.



JonB
Re: GRRRR, why does it have to be so stupid
#81015
Author: Jon Bendtsen
Date: Thu, 14 May 2009 10:44
25 lines
2218 bytes
Julien ÉLIE wrote:
> Hi Russ,
> 
>> There's something very wrong here, since indeed INN will do exactly
>> that, as required by the protocol.  An injecting agent must be willing
>> to accept a proto-article without a Date header and add one.
> 
> Oh yes, I forgot about that.  In USEPRO:
> 
>  3.5.  Duties of an Injecting Agent
> 
>    The Message-ID and Date header fields with appropriate contents
>    MUST be added when not present in the proto-article.
> 
> 
>> What server are you talking to?  And are you sure there was no Date
>> header in the article, not even an empty one?
> 
> Isn't it what we already spoke about last month here?

yes, it is the same problem that reoccured for only a few posts. So
i tried to change the date header and post it a few times, but i
never succeded, so i decided to try posting without a date header,
but that didnt work either. And then i got annoyed with the software
beeing so INFLEXIBLE.
Re: GRRRR, why does it have to be so stupid
#81016
Author: Jon Bendtsen
Date: Thu, 14 May 2009 10:45
19 lines
1937 bytes
Bruce Esquibel wrote:
> Julien ?LIE <iulius@nom-de-mon-site.com.invalid> wrote:
> 
>>> Possibly so, although the original message said that there was no Date
>>> header at all.
> 
>> Maybe.  The fact is that I cannot reproduce it with inews:
> 
> 
> One other possibility is it might not be inn's inews he's using either.

No, it is mailpost from inn2 i use.


> The OP didn't give any specifics on what platform or anything else he was
> doing so it's just a left field guess. It's just there is a fraction of a
> memory in my head from days long ago about running into something similar.

sorry, next time i rant, i will add more details ;-)
Re: GRRRR, why does it have to be so stupid
#81017
Author: Jon Bendtsen
Date: Thu, 14 May 2009 11:00
47 lines
3038 bytes
Jon Bendtsen wrote:
> Bruce Esquibel wrote:
>> Julien ?LIE <iulius@nom-de-mon-site.com.invalid> wrote:
>>
>>>> Possibly so, although the original message said that there was no Date
>>>> header at all.
>>> Maybe.  The fact is that I cannot reproduce it with inews:
>>
>> One other possibility is it might not be inn's inews he's using either.
> 
> No, it is mailpost from inn2 i use.
> 
> 
>> The OP didn't give any specifics on what platform or anything else he was
>> doing so it's just a left field guess. It's just there is a fraction of a
>> memory in my head from days long ago about running into something similar.
> 
> sorry, next time i rant, i will add more details ;-)

Debian Etch, aka oldstable. I thought i was using Lenny, but
apparently this machine is not yet upgraded.
	inn2   2.4.3-1   'InterNetNews' news server

i use fetchmail to fetch emails from an exchange "mailing" list,
which is no more advanced than /etc/aliases. fetchmail calls
mailfilter that parses the headers, and calls
	/usr/lib/news/bin/mailpost
to actually post the messages. Almost 100% goes through without a
problem. Those that do not is dumped for manual treatment.

Amoung those manual are new "mailing" lists, and then there was 4
messages with a wrong date header. So i manually edited them,
changed the Message-ID and the Date header. But not good enough,
because the Date header was still rejected. i tried a few more
times, before deleting the Date header and trying. But that didnt
work either.

then i ranted.

Then i copied a random Date header from somewhere else and got them
posted.



JonB
ps: my news server is the mail archive, but we will have other
discussions on news now we have it.
Re: GRRRR, why does it have to be so stupid
#81018
Author: Julien ÉLIE
Date: Thu, 14 May 2009 17:19
39 lines
2519 bytes
Hi Jon,

>>> What server are you talking to?  And are you sure there was no Date
>>> header in the article, not even an empty one?
>>
>> Isn't it what we already spoke about last month here?
>
> yes, it is the same problem that reoccured for only a few posts. So
> i tried to change the date header and post it a few times, but i
> never succeded, so i decided to try posting without a date header,
> but that didnt work either. And then i got annoyed with the software
> beeing so INFLEXIBLE.

It is impossible you got the error your report when posting without
a Date: header.

I checked in the INN 2.4.3 source.


    if (!makedate(-1, false, datebuff, sizeof(datebuff)))
        return "Can't generate date header";

    if (HDR(HDR__DATE) == NULL) {
        HDR_SET(HDR__DATE, datebuff);
    } else {
        if ((t = parsedate(HDR(HDR__DATE), &Now)) == -1)
            return "Can't parse \"Date\" header";
    }


to sum up the code here.

-- 
Julien ÉLIE

« Deux informaticiens discutent vers le 2 janvier :
  -- Qu'est ce que tu as pris comme résolution cette année ?
  -- 1024 × 768, et toi ? » 
Re: GRRRR, why does it have to be so stupid
#81022
Author: Jon Bendtsen
Date: Fri, 15 May 2009 09:18
51 lines
3181 bytes
Julien ÉLIE wrote:
> Hi Jon,
> 
>>>> What server are you talking to?  And are you sure there was no Date
>>>> header in the article, not even an empty one?
>>>
>>> Isn't it what we already spoke about last month here?
>>
>> yes, it is the same problem that reoccured for only a few posts. So
>> i tried to change the date header and post it a few times, but i
>> never succeded, so i decided to try posting without a date header,
>> but that didnt work either. And then i got annoyed with the software
>> beeing so INFLEXIBLE.
> 
> It is impossible you got the error your report when posting without
> a Date: header.

Oh? thats funny, because i can reproduce it as seen below where i
can post it before with a date header, and then after removing the
date header i get an error message. (i had to change the Message-ID
too). Maybe debian changed some stuff in their inn2?


news@dknntp:~$ cat tarticle | /usr/lib/news/bin/mailpost -a approved
test
news@dknntp:~$ echo $?
0
news@dknntp:~$ cat tarticle
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: testing no date header
Date: Fri, 8 Jun 2007 10:06:25 +0200
Message-ID: <77141C10A603004D80385300C4E5A7C8E63975@example.com>
From: "Jon Bendtsen" <noone@example.com>
To: "Jon Bendtsen" <noone@example.com>

foobar
news@dknntp:~$ vi tarticle
news@dknntp:~$ cat tarticle | /usr/lib/news/bin/mailpost -a approved
test
inews failed: inews: cannot send article to server: 441 Can't parse
"Date" header inews: article not posted
news@dknntp:~$ cat tarticle
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: testing no date header
Message-ID: <77141C10A6E63975@example.com>
From: "Jon Bendtsen" <noone@example.com>
To: "Jon Bendtsen" <noone@example.com>

foobar
Re: GRRRR, why does it have to be so stupid
#81023
Author: Jon Bendtsen
Date: Fri, 15 May 2009 12:07
31 lines
2580 bytes
Jon Bendtsen wrote:
> Julien ÉLIE wrote:
>> Hi Jon,
>>
>>>>> What server are you talking to?  And are you sure there was no Date
>>>>> header in the article, not even an empty one?
>>>> Isn't it what we already spoke about last month here?
>>> yes, it is the same problem that reoccured for only a few posts. So
>>> i tried to change the date header and post it a few times, but i
>>> never succeded, so i decided to try posting without a date header,
>>> but that didnt work either. And then i got annoyed with the software
>>> beeing so INFLEXIBLE.
>> It is impossible you got the error your report when posting without
>> a Date: header.
> 
> Oh? thats funny, because i can reproduce it as seen below where i
> can post it before with a date header, and then after removing the
> date header i get an error message. (i had to change the Message-ID
> too). Maybe debian changed some stuff in their inn2?

i just upgraded to debian lenny
	ii  inn2                2.4.5-5             'InterNetNews' news server


news@dknntp:~$ cat tarticle | /usr/lib/news/bin/mailpost -a approved
test
inews failed: inews: cannot send article to server: 441 Can't parse
"Date" header inews: article not posted


JonB
Re: GRRRR, why does it have to be so stupid
#81025
Author: Urs Janßen
Date: Fri, 15 May 2009 13:54
18 lines
2124 bytes
In <gujlut$1mme$1@munin.diku.dk>, Jon Bendtsen wrote:
> i just upgraded to debian lenny
>        ii  inn2                2.4.5-5             'InterNetNews' news server
> 
> news@dknntp:~$ cat tarticle | /usr/lib/news/bin/mailpost -a approved
> test
> inews failed: inews: cannot send article to server: 441 Can't parse
> "Date" header inews: article not posted

akk3% grep -n dateHdr inn-2.4.5/frontends/mailpost.in
131:my $dateHdr= "MAILPOST-UNKNOWN-DATE" ;
267:$dateHdr = $date if $date ;
308:${real_news_hdrs}Date: ${dateHdr}

according to mailpost(8) mailpost expects a "a properly formatted
e-mail message" which has a Date:-header in the absence of a Date
header it inserts "Date: MAILPOST-UNKNOWN-DATE" (to avoid
reinsertions?) which inews of course can't parse.
Re: GRRRR, why does it have to be so stupid
#81026
Author: Jon Bendtsen
Date: Fri, 15 May 2009 14:01
23 lines
2358 bytes
Urs Janßen wrote:
> In <gujlut$1mme$1@munin.diku.dk>, Jon Bendtsen wrote:
>> i just upgraded to debian lenny
>>        ii  inn2                2.4.5-5             'InterNetNews' news server
>>
>> news@dknntp:~$ cat tarticle | /usr/lib/news/bin/mailpost -a approved
>> test
>> inews failed: inews: cannot send article to server: 441 Can't parse
>> "Date" header inews: article not posted
> 
> akk3% grep -n dateHdr inn-2.4.5/frontends/mailpost.in
> 131:my $dateHdr= "MAILPOST-UNKNOWN-DATE" ;
> 267:$dateHdr = $date if $date ;
> 308:${real_news_hdrs}Date: ${dateHdr}
> 
> according to mailpost(8) mailpost expects a "a properly formatted
> e-mail message" which has a Date:-header in the absence of a Date
> header it inserts "Date: MAILPOST-UNKNOWN-DATE" (to avoid
> reinsertions?) which inews of course can't parse.

oh, so thats the reason. You know, i consider mailpost to be a part
of inn2, so if mailpost does insert a Date header it should insert a
propper one that the rest of inn would accept.
Re: GRRRR, why does it have to be so stupid
#81031
Author: Urs Janßen
Date: Fri, 15 May 2009 22:49
8 lines
1786 bytes
In <gujsk7$1n4o$1@munin.diku.dk>, Jon Bendtsen wrote:
> oh, so thats the reason. You know, i consider mailpost to be a part
> of inn2, so if mailpost does insert a Date header

IMHO mailpost shouldn't insert a date header but exit with an error
message if the date header is missing, but I don't use mailpost and
if I would I wouldn't feed mails without a date header to it (and I
consider doing so a layer 8 problem).
Re: GRRRR, why does it have to be so stupid
#81034
Author: Jon Bendtsen
Date: Sat, 16 May 2009 07:21
16 lines
2026 bytes
Urs Janßen wrote:
> In <gujsk7$1n4o$1@munin.diku.dk>, Jon Bendtsen wrote:
>> oh, so thats the reason. You know, i consider mailpost to be a part
>> of inn2, so if mailpost does insert a Date header
> 
> IMHO mailpost shouldn't insert a date header but exit with an error
> message if the date header is missing, but I don't use mailpost and
> if I would I wouldn't feed mails without a date header to it (and I
> consider doing so a layer 8 problem).

I prefer flexible software that fixes problems with the input when
it is easy to do so.



JonB
Re: GRRRR, why does it have to be so stupid
#81035
Author: Julien ÉLIE
Date: Sat, 16 May 2009 11:34
32 lines
2707 bytes
Hi Jon,

>> IMHO mailpost shouldn't insert a date header but exit with an error
>> message if the date header is missing, but I don't use mailpost and
>> if I would I wouldn't feed mails without a date header to it (and I
>> consider doing so a layer 8 problem).
>
> I prefer flexible software that fixes problems with the input when
> it is easy to do so.

It is not at all easy to do so; mailpost cannot guess when the article
was written.

Note that you could put the current date when giving your bad-formatted
mail to mailpost, instead of removing the Date: header.
INN is shipped with "convdate".

% convdate
Sat May 16 13:31:50 2009

It prints the current time in a format INN will accept.
See <http://www.eyrie.org/~eagle/software/inn/docs/convdate.html>.

So just replace the bad Date: header with "Date: `convdate`\n", and
it will work fine.

-- 
Julien ÉLIE

« -- Le bureau des renseignements ?
  -- Sais pas. Adressez-vous aux renseignements, ils vous renseigneront. » (Astérix) 
Re: GRRRR, why does it have to be so stupid
#81038
Author: Jon Bendtsen
Date: Sat, 16 May 2009 15:46
31 lines
2500 bytes
Julien ÉLIE wrote:
> Hi Jon,
> 
>>> IMHO mailpost shouldn't insert a date header but exit with an error
>>> message if the date header is missing, but I don't use mailpost and
>>> if I would I wouldn't feed mails without a date header to it (and I
>>> consider doing so a layer 8 problem).
>>
>> I prefer flexible software that fixes problems with the input when
>> it is easy to do so.
> 
> It is not at all easy to do so; mailpost cannot guess when the article
> was written.
> 
> Note that you could put the current date when giving your bad-formatted
> mail to mailpost, instead of removing the Date: header.
> INN is shipped with "convdate".
> 
> % convdate
> Sat May 16 13:31:50 2009
> 
> It prints the current time in a format INN will accept.
> See <http://www.eyrie.org/~eagle/software/inn/docs/convdate.html>.
> 
> So just replace the bad Date: header with "Date: `convdate`\n", and
> it will work fine.

Thank you, i will do that.


JonB
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