Am 2005-02-08 22:15:32, schrieb R�diger Noack: > R�diger Noack schrieb: > >Nein, das ist 0D. Oder 1101. Oder '\0105' > *grml* Nat�rlich '\015'.
Nur funktioniert hier nichts...
__( stdin )___________________________________________________________
/
| #!/bin/bash
|
| let c=1
| echo "------------------------------------------------------"
| for i in `ls cur/*` ; do
| echo -n "original : $c : "
| cat $i |formail -zx Old-Subject:
| echo -n "mimedecode : $c : "
| TAB='\009'
| LF='\010'
| CR='\015'
| cat $i |formail -zx Old-Subject: | mimedecode |\
| tr -d $TAB |tr -d $LF |tr -d $CR
| echo "------------------------------------------------------"
| let c=$c+1
| done
| echo
\______________________________________________________________________
Da bekomme ich sowas:
__( command 'tester-2' )______________________________________________
/
| original : 1 : Re: Spice =?iso-8859-1?B?Zvxy?= Debian
| mimedecode : 1 : Re: Spice f�r Debian
| ------------------------------------------------------------------
| original : 2 : Re: Endre
=?iso-8859-1?q?st=F8rrelsen_p=E5_/dev/vg=5Fdata_og?= /dev/vg_system
| mimedecode : 2 : Re: Endre st�rrelsen p� /dev/vg_data og /dev/vg_system
| ------------------------------------------------------------------
| original : 3 : Re: Stand Debian =?ISO-8859-1?Q?=C3=A0?= Solutions Linux
2005
| mimedecode : 3 : Re: Stand Debian à Solutions Linux 2005
| ------------------------------------------------------------------
| original : 5 :
=?iso-8859-1?b?52EgZGVwYXNzZSB0b3UgY2UgcXVlIGonYWkgcHUgaW1hZ2luZXIh?=
| mimedecode : 5 :
=?iso-8859-1?b?52EgZGVwYXNzZSB0b3UgY2UgcXVlIGonYWkgcHUgaW1hZ2luZXIh?=
| ------------------------------------------------------------------
| original : 6 :
|
=?iso-8859-1?b?Unc6IOdhIGRlcGFzc2UgdG91IGNlIHF1ZSBqJ2FpIHB1ICBpbWFnaW5l?=
| =?iso-8859-1?b?ciEA?=
| mimedecode : 6 :
| Rw: �a depasse tou ce que j'ai pu imagine
| r!
| ------------------------------------------------------------------
| original : 12 : dnsmasq mit dhcp und
=?ISO-8859-15?Q?aufl=F6sung_der_lokalen?=
| =?ISO-8859-15?Q?_hosts?=
| mimedecode : 12 : dnsmasq mit dhcp und aufl�sung der lokalen
| hosts
| ------------------------------------------------------------------
| original : 13 : Re: =?iso-8859-1?Q?l'=E9cran_de_ma_console?=
| =?iso-8859-1?Q?_est_tout_brouill=E9_au_d=E9marrage_apr=E8?=
| =?iso-8859-1?Q?s?= une recompilation
| mimedecode : 13 : Re: l'�cran de ma console
| est tout brouill� au d�marrage apr�
| s une recompilation
\______________________________________________________________________
Also ich will das das was rauskommt eben keine Zeilenumbr�che mehr
hat. Und
cat $i |formail -zcx Old-Subject: | mimedecode
^
ist keine L�sung, da dann 'mimedecode' nicht funktioniert, denn es
kann NUR eine decodiereung pro zeile machen womit ich erst NACH der
decodiereung die LF/CR/TAB herausfiltern kann.
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

