Subject: mini_sendmail doesn't parse recipient corectly
To: None <pkgsrc-users@netbsd.org>
From: =?ISO-8859-2?Q?Ond=F8ej_T=F9ma?= <pkgsrc@blackmouse.biz>
List: pkgsrc-users
Date: 12/01/2006 09:40:47
--Signature=_Fri__1_Dec_2006_09_40_47_+0100_iZlT_D=8QVhUOs4E
Content-Type: text/plain; charset=ISO-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi, i found error in mini_sendmail from pkgsrc, i didn't test on original d=
istribution, only with pkgsrc patches.


root@jim# echo -e 'To:Ondrej Tuma <pkgsrc@blackmouse.biz>\nFrom:Konference =
<pkgscr@blackmouse.biz>\nSubject: test\n\ntest' | mini_sendmail -t -v -fpkg=
src@blackmouse.biz
<<<< 220 jim.lan.blackmouse.biz ESMTP Postfix
>>>> HELO jim
<<<< 250 jim.lan.blackmouse.biz
>>>> MAIL FROM:<pkgsrc@blackmouse.biz>
<<<< 250 2.1.0 Ok
>>>> RCPT TO:<pkgsrc@blackmouse.bi>
<<<< 250 2.1.5 Ok
>>>> DATA
<<<< 354 End data with <CR><LF>.<CR><LF>
<<<< 250 2.0.0 Ok: queued as 317EF49DD89
>>>> QUIT
<<<< 221 2.0.0 Bye

Error is in RCPT TO: command, it shorts recipient email address. It's only =
doing, when recipient is write like this key: "Some Name <email@domain.net>=
". If I write only email address: "email@domain.net" it works fine.

root@jim# echo -e 'To:pkgsrc@blackmouse.biz\nFrom:Konference <pkgscr@blackm=
ouse.biz>\nSubject: test\n\ntest' | mini_sendmail -t -v -fpkgsrc@blackmouse=
.biz
<<<< 220 jim.lan.blackmouse.biz ESMTP Postfix
>>>> HELO jim
<<<< 250 jim.lan.blackmouse.biz
>>>> MAIL FROM:<pkgsrc@blackmouse.biz>
<<<< 250 2.1.0 Ok
>>>> RCPT TO:<pkgsrc@blackmouse.biz>
<<<< 250 2.1.5 Ok
>>>> DATA
<<<< 354 End data with <CR><LF>.<CR><LF>
<<<< 250 2.0.0 Ok: queued as 5479249DD89
>>>> QUIT
<<<< 221 2.0.0 Bye

I can't find which part of code do this error :(

--
Ond=F8ej T=F9ma

Unix-like system is the best operation system from the top of the world.
I'm lucky BSD and linux user. :) Use unix-like, be free. :)

www.blackmouse.biz                                        hash.webjet.cz
ICQ: 107760454       JABBER: mcbig@jabber.cz      MSN: ondra.tu@atlas.cz

--Signature=_Fri__1_Dec_2006_09_40_47_+0100_iZlT_D=8QVhUOs4E
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFb+qSBmNIPxOnb/IRAl1DAJwKDI0pz2Tx91+m3YkOdC2xOlC2hACeP8aM
fvaVkH0Ek8OMxE7kmtrVg04=
=gWQo
-----END PGP SIGNATURE-----

--Signature=_Fri__1_Dec_2006_09_40_47_+0100_iZlT_D=8QVhUOs4E--