pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mini_sendmail doesn't parse recipient corectly



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


root@jim# echo -e 'To:Ondrej Tuma 
<pkgsrc%blackmouse.biz@localhost>\nFrom:Konference 
<pkgscr%blackmouse.biz@localhost>\nSubject: test\n\ntest' | mini_sendmail -t -v 
-fpkgsrc%blackmouse.biz@localhost
<<<< 220 jim.lan.blackmouse.biz ESMTP Postfix
>>>> HELO jim
<<<< 250 jim.lan.blackmouse.biz
>>>> MAIL FROM:<pkgsrc%blackmouse.biz@localhost>
<<<< 250 2.1.0 Ok
>>>> RCPT TO:<pkgsrc%blackmouse.bi@localhost>
<<<< 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@localhost>". If I write only email address: 
"email%domain.net@localhost" it works fine.

root@jim# echo -e 'To:pkgsrc%blackmouse.biz@localhost\nFrom:Konference 
<pkgscr%blackmouse.biz@localhost>\nSubject: test\n\ntest' | mini_sendmail -t -v 
-fpkgsrc%blackmouse.biz@localhost
<<<< 220 jim.lan.blackmouse.biz ESMTP Postfix
>>>> HELO jim
<<<< 250 jim.lan.blackmouse.biz
>>>> MAIL FROM:<pkgsrc%blackmouse.biz@localhost>
<<<< 250 2.1.0 Ok
>>>> RCPT TO:<pkgsrc%blackmouse.biz@localhost>
<<<< 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řej Tůma

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@localhost      MSN: 
ondra.tu%atlas.cz@localhost

Attachment: pgpZ7jWp5_KeH.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index