List Info

Thread: mini_sendmail doesn't parse recipient corectly




mini_sendmail doesn't parse recipient corectly
user name
2006-12-01 10:21:47
Hi!

Your mail got me curious about what mini_sendmail was, and I
took a look at
it. Jef Poskanzner usually writes great stuff, so I was
surprised to see a
bug. Especially what looks like an "off-by-one"
error.

It seems the error is not in the original code, but in
patch-aa. I CC this to
pkgsrc-users, but you should probably file a PR with
send-pr.

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

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

The bug is in mini_sendmail.c, remove or comment out line
600-601:

dog:../mini_sendmail-1.3.6 $ diff mini_sendmail.cBAK
mini_sendmail.c    
600,601c600,601
<       if (recipient[len] == '>')
<           --len;
---
> /* THIS IS WRONG      if (recipient[len] == '>')
>           --len; END THIS IS WRONG */

Apparantly, someone must have gotten confused while fixing
this code.


-Lasse
mini_sendmail doesn't parse recipient corectly
user name
2006-12-01 10:41:34
Thanks, I commited this.

Martin
mini_sendmail doesn't parse recipient corectly
user name
2006-12-01 11:43:32
I am curious why pkgsrc has such patches for this package.
Does this mean 
that the upstream is not accepted them? Were the problems
and enhancements 
shared to the main developers?

Maybe this package with the various changes should be called
something 
else?

Jeremy C. Reed

p.s. I have been running my own outbound mailer (sendmail
replacement) 
called mailout for probably around five years. Anyone want
to test it or 
help with it?
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )