nmh-workers
[Top] [All Lists]

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

2010-11-13 10:31:41
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: pgpwc9kEASwDw.pgp
Description: PGP signature

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>