[ic] Trouble with the tag mime part and presetting the name of the attachment

Mike Heins interchange-users@interchange.redhat.com
Tue Aug 14 21:30:01 2001


Quoting Joachim Leidinger (jojo@blackpoint.de):
> Kevin Walsh wrote:
> > Firstly, I don't think there is a correct mail list for MV3 questions
> > any more.  I'll hold back the obvious suggestion. :-)
> > 
> > To your question...
> > 
> > The file name doesn't really want to be in the MIME header at all,
> > so, in MV3, you should probably just use:
> > 
> >     [tag mime header][/tag]
> > 
> > Your filename belongs in the actual attachment header, so:
> > 
> >     [tag mime type application/x-unknown-content-type-Excel.CSV; name="[scratch
> > bestellnummer].csv"][/tag]
> >     [tag mime Some description text] your attachment contents here [/tag]
> > 
> > I'm sure somebody will correct me if I'm wrong - I have no way of
> > checking that against MV3.
> > 
> > btw, I think a better MIME type would be "application/excel",
> > or "text/comma-separated-values".
> 
> Thank you for your suggestion and sorry for my long e-mail! I've tried
> 
> ----------snip--------
> [tag mime header][/tag]
> [tag mime type text/comma-separated-values; name="Bestellung_[scratch
> bestellnummer].csv"][/tag]

This has zero chance of working because tags are not interpolated in
tag arguments unless quoted. You might get it going with something on
the order of:

[tag arg='mime type text/comma-separated-values; name="Bestellung_[scratch bestellnummer].csv'][/tag]

You can also write a UserTag to format things for you.... But you have
reached the limit of what I will do anymore for Minivend 3. Time to
update, you are about 10 revs and two years back. 8-)

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

"Laughter is inner jogging." -- Norman Cousins