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<body.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 (ubuntu) and there it says > > > > k...@accms33:~$ mutt -s test -a Bild.jpg m...@some.org <body.txt > > Keine Empf?nger angegeben. > > 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 problem you saw earlier. > > Try: > > mutt -s test -a Bild.jpg -- m...@some.org <body.txt
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 [<options>] [-z] [-f <file> | -yZ] mutt [<options>] [-x] [-Hi <file>] [-s <subj>] [-bc <addr>] [-a <file> [...] --] <addr> [...] mutt [<options>] [-x] [-s <subj>] [-bc <addr>] [-a <file> [...] --] <addr> [...] < message mutt [<options>] -p mutt [<options>] -A <alias> [...] mutt [<options>] -Q <query> [...] mutt [<options>] -D mutt -v[v] options: -A <alias> expand the given alias -a <file> attach a file to the message ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This should be: -a <file> attach one or more files to the message, must be terminated with " --" BTW, I do notice now that the terse usage does indicate -- termination but I didn't look at that closely initially. -- Will Fiveash