Re: [Exim] Reading stdin

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Sascha E. Pollok
CC: exim-users
Assunto: Re: [Exim] Reading stdin
On Mon, 1 Nov 1999, Sascha E. Pollok wrote:

> let's imagine I have a perl-script that reads
> from STDIN (while (<>) { ...) and is called
> via a pipe-alias.


"while (<>)" only reads from STDIN if there are no file names on the
command line. You need "while (<STDIN>)" if you want to read from STDIN
only.

> When I send a mail to this script, it gets the
> message with "Content-Transfer-Encoding: quoted-printable"
> and some chars are encoded like =3D or =20.
>
> Can anyone tell me if this is normal?


Some MUAs and MTAs mangle messages into this lunatic form, so I suppose
it is "normal" in some sense. Exim does *not* make any changes like this
to messages.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Government Policy: If it ain't broke, fix it till it is.