🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Geoff Gibbs Mon, 12 Apr 1999 00:00
Duplicate "Content-Transfer-Encoding" header
#36486
Author: Geoff Gibbs
Date: Mon, 12 Apr 1999 00:00
20 lines
1392 bytes
I have a mail/news gateway running, using the mailpost/news2mail
software which comes with INN 2.2.
It is being fed from sendmail 8.9.1a

I am seeing the error message :-

post failed Duplicate "Content-Transfer-Encoding" header

from nnrpd on my news machine.

I am sure I remember reading about this is one of these groups.
Could anyone point me in the right direction please?

Geoff Gibbs
-- 
UK-Human Genome Mapping Project-Resource Centre,
Hinxton, Cambridge, CB10 1SB, UK
Tel: +44 1223 494530  Fax: +44 1223 494512  E-mail: G.Gibbs@hgmp.mrc.ac.uk

Re: Duplicate "Content-Transfer-Encoding" header
#36484
Author: Russ Allbery
Date: Mon, 12 Apr 1999 00:00
23 lines
1443 bytes
In news.software.nntp, Geoff Gibbs <ggibbs@hgmp.mrc.ac.uk> writes:

> I have a mail/news gateway running, using the mailpost/news2mail
> software which comes with INN 2.2.  It is being fed from sendmail 8.9.1a

> I am seeing the error message :-

> post failed Duplicate "Content-Transfer-Encoding" header

> from nnrpd on my news machine.

> I am sure I remember reading about this is one of these groups.  Could
> anyone point me in the right direction please?

If someone knows specifically what software does this, I'd love to know
about it too.  I had to modify my gateway software to just delete
duplicate headers like this, since INN will reject any article with a
"known" header duplicated.  (Might be worth fixing that at some point.)

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

Re: Duplicate "Content-Transfer-Encoding" header
#36500
Author: Geoff Gibbs
Date: Tue, 13 Apr 1999 00:00
34 lines
2109 bytes
In article <7eu67f$p6b$1@news.du.etx.ericsson.se>,
	per@erix.ericsson.se (Per Hedeland) writes:
> In article <7et2k9$rk8$1@niobium.hgmp.mrc.ac.uk> ggibbs@hgmp.mrc.ac.uk
> (Geoff Gibbs) writes:

>>I am seeing the error message :-
>>
>>post failed Duplicate "Content-Transfer-Encoding" header
> 
> Upgrade to sendmail 8.9.3 + the patch below. Of course the duplicate
> header may have been introduced *before* the message arrived at *your*
> sendmail, in which case this won't help - but at least your sendmail
> won't be the cause.

Yes! I have a test set up running, and can reproduce the symptom.
Sending plain text with Netscape appears to put in a 
"Content-Transfer-Encoding: 7bit" header.

8.9.1a duplicates this header, and 8.9.3 + patch just passes through
the one header.

I think I had put off upgrading to 8.9.3 (on Solaris 7) as I thought
that support for dbm had been dropped, but I now believe that this
is not a problem, as I was probably using the NDBM option anyway!

Thank you

Geoff
-- 
UK-Human Genome Mapping Project-Resource Centre,
Hinxton, Cambridge, CB10 1SB, UK
Tel: +44 1223 494530  Fax: +44 1223 494512  E-mail: G.Gibbs@hgmp.mrc.ac.uk

Re: Duplicate "Content-Transfer-Encoding" header
#36501
Author: Per Hedeland
Date: Tue, 13 Apr 1999 00:00
63 lines
2587 bytes
In article <7et2k9$rk8$1@niobium.hgmp.mrc.ac.uk> ggibbs@hgmp.mrc.ac.uk
(Geoff Gibbs) writes:
>I have a mail/news gateway running, using the mailpost/news2mail
>software which comes with INN 2.2.
>It is being fed from sendmail 8.9.1a
>
>I am seeing the error message :-
>
>post failed Duplicate "Content-Transfer-Encoding" header

Upgrade to sendmail 8.9.3 + the patch below. Of course the duplicate
header may have been introduced *before* the message arrived at *your*
sendmail, in which case this won't help - but at least your sendmail
won't be the cause.

--Per Hedeland
per@erix.ericsson.se

*** sendmail-8.9.3/src/headers.c.ORIG	Tue Jan 26 15:54:50 1999
--- sendmail-8.9.3/src/headers.c	Tue Mar 16 20:43:31 1999
***************
*** 1369,1375 ****
  
  	/*
  	**  If we are converting this to a MIME message, add the
! 	**  MIME headers.
  	*/
  
  #if MIME8TO7
--- 1369,1375 ----
  
  	/*
  	**  If we are converting this to a MIME message, add the
! 	**  MIME headers (but not in MIME mode!).
  	*/
  
  #if MIME8TO7
***************
*** 1377,1386 ****
  	    bitset(EF_HAS8BIT, e->e_flags) &&
  	    !bitset(EF_DONT_MIME, e->e_flags) &&
  	    !bitnset(M_8BITS, mci->mci_mailer->m_flags) &&
! 	    !bitset(MCIF_CVT8TO7|MCIF_CVT7TO8, mci->mci_flags))
  	{
! 		if (hvalue("MIME-Version", e->e_header) == NULL)
! 			putline("MIME-Version: 1.0", mci);
  		if (hvalue("Content-Type", e->e_header) == NULL)
  		{
  			snprintf(obuf, sizeof obuf,
--- 1377,1386 ----
  	    bitset(EF_HAS8BIT, e->e_flags) &&
  	    !bitset(EF_DONT_MIME, e->e_flags) &&
  	    !bitnset(M_8BITS, mci->mci_mailer->m_flags) &&
! 	    !bitset(MCIF_CVT8TO7|MCIF_CVT7TO8|MCIF_INMIME, mci->mci_flags) &&
! 	    hvalue("MIME-Version", e->e_header) == NULL)
  	{
! 		putline("MIME-Version: 1.0", mci);
  		if (hvalue("Content-Type", e->e_header) == NULL)
  		{
  			snprintf(obuf, sizeof obuf,


Re: Duplicate "Content-Transfer-Encoding" header
#36554
Author: Per Hedeland
Date: Wed, 14 Apr 1999 00:00
42 lines
2518 bytes
In article <7evih1$mjr$1@niobium.hgmp.mrc.ac.uk> ggibbs@hgmp.mrc.ac.uk
(Geoff Gibbs) writes:
>In article <7eu67f$p6b$1@news.du.etx.ericsson.se>,
>	per@erix.ericsson.se (Per Hedeland) writes:
>> Upgrade to sendmail 8.9.3 + the patch below. Of course the duplicate
>> header may have been introduced *before* the message arrived at *your*
>> sendmail, in which case this won't help - but at least your sendmail
>> won't be the cause.
>
>Yes! I have a test set up running, and can reproduce the symptom.
>Sending plain text with Netscape appears to put in a 
>"Content-Transfer-Encoding: 7bit" header.
>
>8.9.1a duplicates this header

Well, it's a bit more complex than that, there are actually a number of
prerequisites for this to happen, and IIRC there are two different
cases, one is already fixed in 8.9.3, the other by the additional patch.

> and 8.9.3 + patch just passes through
>the one header.

Good!

>I think I had put off upgrading to 8.9.3 (on Solaris 7) as I thought
>that support for dbm had been dropped, but I now believe that this
>is not a problem, as I was probably using the NDBM option anyway!

None of map types have been dropped in recent times, but there's some
confusion in the naming for historical reasons: The 'dbm' *map type*
actually uses the 'ndbm' *API* internally, and is activated by -DNDBM. I
don't think the old 'dbm' API (which uses the same file format) has been
supported in any v8 version - it's basically useless for modern sendmail
as it only allows for one open "database" at a time, and only *really*
ancient Unices have 'dbm' but not 'ndbm' (normally the 'dbm' API is now
implemented on top of the 'ndbm' API, and available just for backwards
compatibility).

--Per Hedeland
per@erix.ericsson.se

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