[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] mhbuild directives and filenames with spaces
From: |
David Levine |
Subject: |
Re: [Nmh-workers] mhbuild directives and filenames with spaces |
Date: |
Tue, 06 Mar 2012 20:56:17 -0500 |
Joel wrote:
> Is it possible to use an mhbuild directive to attach a file with spaces
> in its name? I'm getting increasing numbers of these from other people
> lately, and am tired of renaming them.
>
> The obvious thing, escaping spaces, doesn't work:
>
> #application/pdf irritatingly\ named\ document.pdf
>
> I found no hints in the mhbuild manpage, nor from searching. Is there a
> way to do this with mhbuild as it is currently (in 1.4)?
How about this, without the escapes:
#application/pdf {inline} irritatingly named document.pdf
It will wrap the name in double quotes and put that in a
Content-Disposition header.
David