Hello again,

I wrote:
 |Bob Tennent <[email protected]> wrote:

 ||>| + capture the file name in the clipboard
 ||>| + delete the file name
 ||>| + type "| cat filename; application filename"
 ||> 
 ||> well, if there is a file extension you want to trust then setting
 ||> the variable *mime-counter-evidence* should do what you want.

 ||So I've set mime-counter-evidence and now I'm getting, for e.g.,
 ||
 ||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.  

 |But anyway, *pipe-EXTENSION* is something that will remain, and in

so sorry, we currently have one-and-a-half day of summer that
vanishes again tomorrow, so i couldn't wait to leave to the free
world...

I've rewritten that a lot again and now *mime-counter-evidence*
is a valued option, value (actually bit) 2 is yet defined, to
carry the counter-evidence along the chain (excerpt):

  ?0[test /Users/steffen/src/nail.git/OUT]? p
  [-- Message  1 -- 31 lines, 838 bytes --]:
  From steffen Thu Jul  3 22:52:38 2014

  [-- #2 : 8/210, appl../octet-stream, README.csv --]

  ?0[test /Users/steffen/src/nail.git/OUT]? set mime-counter-evidence
  ?0[test /Users/steffen/src/nail.git/OUT]? p
  [-- Message  1 -- 31 lines, 838 bytes --]:
  From steffen Thu Jul  3 22:52:38 2014

  [-- #2 : 8/210, appl../octet-stream, README.csv --]

  W e l c o m e  t o  S - n a i l
  ===============================
  ?0[test /Users/steffen/src/nail.git/OUT]? set mime-counter-evidence=2
  ?0[test /Users/steffen/src/nail.git/OUT]? p
  [-- Message  1 -- 31 lines, 838 bytes --]:
  From steffen Thu Jul  3 22:52:38 2014

  [-- #2 : 8/210, + text/csv, README.csv --]

  W e l c o m e  t o  S - n a i l
  ===============================

We print "+ " to mean that the content-type has been forcefully
overwritten.
Hope this helps some more (and this time for real),
Ciao,

--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

Reply via email to