Hey,
Bob Tennent <[email protected]> wrote:
|> Bob Tennent <[email protected]> wrote:
|>|For this kind of attachment, I seem to have a choice between
|>|sending all such attachments to a fixed application or
|>|using the write command to save to a file or pipe to an
|>|application. I'd like to select the application based on the
|>|(extension of) the file name. Is there any convenient way to
|>|do this? At present, I have to
|So I've set mime-counter-evidence and now I'm getting, for e.g.,
i've also fixed a bug that caused such text parts to be displayed
inline together with the `[Directly address message only to
display this]' message. (You have quite sophisticated use cases
for the current codebase...)
|Content-Type: application/octet-stream; name="COMP-2014-07-01.csv"
|Content-Disposition: attachment; filename="COMP-2014-07-01.csv"
|
|and the text. But I want .csv files to be opened by a spreadsheet
|application such as gnumeric.
And the installed pipe handler will now be passed through the
filename via the new $NAIL_MIME_FILENAME environment variable
(documented for *pipe-CONTENT/SUBCONTENT*), so that in your
special case it should finally be possible to
set mime-counter-evidence=2
set pipe-text/csv="@&cat > \"~/csv/${NAIL_MIME_FILENAME}\""
Note that though $NAIL_MIME_FILENAME will always have content it
is of course up to your handler to not overwrite a file that yet
exists. In your example the value should of course be
`COMP-2014-07-01.csv', note we don't watch our for the plain
`name' in the Content-Type body.
Hope this helps today (on the [next] branch).
--steffen
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users