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

Re: bug saving attachments



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.

Rocco