Re: sending an email with a mutt one-line without being prompted

2010-08-09 Thread Derek Martin
On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of list of arguments to an option. There's only a good convention for end of variable argument list ('--'), and

Re: sending an email with a mutt one-line without being prompted

2010-08-09 Thread David Champion
* On 09 Aug 2010, Derek Martin wrote: $ mutt [...] -a `echo *|tr ' ' \$DELIMITER\` $RECIPIENT or something of the sort. Of course, then you have either the spaces-in-filenames problem, or the delimiter-in-filenames problem. Or both. If we're actually going to revisit this in -dev,

Re: sending an email with a mutt one-line without being prompted

2010-08-09 Thread Will Fiveash
On Mon, Aug 09, 2010 at 06:18:04PM -0500, David Champion wrote: If we're actually going to revisit this in -dev, I'll reiterate my suggestion from back then: mutt -a { *.jpg } $RECIPIENT I don't think that needing to attach files named '{' or '}' from the command line is a very common

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Christoph Kukulies
Am 02.08.2010 23:13, schrieb Will Fiveash: On Mon, Aug 02, 2010 at 03:49:47PM -0500, Nicolas Williams wrote: On Sun, Aug 01, 2010 at 10:52:01PM -0500, David Champion wrote: Syntax has been changed: -a indicates a *list* of attachment files ending with --. I don't recall which version

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Bob Proulx
Grant Edwards wrote: Nicolas Williams wrote: Right. There's no good convention for end of list of arguments to an option. There's only a good convention for end of variable argument list ('--'), and since this is the closest thing... And since there _is_ a convention that '--' ends the

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Nicolas Williams
On Tue, Aug 03, 2010 at 10:36:05AM +0200, Christoph Kukulies wrote: -- has special meaning in some unix command lines to provide an escape when names starting with a --sign are concerned. (doesn't getopt use it as an escape anyway? not sure). mkdir -- -foo rmdir -- -foo -- means end of

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Nicolas Williams
On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of list of arguments to an option. There's only a good convention for end of variable argument list ('--'), and

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread David Champion
* On 03 Aug 2010, Nicolas Williams wrote: On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of list of arguments to an option. There's only a good convention for

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Nicolas Williams
On Tue, Aug 03, 2010 at 12:45:12PM -0500, David Champion wrote: * On 03 Aug 2010, Nicolas Williams wrote: On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Grant Edwards
On 2010-08-03, Nicolas Williams nicolas.willi...@oracle.com wrote: On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of list of arguments to an option. There's only a

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Grant Edwards
On 2010-08-03, David Champion d...@uchicago.edu wrote: * On 03 Aug 2010, Nicolas Williams wrote: On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of list of

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread David Champion
* On 03 Aug 2010, Grant Edwards wrote: Strictly speaking, no: since mutt requires the -a option to be last, a '--' terminating the list of arguments to -a implicitly terminates the option list as well. I think this may have been part of the design consideration. IMO, requiring that

Re: sending an email with a mutt one-line without being prompted

2010-08-03 Thread Will Fiveash
On Tue, Aug 03, 2010 at 12:45:12PM -0500, David Champion wrote: * On 03 Aug 2010, Nicolas Williams wrote: On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: On 2010-08-02, Nicolas Williams nicolas.willi...@oracle.com wrote: Right. There's no good convention for end of

Re: sending an email with a mutt one-line without being prompted

2010-08-02 Thread Simon Ruderich
On Sun, Aug 01, 2010 at 07:31:28PM +0200, Christoph Kukulies wrote: [snip] I opened a can of worms obviously. On the target system (debian) the stock mutt-1.5.20.tgz doesn't compile because it can't find libcurses. I have libncurses5 installed. Maybe patches are required for debian? On

Re: sending an email with a mutt one-line without being prompted

2010-08-02 Thread Will Fiveash
On Mon, Aug 02, 2010 at 01:34:18PM -0700, Michael Elkins wrote: At the end of the help output there is this: -- separate filename(s) and recipients, when using -a, -- is mandatory I agree it would make more sense to put that nearer to the text for the -a option.

Re: sending an email with a mutt one-line without being prompted

2010-08-02 Thread Nicolas Williams
On Sun, Aug 01, 2010 at 10:52:01PM -0500, David Champion wrote: Syntax has been changed: -a indicates a *list* of attachment files ending with --. I don't recall which version was first to boast this new syntax, but it's the problem you're seeing right now even if it's not related to the

Re: sending an email with a mutt one-line without being prompted

2010-08-02 Thread Will Fiveash
On Mon, Aug 02, 2010 at 03:49:47PM -0500, Nicolas Williams wrote: On Sun, Aug 01, 2010 at 10:52:01PM -0500, David Champion wrote: Syntax has been changed: -a indicates a *list* of attachment files ending with --. I don't recall which version was first to boast this new syntax, but it's the

Re: sending an email with a mutt one-line without being prompted

2010-08-02 Thread David Champion
* On 02 Aug 2010, Nicolas Williams wrote: On Sun, Aug 01, 2010 at 10:52:01PM -0500, David Champion wrote: Syntax has been changed: -a indicates a *list* of attachment files ending with --. I don't recall which version was first to boast this new syntax, but it's the problem you're seeing

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread Jostein Berntsen
On 01.08.10,18:05, Christoph Kukulies wrote: I'm trying mutt -i message.text -s subject -a attachment.jpg recipi...@domain Is there a way to do that without being prompted? You can try: mutt -s subject -a attachment.jpg recipi...@domain message.text Jostein

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread Christoph Kukulies
Am 01.08.2010 18:13, schrieb Jostein Berntsen: On 01.08.10,18:05, Christoph Kukulies wrote: I'm trying mutt -i message.text -s subject -a attachment.jpg recipi...@domain Is there a way to do that without being prompted? You can try: mutt -s subject -a attachment.jpg

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread Jostein Berntsen
On 01.08.10,18:33, Christoph Kukulies wrote: Am 01.08.2010 18:13, schrieb Jostein Berntsen: On 01.08.10,18:05, Christoph Kukulies wrote: I'm trying mutt -i message.text -s subject -a attachment.jpg recipi...@domain Is there a way to do that without being prompted? You can try: mutt

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread rogerx
On Sun, Aug 01, 2010 at 06:33:35PM +0200, Christoph Kukulies wrote: Am 01.08.2010 18:13, schrieb Jostein Berntsen: On 01.08.10,18:05, Christoph Kukulies wrote: I'm trying mutt -i message.text -s subject -a attachment.jpg recipi...@domain Is there a way to do that without being

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread Christoph Kukulies
Am 01.08.2010 18:49, schrieb Jostein Berntsen: On 01.08.10,18:33, Christoph Kukulies wrote: Am 01.08.2010 18:13, schrieb Jostein Berntsen: On 01.08.10,18:05, Christoph Kukulies wrote: I'm trying mutt -i message.text -s subject -a attachment.jpg recipi...@domain Is there a

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread Christoph Kukulies
Am 01.08.2010 19:10, schrieb rog...@sdf.org: On Sun, Aug 01, 2010 at 06:33:35PM +0200, Christoph Kukulies wrote: Am 01.08.2010 18:13, schrieb Jostein Berntsen: On 01.08.10,18:05, Christoph Kukulies wrote: I'm trying mutt -i message.text -s subject -a attachment.jpg

Re: sending an email with a mutt one-line without being prompted

2010-08-01 Thread David Champion
* On 01 Aug 2010, Christoph Kukulies wrote: k...@post:~$ mutt -s test k...@validaddress.debody.txt Error sending message, child exited 1 (). Segmentation fault This should work. Maybe you could try to upgrade mutt to the most recent version 1.5.20? I tried it on another machine