El día Wednesday, February 22, 2012 a las 09:22:55AM +0100, aitor escribió:
> On Tue, Feb 21, 2012 at 12:51:44PM +0100, nb wrote:
> > Hi,
> >
> > This is a very quick response, but probably the worst. But if it
> > works...
> >
> > go on the attachment and type "edit type" (CTRL-E is usually the default)
> > Modify then the content type and save the file
>
> yes, I comment on this in the original message. The problem is that one
> has to be aware of the problem to manually set the mime type. But
> usually I don't pay attention to the mime type of attachments, and,
> honestly, I don't want any translation preformed on attachments at
> all. So my question was if there is a way to automatically save the
> attachments without translations.
>
> best,
> aitor
>
Hi,
I have here an example how an attachment looks in the mailbox file:
--fdj2RfSjLxBAspz7
Content-Type: application/pdf
Content-Disposition: attachment; filename="RechnungFink.pdf"
Content-Transfer-Encoding: base64
JVBERi0xLjQKMSAwIG9iago8PC9UeXBlIC9YT2JqZWN0IC9TdWJ0eXBlIC9JbWFnZQovTmFt
ZSAvSkkxT2JqMQovV2lkdGggMTE2OSAvSGVpZ2h0IDgyNwovQml0c1BlckNvbXBvbmVudCA4
Ci9Db2xvclNwYWNlIC9EZXZpY2VSR0IKL0ZpbHRlciBbIC9GbGF0ZURlY29kZSAvRENURGVj
...
I understand that 'Content-Transfer-Encoding' must be correct, just to
be able to understand the following lines and decode them to something
usefull; but why must 'Content-Type' be used to save the file to disk:
this should only be used to get an idea how to deal (view) the file;
matthias
--
Matthias Apitz
e <[email protected]> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5