Discussion:
blat -x "Content-Type:text/plain;charset=utf-8" do es n ot seem to work
Romson Christer
2003-06-19 08:39:14 UTC
Permalink
I am trying to send utf-8 encoded message. So I added
-x "Content-Type:text/plain;charset=utf-8", but it does
not seem to work.
I think you want is -charset utf-8.
No, that did not work.
I'd help if you'd cut and paste the command line you use in the message.

Is it the body or an attachent that's in utf-8?

What did the resulting header (including any relevant body part headers)
look like?

Can you add the -debug and -log <filename> switches and send the
resulting log file. (In the body of the mail. This list doesn't do
attachements).
The example in blat help -x "X-INFO:Blat is Great!" does work
as anything that starts with X, e.g.
"X-Content-type:text/plain;charset=utf-8".
Anyway, -x is only for private use, non standard, headers that
start with "X-" as you discovered.
Do you know why blat does not support standart headers?
Blat does support standard headers through switches such as -charset
et.c. Using them ensures that the generated email complies with the
standard. If you could add any random text as a standard header, users
would send out mail that violates the email specifications and that would
not be a good thing.

The specification allows for privatly defined headers that start with "X-"
and guarantees that no future version of the spec will define any meaning
for a header that starts with "X-". The Blat -x switch is only for adding
such private headers.

Christer Romson

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchSecurity.com to access over 500 white papers.
Get instant access at SearchSecurity.com Today
http://us.click.yahoo.com/ayjvfD/QLNGAA/uitMAA/dkFolB/TM
---------------------------------------------------------------------~->
freylichers
2003-06-20 02:44:36 UTC
Permalink
Christer,

Thank you very much for your help.

<<I'd help if you'd cut and paste the command line you use in the
message.>>

It was blat utf8.txt -t ***@yahoo.com -charset utf-8

where utf8.txt is the body of my message that's in utf-8.

I received the message, but it appeared garbled in yahoo mail as well
in ms outlook express, because Content-Type:text/plain;charset=utf-8
header was not set.

So I had to View/Encoding /utf-8 in order to view it.

In any case I found it easier to modify the source code to remove
the -x restriction. Now it works fine.

BTW blat distribution does not contain crtdll.lib file to build
release version. It is not part of VC++ 6 and I could not find it on
latest MSDN either. So I had to dig into old MSDN libraries and found
one dated Nov, 1993. Hope it is OK...

Thank you again,
alex
Post by Romson Christer
I am trying to send utf-8 encoded message. So I added
-x "Content-Type:text/plain;charset=utf-8", but it does
not seem to work.
I think you want is -charset utf-8.
No, that did not work.
I'd help if you'd cut and paste the command line you use in the message.
Is it the body or an attachent that's in utf-8?
What did the resulting header (including any relevant body part headers)
look like?
Can you add the -debug and -log <filename> switches and send the
resulting log file. (In the body of the mail. This list doesn't do
attachements).
The example in blat help -x "X-INFO:Blat is Great!" does work
as anything that starts with X, e.g.
"X-Content-type:text/plain;charset=utf-8".
Anyway, -x is only for private use, non standard, headers that
start with "X-" as you discovered.
Do you know why blat does not support standart headers?
Blat does support standard headers through switches such as -charset
et.c. Using them ensures that the generated email complies with the
standard. If you could add any random text as a standard header, users
would send out mail that violates the email specifications and that would
not be a good thing.
The specification allows for privatly defined headers that start with "X-"
and guarantees that no future version of the spec will define any meaning
for a header that starts with "X-". The Blat -x switch is only for adding
such private headers.
Christer Romson
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/ZyjvfD/PLNGAA/uitMAA/dkFolB/TM
---------------------------------------------------------------------~->
Chip
2003-06-20 03:13:12 UTC
Permalink
Post by freylichers
Christer,
Thank you very much for your help.
<<I'd help if you'd cut and paste the command line you use in the
message.>>
where utf8.txt is the body of my message that's in utf-8.
I received the message, but it appeared garbled in yahoo mail as well
in ms outlook express, because Content-Type:text/plain;charset=utf-8
header was not set.
So I had to View/Encoding /utf-8 in order to view it.
In any case I found it easier to modify the source code to remove
the -x restriction. Now it works fine.
BTW blat distribution does not contain crtdll.lib file to build
release version. It is not part of VC++ 6 and I could not find it on
latest MSDN either. So I had to dig into old MSDN libraries and found
one dated Nov, 1993. Hope it is OK...
Thank you again,
alex
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/ZyjvfD/PLNGAA/uitMAA/dkFolB/TM
---------------------------------------------------------------------~->
Chip
2003-06-20 03:39:29 UTC
Permalink
Post by freylichers
Christer,
Thank you very much for your help.
<<I'd help if you'd cut and paste the command line you use in the
message.>>
where utf8.txt is the body of my message that's in utf-8.
I received the message, but it appeared garbled in yahoo mail as well
in ms outlook express, because Content-Type:text/plain;charset=utf-8
header was not set.
So I had to View/Encoding /utf-8 in order to view it.
In any case I found it easier to modify the source code to remove
the -x restriction. Now it works fine.
BTW blat distribution does not contain crtdll.lib file to build
release version. It is not part of VC++ 6 and I could not find it on
latest MSDN either. So I had to dig into old MSDN libraries and found
one dated Nov, 1993. Hope it is OK...
Thank you again,
alex
You might try using -mime also.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchNetworking.com to access over 500 white papers.
Get instant access at SearchNetworking.com Today
http://us.click.yahoo.com/YyjvfD/OLNGAA/uitMAA/dkFolB/TM
---------------------------------------------------------------------~->
Loading...