> Will sendmail (or whatever is providing that command locally) always set
a sensible From address?
A very good question.
After some reading on the internet I get the impression that this is in
fact not the case. There seems to be consensus that setting From: header is
the job of the MUA i.e. email client; and sendmail is basically a MTA, not
MUA. This would make Darcs the MUA and thus responsible for setting the
From: address. While I am pretty sure that almost all MTAs running on the
user's host /can/ be configured to set or even override the From: address,
the question is whether Darcs should require the user to do that in order
for `darcs send` to work correctly. I tend to think this is probably not
such a good idea after all.
Perhaps the better solution is to check if _darcs/prefs/author is a valid
email address (syntactically) and prompt the user for the sender address
otherwise?
BTW, there is also the --from option (to darcs send). The user can set this
option in their ~/.darcs/defaults, which is certainly easier to do than dig
through the unwieldy mess of documentation for their MTA (msmtp is the
exception here) to find a way to convince it to set From address properly.
|