[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] [patch] snapshot of my MIME handling improvments

From: Valdis . Kletnieks
Subject: Re: [Nmh-workers] [patch] snapshot of my MIME handling improvments
Date: Sat, 13 Nov 2010 11:31:23 -0500

On Sat, 13 Nov 2010 00:09:21 +0100, markus schnalke said:

> - I changed Jon's attachment system to get the attachment header name
> and format from the profile and not from command line arguments. This
> made the involved commands and functions less bulky because the values
> need not to be passed through all the time. It also makes this data
> avaliable to any program who ``likes to take part''. This alone I
> regard as an improvement.
> The new profile names are: `attachment-header' and
> `attachment-format'. (attach_fmt should likely be a char* too.)

Wrong way to approach it.   What if exmh (which uses nmh under the covers)
wants to add 3 attachments to a note - one an image/jpg called 'fallout.jpg',
an Excel spreadsheet called 'estimates.xls', and a Word document called
'coverstory.doc'?  You *really* need to be able to specify the name, the
mime-type, and possibly the mime-encoding of the attachment on a
per-attachment basis.  If you don't specify mime-encoding, it must be
intuited by looking at the mime-type (it's pointless to use anything other
than base64 for an image/jpg, for instance), and possibly having to
scan the attachment (a text/plain should be defaulted to no encoding
if it's ascii, but will need quoted-printable if it contains the occasional
non-ascii Latin chars, and may benefit from base64 if it's entirely in
one of various non-Latin charsets).

Attachment: pgp210N3c5sH8.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]