feature request: make busybox sendmail work with git-send-email

Denys Vlasenko vda.linux at googlemail.com
Sat Jan 9 16:42:02 UTC 2010


On Thursday 07 January 2010 16:52, Natanael Copa wrote:
> On Wed, 2010-01-06 at 16:32 +0100, Denys Vlasenko wrote:
> > On Wed, Jan 6, 2010 at 2:04 PM, Natanael Copa <natanael.copa at gmail.com> wrote:
> > > git send-email does not work with busybox sendmail.
> > >
> > > Would be nice if it could be fixed.
> > >
> > > ...
> > > Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
> > > /usr/sbin/sendmail: invalid option -- i
> > > BusyBox v1.15.3 (2009-12-16 14:04:53 UTC) multi-call binary
> > >
> > > Usage: sendmail [OPTIONS] [RECIPIENT_EMAIL]...
> > > ...
> > 
> > What is the exact command line git uses?
> 
> I suppose you'd need configure busybox sendmail to talk with an upstream
> SMTP server. Then you could just configure git to talk directly to that
> rather than go via sendmail.
> 
> but to answer your question, seems like git-send-email does something
> like: /usr/sbin/sendmail -i -f<fromaddress> 

Just replace [/usr]/bin/sendmail with a shell script which dumps:
echo "$0 $*" >>/tmp/sendmail.out
and exec /path/to/real/sendmail.

Then you'll have full sendmail commands in /tmp/sendmail.out
--
vda


More information about the busybox mailing list