Content-Type occuring twice in the header

This is a discussion on Content-Type occuring twice in the header within the Mutt forums in Other Technologies category; I am using mutt 1.4.1 on UNIX. I am having problems with the Content-Type headers. My mail client is interpreting the first Content-Type and not getting to the real one. It is my guess that since i use the "<" file routing, mutt interprets it as inline and assumes that I am using text/plain. But in reality it is an html file, so I override the Content-Type using my_hdr. When I do this, a second Content-Type is added and the first isn't removed. Is there a way around this? I run mutt like this: /cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID ...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-10-2004, 07:28 PM
Chris
Guest
 
Default Content-Type occuring twice in the header

I am using mutt 1.4.1 on UNIX. I am having problems with the
Content-Type headers. My mail client is interpreting the first
Content-Type and not getting to the real one.

It is my guess that since i use the "<" file routing, mutt interprets
it as inline and assumes that I am using text/plain. But in reality
it is an html file, so I override the Content-Type using my_hdr. When
I do this, a second Content-Type is added and the first isn't removed.
Is there a way around this?

I run mutt like this:
/cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID Report" -e
"my_hdr Content-Type: text/html" operator@localhost < GMDIDV8e*.html


From operator@me.com Mon May 10 18:58:31 2004
Date: Mon, 10 May 2004 18:58:30 -0400
From: Abel <operator@me.com>
To: operator@me.com
Subject: GMDID Report
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Content-Type: text/html

#-- Body of the e-mail from the html file. Ends up being displayed by
mail client as given.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1 ALIGN="left">GMDID Adds and Deletes Reconciliation Report</H1>

<hr WIDTH="100%">
<P ALIGN="left"><FONT SIZE="2">&nbsp;</FONT></P>
<H1 ALIGN="left">ACCOUNT STATS</H1>

<TABLE border="1">
<TBODY>
Reply With Quote
  #2  
Old 05-12-2004, 11:13 AM
Richard
Guest
 
Default Re: Content-Type occuring twice in the header

"Chris" <ccsears@yahoo.com> wrote in message
news:5ad3b103.0405101528.3b5c3ade@posting.google.c om...
> I am using mutt 1.4.1 on UNIX. I am having problems with the
> Content-Type headers. My mail client is interpreting the first
> Content-Type and not getting to the real one.
>
> It is my guess that since i use the "<" file routing, mutt interprets
> it as inline and assumes that I am using text/plain. But in reality
> it is an html file, so I override the Content-Type using my_hdr. When
> I do this, a second Content-Type is added and the first isn't removed.
> Is there a way around this?
>
> I run mutt like this:
> /cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID Report" -e
> "my_hdr Content-Type: text/html" operator@localhost < GMDIDV8e*.html
>
>
> From operator@me.com Mon May 10 18:58:31 2004
> Date: Mon, 10 May 2004 18:58:30 -0400
> From: Abel <operator@me.com>
> To: operator@me.com
> Subject: GMDID Report
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> User-Agent: Mutt/1.4i
> Content-Type: text/html
>
> #-- Body of the e-mail from the html file. Ends up being displayed by
> mail client as given.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <HTML>
> <HEAD>
> <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> </TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF">
> <H1 ALIGN="left">GMDID Adds and Deletes Reconciliation Report</H1>
>
> <hr WIDTH="100%">
> <P ALIGN="left"><FONT SIZE="2">&nbsp;</FONT></P>
> <H1 ALIGN="left">ACCOUNT STATS</H1>
>
> <TABLE border="1">
> <TBODY>


Instead of using my_hdr (which creates the second, confusing, content_type
header) use "set content_type=text/html" on the command line. You may have
to upgrade mutt for this; I'm running 1.5.3i; don't remember if the set
content_type command is available in 1.4.1.

--
Richard Seeder


Reply With Quote
  #3  
Old 05-13-2004, 09:35 AM
Chris
Guest
 
Default Re: Content-Type occuring twice in the header

"Richard" <aapex@att.net> wrote in message news:<Varoc.46965$Ut1.1329785@bgtnsc05-news.ops.worldnet.att.net>...
> "Chris" <ccsears@yahoo.com> wrote in message
> news:5ad3b103.0405101528.3b5c3ade@posting.google.c om...
> > I am using mutt 1.4.1 on UNIX. I am having problems with the
> > Content-Type headers. My mail client is interpreting the first
> > Content-Type and not getting to the real one.
> >
> > It is my guess that since i use the "<" file routing, mutt interprets
> > it as inline and assumes that I am using text/plain. But in reality
> > it is an html file, so I override the Content-Type using my_hdr. When
> > I do this, a second Content-Type is added and the first isn't removed.
> > Is there a way around this?
> >
> > I run mutt like this:
> > /cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID Report" -e
> > "my_hdr Content-Type: text/html" operator@localhost < GMDIDV8e*.html
> >
> >
> > From operator@me.com Mon May 10 18:58:31 2004
> > Date: Mon, 10 May 2004 18:58:30 -0400
> > From: Abel <operator@me.com>
> > To: operator@me.com
> > Subject: GMDID Report
> > Mime-Version: 1.0
> > Content-Type: text/plain; charset=us-ascii
> > Content-Disposition: inline
> > User-Agent: Mutt/1.4i
> > Content-Type: text/html
> >
> > #-- Body of the e-mail from the html file. Ends up being displayed by
> > mail client as given.
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > <HTML>
> > <HEAD>
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=ISO-8859-1">
> > </TITLE>
> > </HEAD>
> > <BODY BGCOLOR="#FFFFFF">
> > <H1 ALIGN="left">GMDID Adds and Deletes Reconciliation Report</H1>
> >
> > <hr WIDTH="100%">
> > <P ALIGN="left"><FONT SIZE="2">&nbsp;</FONT></P>
> > <H1 ALIGN="left">ACCOUNT STATS</H1>
> >
> > <TABLE border="1">
> > <TBODY>

>
> Instead of using my_hdr (which creates the second, confusing, content_type
> header) use "set content_type=text/html" on the command line. You may have
> to upgrade mutt for this; I'm running 1.5.3i; don't remember if the set
> content_type command is available in 1.4.1.


Thanks for the information. V1.4.1 doesn't have the "set
content_type" variable. Looks like I need to upgrade. Where can I
get Version 1.5.3i?
Reply With Quote
  #4  
Old 05-13-2004, 11:17 AM
Richard
Guest
 
Default Re: Content-Type occuring twice in the header

"Chris" <ccsears@yahoo.com> wrote in message
news:5ad3b103.0405130535.3ad4398a@posting.google.c om...
> "Richard" <aapex@att.net> wrote in message

news:<Varoc.46965$Ut1.1329785@bgtnsc05-news.ops.worldnet.att.net>...
> > "Chris" <ccsears@yahoo.com> wrote in message
> > news:5ad3b103.0405101528.3b5c3ade@posting.google.c om...
> > > I am using mutt 1.4.1 on UNIX. I am having problems with the
> > > Content-Type headers. My mail client is interpreting the first
> > > Content-Type and not getting to the real one.
> > >
> > > It is my guess that since i use the "<" file routing, mutt interprets
> > > it as inline and assumes that I am using text/plain. But in reality
> > > it is an html file, so I override the Content-Type using my_hdr. When
> > > I do this, a second Content-Type is added and the first isn't removed.
> > > Is there a way around this?
> > >
> > > I run mutt like this:
> > > /cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID Report" -e
> > > "my_hdr Content-Type: text/html" operator@localhost < GMDIDV8e*.html
> > >
> > >
> > > From operator@me.com Mon May 10 18:58:31 2004
> > > Date: Mon, 10 May 2004 18:58:30 -0400
> > > From: Abel <operator@me.com>
> > > To: operator@me.com
> > > Subject: GMDID Report
> > > Mime-Version: 1.0
> > > Content-Type: text/plain; charset=us-ascii
> > > Content-Disposition: inline
> > > User-Agent: Mutt/1.4i
> > > Content-Type: text/html
> > >
> > > #-- Body of the e-mail from the html file. Ends up being displayed by
> > > mail client as given.
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > > <HTML>
> > > <HEAD>
> > > <meta http-equiv="Content-Type" content="text/html;
> > > charset=ISO-8859-1">
> > > </TITLE>
> > > </HEAD>
> > > <BODY BGCOLOR="#FFFFFF">
> > > <H1 ALIGN="left">GMDID Adds and Deletes Reconciliation Report</H1>
> > >
> > > <hr WIDTH="100%">
> > > <P ALIGN="left"><FONT SIZE="2">&nbsp;</FONT></P>
> > > <H1 ALIGN="left">ACCOUNT STATS</H1>
> > >
> > > <TABLE border="1">
> > > <TBODY>

> >
> > Instead of using my_hdr (which creates the second, confusing,

content_type
> > header) use "set content_type=text/html" on the command line. You may

have
> > to upgrade mutt for this; I'm running 1.5.3i; don't remember if the set
> > content_type command is available in 1.4.1.

>
> Thanks for the information. V1.4.1 doesn't have the "set
> content_type" variable. Looks like I need to upgrade. Where can I
> get Version 1.5.3i?


Depends on your version of Unix. I'm running SCO OpenServer; see
www.mutt.org for other options.

--
Richard Seeder


Reply With Quote
  #5  
Old 05-14-2004, 12:31 PM
Chris
Guest
 
Default Re: Content-Type occuring twice in the header

"Richard" <aapex@att.net> wrote in message news:<OjMoc.51050$Ut1.1422846@bgtnsc05-news.ops.worldnet.att.net>...
> "Chris" <ccsears@yahoo.com> wrote in message
> news:5ad3b103.0405130535.3ad4398a@posting.google.c om...
> > "Richard" <aapex@att.net> wrote in message

> news:<Varoc.46965$Ut1.1329785@bgtnsc05-news.ops.worldnet.att.net>...
> > > "Chris" <ccsears@yahoo.com> wrote in message
> > > news:5ad3b103.0405101528.3b5c3ade@posting.google.c om...
> > > > I am using mutt 1.4.1 on UNIX. I am having problems with the
> > > > Content-Type headers. My mail client is interpreting the first
> > > > Content-Type and not getting to the real one.
> > > >
> > > > It is my guess that since i use the "<" file routing, mutt interprets
> > > > it as inline and assumes that I am using text/plain. But in reality
> > > > it is an html file, so I override the Content-Type using my_hdr. When
> > > > I do this, a second Content-Type is added and the first isn't removed.
> > > > Is there a way around this?
> > > >
> > > > I run mutt like this:
> > > > /cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID Report" -e
> > > > "my_hdr Content-Type: text/html" operator@localhost < GMDIDV8e*.html
> > > >
> > > >
> > > > From operator@me.com Mon May 10 18:58:31 2004
> > > > Date: Mon, 10 May 2004 18:58:30 -0400
> > > > From: Abel <operator@me.com>
> > > > To: operator@me.com
> > > > Subject: GMDID Report
> > > > Mime-Version: 1.0
> > > > Content-Type: text/plain; charset=us-ascii
> > > > Content-Disposition: inline
> > > > User-Agent: Mutt/1.4i
> > > > Content-Type: text/html
> > > >
> > > > #-- Body of the e-mail from the html file. Ends up being displayed by
> > > > mail client as given.
> > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > > > <HTML>
> > > > <HEAD>
> > > > <meta http-equiv="Content-Type" content="text/html;
> > > > charset=ISO-8859-1">
> > > > </TITLE>
> > > > </HEAD>
> > > > <BODY BGCOLOR="#FFFFFF">
> > > > <H1 ALIGN="left">GMDID Adds and Deletes Reconciliation Report</H1>
> > > >
> > > > <hr WIDTH="100%">
> > > > <P ALIGN="left"><FONT SIZE="2">&nbsp;</FONT></P>
> > > > <H1 ALIGN="left">ACCOUNT STATS</H1>
> > > >
> > > > <TABLE border="1">
> > > > <TBODY>
> > >
> > > Instead of using my_hdr (which creates the second, confusing,

> content_type
> > > header) use "set content_type=text/html" on the command line. You may

> have
> > > to upgrade mutt for this; I'm running 1.5.3i; don't remember if the set
> > > content_type command is available in 1.4.1.

> >
> > Thanks for the information. V1.4.1 doesn't have the "set
> > content_type" variable. Looks like I need to upgrade. Where can I
> > get Version 1.5.3i?

>
> Depends on your version of Unix. I'm running SCO OpenServer; see
> www.mutt.org for other options.


On www.mutt.org all references are to V1.4.1. I am assuming I need a
compiled AIX version of 1.5.x. I would also like to see the latest
documentation for V1.5.x.

I inherited support for MUTT, and was under assumption that the person
prior to me found an AIX compiled version and installed it. Looks
like all I can find are devleopment versions of 1.5 and compiling it
locally is a different story, due to lack of C compiler (currently
looking for one). Are there any plans to do a release of 1.5?
Reply With Quote
  #6  
Old 05-18-2004, 12:05 PM
Richard
Guest
 
Default Re: Content-Type occuring twice in the header

"Chris" <ccsears@yahoo.com> wrote in message
news:5ad3b103.0405140831.2b9f073d@posting.google.c om...
> "Richard" <aapex@att.net> wrote in message

news:<OjMoc.51050$Ut1.1422846@bgtnsc05-news.ops.worldnet.att.net>...
> > "Chris" <ccsears@yahoo.com> wrote in message
> > news:5ad3b103.0405130535.3ad4398a@posting.google.c om...
> > > "Richard" <aapex@att.net> wrote in message

> > news:<Varoc.46965$Ut1.1329785@bgtnsc05-news.ops.worldnet.att.net>...
> > > > "Chris" <ccsears@yahoo.com> wrote in message
> > > > news:5ad3b103.0405101528.3b5c3ade@posting.google.c om...
> > > > > I am using mutt 1.4.1 on UNIX. I am having problems with the
> > > > > Content-Type headers. My mail client is interpreting the first
> > > > > Content-Type and not getting to the real one.
> > > > >
> > > > > It is my guess that since i use the "<" file routing, mutt

interprets
> > > > > it as inline and assumes that I am using text/plain. But in

reality
> > > > > it is an html file, so I override the Content-Type using my_hdr.

When
> > > > > I do this, a second Content-Type is added and the first isn't

removed.
> > > > > Is there a way around this?
> > > > >
> > > > > I run mutt like this:
> > > > > /cars/mutt/bin/mutt -e "set envelope_from=yes" -s "GMDID

Report" -e
> > > > > "my_hdr Content-Type: text/html" operator@localhost <

GMDIDV8e*.html
> > > > >
> > > > >
> > > > > From operator@me.com Mon May 10 18:58:31 2004
> > > > > Date: Mon, 10 May 2004 18:58:30 -0400
> > > > > From: Abel <operator@me.com>
> > > > > To: operator@me.com
> > > > > Subject: GMDID Report
> > > > > Mime-Version: 1.0
> > > > > Content-Type: text/plain; charset=us-ascii
> > > > > Content-Disposition: inline
> > > > > User-Agent: Mutt/1.4i
> > > > > Content-Type: text/html
> > > > >
> > > > > #-- Body of the e-mail from the html file. Ends up being

displayed by
> > > > > mail client as given.
> > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > > > > <HTML>
> > > > > <HEAD>
> > > > > <meta http-equiv="Content-Type" content="text/html;
> > > > > charset=ISO-8859-1">
> > > > > </TITLE>
> > > > > </HEAD>
> > > > > <BODY BGCOLOR="#FFFFFF">
> > > > > <H1 ALIGN="left">GMDID Adds and Deletes Reconciliation Report</H1>
> > > > >
> > > > > <hr WIDTH="100%">
> > > > > <P ALIGN="left"><FONT SIZE="2">&nbsp;</FONT></P>
> > > > > <H1 ALIGN="left">ACCOUNT STATS</H1>
> > > > >
> > > > > <TABLE border="1">
> > > > > <TBODY>
> > > >
> > > > Instead of using my_hdr (which creates the second, confusing,

> > content_type
> > > > header) use "set content_type=text/html" on the command line. You

may
> > have
> > > > to upgrade mutt for this; I'm running 1.5.3i; don't remember if the

set
> > > > content_type command is available in 1.4.1.
> > >
> > > Thanks for the information. V1.4.1 doesn't have the "set
> > > content_type" variable. Looks like I need to upgrade. Where can I
> > > get Version 1.5.3i?

> >
> > Depends on your version of Unix. I'm running SCO OpenServer; see
> > www.mutt.org for other options.

>
> On www.mutt.org all references are to V1.4.1. I am assuming I need a
> compiled AIX version of 1.5.x. I would also like to see the latest
> documentation for V1.5.x.
>
> I inherited support for MUTT, and was under assumption that the person
> prior to me found an AIX compiled version and installed it. Looks
> like all I can find are devleopment versions of 1.5 and compiling it
> locally is a different story, due to lack of C compiler (currently
> looking for one). Are there any plans to do a release of 1.5?


Mutt 1.5.x is the unstable (i.e., developmental) release, currently at
1.5.6, with source available in the "devel" folder for 1.5.1-1.5.6. Not
sure where you can find a compiled version for AIX, however the source
should compile with the GNU-Make (see www.gnu.org/software/make).

--
Richard Seeder


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:30 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.