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 comm

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 i

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 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 c

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 wrote: > > > > > > > Right. There's no good convention for "end of list of argumen

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, requ

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

2010-08-03 Thread Grant Edwards
On 2010-08-03, 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 wrote: >> > >> > > Right. There's no good convention for "end of list of arguments to an >> > > option". Ther

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

2010-08-03 Thread Grant Edwards
On 2010-08-03, Nicolas Williams wrote: > On Tue, Aug 03, 2010 at 02:00:46PM +, Grant Edwards wrote: >> On 2010-08-02, 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 argu

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 wrote: > > > > > > > Right. There's no good convention for "end of list of argumen

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 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 variab

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 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 c

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 "e

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 '

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

2010-08-03 Thread Grant Edwards
On 2010-08-02, 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 opt

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 versio

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

2010-08-02 Thread Will Fiveash
On Mon, Aug 02, 2010 at 04:26:47PM -0500, Nicolas Williams wrote: > On Mon, Aug 02, 2010 at 04:13:16PM -0500, Will Fiveash wrote: > > 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 chang

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

2010-08-02 Thread Nicolas Williams
On Mon, Aug 02, 2010 at 04:13:16PM -0500, Will Fiveash wrote: > 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 do

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

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 i

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 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

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

2010-08-02 Thread Michael Elkins
On Mon, Aug 02, 2010 at 12:12:27PM -0500, Will Fiveash wrote: Yep, I struggled with this change recently. It would be nice if mutt's help output for -a was updated with this important usage tidbit. Here's what it looks like now: Mutt 1.5.20 (2010-04-22) usage: mutt [] [-z] [-f | -yZ] mu

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

2010-08-02 Thread Will Fiveash
On Sun, Aug 01, 2010 at 10:52:01PM -0500, David Champion wrote: > * On 01 Aug 2010, Christoph Kukulies wrote: > > >> > > >>k...@post:~$ mutt -s test k...@validaddress.de > >>Error sending message, child exited 1 (). > > >>Segmentation fault > > >> > > >> > > >> > > >This should work. Maybe you co

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

2010-08-02 Thread Christoph Kukulies
Am 02.08.2010 10:58, schrieb 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.

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? O

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.de >>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

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 recipi.

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 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 wit

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? > >> >

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 recipi...@dom

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