[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: decode in mail
From: |
Alain Magloire |
Subject: |
Re: decode in mail |
Date: |
Thu, 26 Jul 2001 11:21:24 -0400 (EDT) |
Bonjour
> > An did a very quick and dirty implementation.
> > But any idea How handle mime, attachements etc ... ?
>
> The first idea that comes to mind is the ability to store message
> parts in files, like this:
>
> decode MSG-NO PART [OUT-FILE]
>
> Afterwards one would be able to view the part with an appropriate
> program..
>
> Maybe we can also keep some kind of association table, for example:
>
> Content-Type Program
> ------------------ -------
> application/x-gzip gzip -d
> text/html lynx
> text/plain <internal>
> etc...
>
> then, when one issues a command like `decode 1 2' and there is an
> entry corresponding to the content-type of part 2, then the part 2
> is stored in a temporary file and the program listed in the entry is
> started with the filename as its argument.
Ok, it sounds good.
The standard is mailcap and mime.types files for configuration, I would
advocate there use instead of reinventing new configuration/association files.
--
alain