<<< Date Index >>>     <<< Thread Index >>>

Re: bug saving attachments



On Tue, Jan 15, 2008 at 02:18:33PM +0100, Rocco Rutte wrote:
>  Hi,
> 
>  * Luciano Rocha wrote:
> 
> > I received a file from a friend starting with '-':
> > ------=_NextPart_000_1cd4_6abd_704a
> > Content-Type: application/vnd.ms-powerpoint; name="-Casamento.pps";
> > Content-Transfer-Encoding: base64
> > Content-Disposition: attachment; filename="-Casamento.pps";
> 
> > While saving the attachment, mutt prompted for the filename and
> > presented the default of -Casamento.pps, that I accepted:
> > Save to file: -Casamento.pps
> 
> > However, it didn't save to that file, but to a file with the '-'
> > replaced to the last folder I was in:
> > ~/Maildir/fooCasamento.pps
> 
>  Umm, that's not a bug but rather a feature. Mutt expands certain shortcuts 
>  in paths, including '!' ($spoolfile), '^' (current), '=' ($folder)... and 
>  '-' for the last folder opened.
> 
>  So it's rather undocumented, also see ticket #1719 
>  (http://dev.mutt.org/trac/ticket/1719).
> 
>  Saving to \-Casamento.pps should work.

Yeah, but as Francis mentioned, mutt should escape all magic chars from
the attachment name.

-- 
lfr
0/0

Attachment: pgpfkzvypyK3g.pgp
Description: PGP signature