darcs

Issue 768 wish: default arguments for darcs --sendmail-command

Title wish: default arguments for darcs --sendmail-command
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, techtonik, thorkilnaur, tommy
Assigned To
Topics

Created on 2008-03-29.09:02:31 by techtonik, last changed 2009-08-27.13:59:21 by admin.

Messages
msg4095 (view) Author: techtonik Date: 2008-03-29.09:02:30
--sendmail-command doesn't add common sendmail arguments to specified command
line tool. This fact is not documented and makes default Darcs behaviour useless.

I suggest appending default arguments to --sendmail-command if there are no
format specifiers present. There could be additional reference in cmd help to
the manual for format specifiers.
msg4100 (view) Author: droundy Date: 2008-03-29.12:36:30
No, the point of the --sendmail-command feature is to allow the user to specify
how they want email sent.  If they have a program to send mail that doesn't want
any arguments, darcs shouldn't break that program by adding garbage arguments.

So this is a documentation bug.  Although, actually, this is pretty well
documented, so I'm not sure what your problem is.  Did you actually read the
documentation? It doesn't explicitly say "If you don't specify any flags, darcs
won't add them", but it does describe exactly what darcs does.

I see that our web page doesn't have links to the documentation...
msg4102 (view) Author: techtonik Date: 2008-03-29.17:10:25
No program is able to send email with changes from Darcs without arguments. At
least one argument with email body should always be specified.

If you say smb. to supply sendmail-command the majority of people assume this
command should work just like sendmail itself. With the same default command
line interface (i.e. accept list of recipients as arguments and read message
body from stdin).

Let me repeat - default arguments should be supplied only in case when no format
specifiers are present.
msg4719 (view) Author: kowey Date: 2008-05-15.18:13:46
> No program is able to send email with changes from Darcs without arguments. At
> least one argument with email body should always be specified.

Maybe in practice, but it is conceivable that an email program just read
everything from stdin

> Let me repeat - default arguments should be supplied only in case when no format
> specifiers are present.

If what I'm saying above makes sense, then as David points out, this would break
such programs.

Perhaps you could submit a documentation patch that suggests a good set of
default arguments for people who just want to use something that behaves like
sendmail.  Or suggest it here, and I'll submit the patch.

Marking as wont-fix, but thanks for the idea!
msg4722 (view) Author: techtonik Date: 2008-05-16.12:55:43
Even if a message body is feed to stdin there are still recipients addresses
that should be specified for MTA. There is a good reference of sendmail
compatible interface at http://www.postfix.org/sendmail.1.html

At least it would be nice to have "sendmail [recipient ...]" part working, so
that people could plug any sendmail replacement that awaits recipient list in
cmdline and waits for message from stdin. Just plug without reading the docs and
configuring format specifiers.

You won't break anything, because programs that doesn't use command line
parameters won't use them. Programs that use command line parameter are all
already have configured custom format string for them. Default sendmail behavior
is assumed only when there is no custom format string specified.
History
Date User Action Args
2008-03-29 09:02:31techtonikcreate
2008-03-29 12:36:33droundysetpriority: bug -> wishlist
status: unread -> unknown
messages: + msg4100
nosy: + droundy
2008-03-29 15:31:14droundysetnosy: droundy, tommy, beschmi, kowey, techtonik
title: no default arguments for darcs --sendmail-command -> wish: default arguments for darcs --sendmail-command
2008-03-29 17:10:26techtoniksetnosy: droundy, tommy, beschmi, kowey, techtonik
messages: + msg4102
2008-05-15 18:13:48koweysetstatus: unknown -> wont-fix
nosy: + dagit
messages: + msg4719
2008-05-16 12:55:45techtoniksetnosy: droundy, tommy, beschmi, kowey, dagit, techtonik
messages: + msg4722
2009-08-06 17:57:39adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, techtonik
2009-08-06 21:01:20adminsetnosy: - beschmi
2009-08-10 22:18:53adminsetnosy: + techtonik, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:09:07adminsetnosy: - dagit
2009-08-25 18:08:11adminsetnosy: + darcs-devel, - simon
2009-08-27 13:59:21adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, dmitry.kurochkin, techtonik