charset problems?

2001-06-08 Thread Thomas König

Hi,

I try to send mails via qmail-inject into my ezmlm mailinglist.
My problem - some strings, like =22 , will not be correctly displayed.
It will replaced with a  char.
Now I have tried to replace =22 with =3D22, it looks like good, for some
Mailreaders, but some one, e.g. t-online, ignore the =3D and dont convert
=3D into =.

Where is my Problem, wrong charset?



Here my way to send the mails:

cat msg.txt | /var/qmail/bin/qmail-inject -n |
home/vpopmail/domains/test.com/testliste

msg.txt contains:
rom: Testliste [EMAIL PROTECTED]
To: Testliste [EMAIL PROTECTED]
Subject: Testnewsletter
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

=2200123330

=3D22001200123330




thanks for your help


thomas



Re: charset problems?

2001-06-08 Thread Markus Stumpf

On Fri, Jun 08, 2001 at 12:59:09PM +0200, Thomas König wrote:
 Now I have tried to replace =22 with =3D22, it looks like good, for some
 Mailreaders, but some one, e.g. t-online, ignore the =3D and dont convert
 =3D into =.
 
 Where is my Problem, wrong charset?

T-Online Mailreaders are known to have broken quoted-printable handling.

\Maex

-- 
SpaceNet AG| Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research  Development |   D-80807 Muenchen| Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.



Re: [OT] iso-8859-1 charset problems

2001-01-16 Thread funky gao

 From:  Martin Jespersen [EMAIL PROTECTED]
 Date:  Fri, 13 Oct 2000 00:00:41 +0200

 Hi all
 
 i have written an sms forward filter in perl that allows me to trigger an s
 ms message to me if a
 mail matches my criteria.
 
 i then send an sms including the sender of the mail and the subject line.
 
 Now my problem is this:
 
 I live in denmark and thus it happens pretty often that a subject line incl
 udes non-standard ascii
 characters.
 
 subject lines with non-standard ascci characters are iso-8859-1 encoded, ex
 ample follows:
 
 =?iso-8859-1?Q?N=E5_min_skat_-_jeg_g=E5r_til_afdelingsm=F8de_i?= 
 =?iso-8859-1?Q?_Bredgade_nu_-_jeg_ringer_senere=2E_Kys_til_dig_fra_mig?= 
 =?iso-8859-1?Q?_=2AS=2A?=
 
 this subject actually reads:
 
 Nå min skat - jeg går til afdelingsmøde iBredgade nu - jeg ringer senere. Kys 
 til dig fra mig*S*
 
 (if this looks weird don't worry -it's danish :)
 
 ofcourse this looks pretty silly in an sms message så what i would like is a
  way to convert this
 back to ascii

I assume you mean you want to convert it back to iso-58859-1.

I did this in tcl a while back.  It's actually fairly simple, ?charset?Q?text? 
means that 'text' is encoded into ascii using quoted printable.  quoted 
printable basically just says that '=dd' should be replaced with the code in 
hex.

I think the actual conversion is a one liner in perl...something along the 
lines of 's/=(..)/chr(hex($1))/eg'  (Note this is untested.)

Chris

-- 
Chris Garrigues http://www.DeepEddy.Com/~cwg/
virCIO  http://www.virCIO.Com
4314 Avenue C   
Austin, TX  78751-3709  +1 512 374 0500

  My email address is an experiment in SPAM elimination.  For an
  explanation of what we're doing, see http://www.DeepEddy.Com/tms.html 

Nobody ever got fired for buying Microsoft,
  but they could get fired for relying on Microsoft.



 Emanuel.exe


[OT] iso-8859-1 charset problems

2000-10-12 Thread Martin Jespersen

Hi all

i have written an sms forward filter in perl that allows me to trigger an sms message 
to me if a
mail matches my criteria.

i then send an sms including the sender of the mail and the subject line.

Now my problem is this:

I live in denmark and thus it happens pretty often that a subject line includes 
non-standard ascii
characters.

subject lines with non-standard ascci characters are iso-8859-1 encoded, example 
follows:

=?iso-8859-1?Q?N=E5_min_skat_-_jeg_g=E5r_til_afdelingsm=F8de_i?= 
=?iso-8859-1?Q?_Bredgade_nu_-_jeg_ringer_senere=2E_Kys_til_dig_fra_mig?= 
=?iso-8859-1?Q?_=2AS=2A?=

this subject actually reads:

Nå min skat - jeg går til afdelingsmøde iBredgade nu - jeg ringer senere. Kys til dig 
fra mig*S*

(if this looks weird don't worry -it's danish :)

ofcourse this looks pretty silly in an sms message så what i would like is a way to 
convert this
back to ascii

I have tried everything i could find, and no perl module seems able to do this for me 
(including
SGML::ISO8859).
Neither have i found a binary or a sheel script or anything like it that works for me, 
but since every mailreader seems able to handle this, then i must conclude that there 
ARE exsisting
tools for this conversion...

Do you know of any?

/Martin



Re: [OT] iso-8859-1 charset problems

2000-10-12 Thread Chris Garrigues

 From:  Martin Jespersen [EMAIL PROTECTED]
 Date:  Fri, 13 Oct 2000 00:00:41 +0200

 Hi all
 
 i have written an sms forward filter in perl that allows me to trigger an s
 ms message to me if a
 mail matches my criteria.
 
 i then send an sms including the sender of the mail and the subject line.
 
 Now my problem is this:
 
 I live in denmark and thus it happens pretty often that a subject line incl
 udes non-standard ascii
 characters.
 
 subject lines with non-standard ascci characters are iso-8859-1 encoded, ex
 ample follows:
 
 =?iso-8859-1?Q?N=E5_min_skat_-_jeg_g=E5r_til_afdelingsm=F8de_i?= 
 =?iso-8859-1?Q?_Bredgade_nu_-_jeg_ringer_senere=2E_Kys_til_dig_fra_mig?= 
 =?iso-8859-1?Q?_=2AS=2A?=
 
 this subject actually reads:
 
 Nå min skat - jeg går til afdelingsmøde iBredgade nu - jeg ringer senere. Kys 
 til dig fra mig*S*
 
 (if this looks weird don't worry -it's danish :)
 
 ofcourse this looks pretty silly in an sms message så what i would like is a
  way to convert this
 back to ascii

I assume you mean you want to convert it back to iso-58859-1.

I did this in tcl a while back.  It's actually fairly simple, ?charset?Q?text? 
means that 'text' is encoded into ascii using quoted printable.  quoted 
printable basically just says that '=dd' should be replaced with the code in 
hex.

I think the actual conversion is a one liner in perl...something along the 
lines of 's/=(..)/chr(hex($1))/eg'  (Note this is untested.)

Chris

-- 
Chris Garrigues http://www.DeepEddy.Com/~cwg/
virCIO  http://www.virCIO.Com
4314 Avenue C   
Austin, TX  78751-3709  +1 512 374 0500

  My email address is an experiment in SPAM elimination.  For an
  explanation of what we're doing, see http://www.DeepEddy.Com/tms.html 

Nobody ever got fired for buying Microsoft,
  but they could get fired for relying on Microsoft.



 PGP signature


Re: [OT] iso-8859-1 charset problems

2000-10-12 Thread Thorkild Stray

On Fri, 13 Oct 2000, Martin Jespersen wrote:

 I have tried everything i could find, and no perl module seems able to do this for 
me (including
 SGML::ISO8859).
 Neither have i found a binary or a sheel script or anything like it that works for 
me, 
 but since every mailreader seems able to handle this, then i must conclude that 
there ARE exsisting
 tools for this conversion...
 Do you know of any?

Quoted-printable should be easily decoded by using the MIME::QuotedPrint 
package (written by Gisle As) from your local CPAN mirror. 

Thorkild





Re: [OT] iso-8859-1 charset problems

2000-10-12 Thread Martin Jespersen

Thorkild Stray wrote:
 
 On Fri, 13 Oct 2000, Martin Jespersen wrote:
 
  I have tried everything i could find, and no perl module seems able to do this for 
me (including
  SGML::ISO8859).
  Neither have i found a binary or a sheel script or anything like it that works for 
me,
  but since every mailreader seems able to handle this, then i must conclude that 
there ARE exsisting
  tools for this conversion...
  Do you know of any?
 
 Quoted-printable should be easily decoded by using the MIME::QuotedPrint
 package (written by Gisle As) from your local CPAN mirror.
 
 Thorkild

Thx for the pointer, i had no idea that it was Mime *shame*

for those who cares the solution was the perl module MIME::Head

/Martin