<!DOCTYPE html>

<html lang="" xml:lang="" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta content="pandoc" name="generator"/>
<meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport"/>
<title>-</title>

</head>
<body>
<p style="padding: 0 0.5em">Hey,</p>
<p style="padding: 0 0.5em">mutt allows attaching files from the command-line:</p>
<pre style="line-height: 125%; padding: 0 1em"><code style="white-space: pre-wrap">mutt -a /file/one /file/two /file/three -- …  </code></pre>
<p style="padding: 0 0.5em">Basically, the rules are: <code style="white-space: pre-wrap">-a</code> takes a list of files,
terminated by <code style="white-space: pre-wrap">--</code>.</p>
<p style="padding: 0 0.5em">Zsh's completion of mutt treats the argument to <code style="white-space: pre-wrap">-a</code> as
optional:</p>
<pre style="line-height: 125%; padding: 0 1em"><code style="white-space: pre-wrap">  '*-a[attach file using MIME]::file attachment:_files' \  </code></pre>
<p style="padding: 0 0.5em">Therefore, after <code style="white-space: pre-wrap">-a</code>, mutt's completions include
recipients, which is not correct:</p>
<pre style="line-height: 125%; padding: 0 1em"><code style="white-space: pre-wrap">albatross:~% mutt -a toni^D  
directory  
toni/  
recipient  
toni@…  </code></pre>
<p style="padding: 0 0.5em">Could you please help me figure out how to fix this? Basically after
it sees <code style="white-space: pre-wrap">-a</code>, compsys should be offering <code style="white-space: pre-wrap">_files</code>
until <code style="white-space: pre-wrap">--</code> is encountered, and also: at least one file is
mandatory.</p>
<p style="padding: 0 0.5em">Thanks,</p>
<div class="signature" style="color: #999; font-family: monospace; white-space: pre; margin: 1em 0 0 0; font-size: 80%"><span class="leader">-- </span><br/>
<pre style="line-height: 125%; padding: 0 1em"><code style="white-space: pre-wrap"> .''`.   martin f. krafft &lt;madduck@d.o&gt; @martinkrafft  
: :'  :  proud Debian developer  
`. `'`   http://people.debian.org/~madduck  
  `-  Debian - when you have better things to do than fixing systems  
 
"he gave me his card  
 he said, 'call me if they die'  
 i shook his hand and said goodbye  
 ran out to the street  
 when a bowling ball came down the road  
 and knocked me off my feet"  
                                                        -- bob dylan  
</code></pre>
</div>
</body>
</html>