Ticket 151 - strip leading '-' for mailcap sanitize

Eike Rathke list at erack.de
Fri Jun 21 20:03:23 UTC 2019

Hi Kevin,

On Friday, 2019-06-21 12:20:28 -0700, Kevin J. McCarthy wrote:

> Just to be clear, the ticket is actually advocating for sanitizing the
> leading "-", into "_" as other unsafe characters are.  I further wonder if
> we should just remove "-" from the whitelist rather than adding a special
> case for it.

I would not like to have all '-' replaced by '_' in attachments
(specifically I personally use '-' instead of '_' except when I need
some differentiation). It may also complicate things if for some reason
the file name is mentioned or referenced elsewhere and not identical.

I'd rather much prefer to treat a leading '-' as a special case here.


OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20190621/7be62ab8/attachment.asc>

More information about the Mutt-dev mailing list