-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
> Yet I would still like to know if it is possible to write a .muttrc
> macro that invokes a bash command or script to produce the default
> "save to" filename. I've tried a great many things like
>
> macro attach S "<save-entry><bol>$HOME/Mail/Attachments/$(%f | tr 'A-
> Z' 'a-z' | sed "s/'//g" | sed "s/ /_/g")"
I'm afraid that neither <save-entry> nor <pipe-entry> has access to
something like '%f'...
You can still postprocess your Attachments directory or write a specific
mailcap entry (testing for $SSH_TTY if you want) that does what you want.
> which do not produce the desired result. (I often use mutt over an
> ssh connection and then view and sometimes edit attachments on the
> remote machine by saving them from mutt and using scp. Thus it is
> slightly inconvenient to have attachment filenames with spaces. Your
> antiword suggestion might solve at least the immediate problem.)
What is the problem with spaces? Just quote them or let bash completion do
it for you ;)
Best,
Sylvain Soliman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
iQIVAwUBT1PxhcYrB++Yy5CuAQi4GQ/9FcUcUgFgA1UbpsYYlCt9tAi0eP1vxfdF
w+L4U5L9GToH12eJlaX+b0LpywqEYq+YzDBoP8bu1Wf2bJ9nA14Sf8kVKQ62z4gl
9pmKQLz/sblWymCQuQn05/Z7lVVDt9ivoHlPMzgLAFMLguJ6WrzjUk1D6oijotGZ
Rx68SqXw14MatvLLYx8dUOZbtY8DH2MO5dhzM2g5N+d4VWB9vZengJz4z28sIPML
/N8JvYUQQVSsSrh5wfgYkvC+8hXJ/FF8p6+h2X/ku8xLin8PLE6Znbsa/Yx4iIlk
S09EbR41K6vydwloIl7UPxOVxNfN+yE/Ti2Gha6X2aAGdCO8hYxCNKGMKh6fSAsX
9/UnsfWvOw41RONzDzbkkbxAdllmJscMrU4oFqAoExDV4d5YHCBeKlFOKgXy/2CA
8VDoQYGpbqWjMc8dynyq/aMrlM/cN14qi5dYhXKuXwNEjWKdeNcsX8bFESubvk78
g3U0vpQM8qsVFipub/JNxJeTowK6Y3ZxI2SsGL/PZwL3k5+BvuOu/lB0QGEb0s/D
7374JzkStZT4M615Xt13u8L/aZXYO/t5bqA3ZACgDcoIAqDRsr+MstzGCCwxByAv
FioC6WoeZ5uwOuWXeRd2gEDk48hZrujxbNt0XGcS69TiQX8P/gnMm3OohUTFykaM
J2YY/edPTa0=
=1EZR
-----END PGP SIGNATURE-----
--
Sylvain Soliman <Sylvain...@m4x.org.invalid> GPG Key: 0x0F53AF99
Page personnelle
http://contraintes.inria.fr/~soliman/