[darcs-users] darcs UI: send = bundle file; send --mail = mail

Miles Gould miles at assyrian.org.uk
Fri Aug 3 09:20:13 UTC 2012


On 02/08/12 17:18, Eric Kow wrote:
> The thinking behind this is a belief that people these days don't
 > generally have a mailer properly configured on their computer
 > (one that provides a sendmail) command, and a more useful workflow
 > for such users is just for it to be convenient to create patch bundle
 > files that they can email by hand.

This is maybe a little too magical, but would it be possible to detect 
that situation at runtime? If `which sendmail` returns 0, then invoke 
sendmail; if not, dump out a patch bundle (and/or complain, saying 
"couldn't find a mailer: please configure one, or use darcs patch-bundle").

I guess it would be too hard to tell an installed-but-misconfigured 
mailer from a properly configured mailer, though, so maybe 
stupid-and-robust is the way to go.

Miles



More information about the darcs-users mailing list