On Wed, 13 Jun 2012 15:06:33 +0200 Cedric Blancher wrote:
> On 5 June 2012 17:01, Glenn Fowler <[email protected]> wrote:
> >
> > try this:
> >
> > mail -s 'non-interactive attachment test' -o interactive bozo <<!
> > binarry files should be attached
> > ~g binary-file-1
> > ...
> > ~g binary-file-n
> > .
> > !
> Thanks.
> How do I set the mime type for attachments?
this is a great question that leads to an ast answer
and to my relief (because I'm traditionally the worst documenter) its documented
see "manual => C LIBRARY => magic" in the /sw/download/ nav
mailx(1) uses magic(3)
magic(3) is the ast interface to the ast lib/file/magic file
the 5th field is the mime type
if the binary file has a magic file entry with a mime field then it will be
properly identified
look at $INSTALLROOT/lib/file/magic and compare it with the output from
file --mime *
if the binary file type has no magic entry then contruct your own in mymagic
and test with
file --mime=- --mime=mymagic *
and then send the magic entry to the list
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users