Re: multipart/alternative question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thursday, July 16 at 08:56 PM, quoth lee:
>On Thu, Jul 16, 2009 at 02:23:40PM -0500, Kyle Wheeler wrote:
>
>> Of course, like I said, I'm more worried about incorrectly saying
>> there are 0 attachments when there is in fact (at least) 1 than I am
>> with incorrectly saying there are 3 attachments when there are in fact
>> (depending on how you count) 4 or even just 1.
>
>Maybe it's a stupid idea: What if mutt only counts how many containers
>are in a message?
Well, I get a lot of messages from people who use email clients with
"default" message composition in HTML (that includes Outlook,
Thunderbird, Apple Mail, and a whole host of others). When they send a
basic message to say "Hi!", their client sends a message structured
like this:
I 1 <no description> [multipart/alternative]
I 2 |-><no description> [text/plain]
I 3 `-><no description> [text/html]
In this case, the text/plain part says "Hi!", and the text/html part
says "<body>Hi!</body>". It's completely idiotic.
But anyway, I don't consider this message to have ANY "attachments".
The person didn't send me any extra files to look at. They sent me the
same message twice, one with extra formatting and one without. I don't
think most people would consider that to be a message with
"attachments", so I don't think mutt should say that there is an
attachment.
~Kyle
- --
There can be but little liberty on earth while men worship a tyrant in
heaven.
-- Robert Green Ingersoll
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iQIcBAEBCAAGBQJKX+0pAAoJECuveozR/AWeZEYP/j+9bB9g0vgFYCkE1PduIgKE
RvI9ygNGDpB0XT+zaWDiJa+9DnSQYl3nYvDoeS+kAx8QhnXtlFLjWZvg/9NxoiJd
sOcti1U9JMZHFy4mpDSdtmEMKncw7uMX/F0Aflic/esbhhh1/GBlxMyITshTV2xF
JzV711rKmjNRyhO6irey9aKtWJE1rUaZB4LBfYT0a9VjZh1iHXRzoAlG/JIEJdJx
xQkvP+9ySJeIJ3cnKCvgmLsQJGX0sAz2JWiXgJzKyRvkMuLa0g2+Lx6neTa2nefW
BCJGruMGckTtSf4Yj9m3MsttOHWaO4lm156+2wAmosCgDELVT8bXcAbVu0oaTOv5
s+qYgMbfDxQhGdwRvEGZzo+3X5HnqVZ1wj69atgDnetKODQcpXZkVNe1+cg2l+U6
V4VEk7Qnq4CG2nipj3pkClgaBZVN9W4fQP3xa2Y7N3Lffwku3cQ2DTGrvVkPR+w2
RLXs+PQbSZNoeq8LIWx+/2864aRgDPQuT7AdAawelP9Jgrj5Jvqtlz+ieIAw3eTx
XoODC8Vo9Kqcuc4y/Yus4Ay7kAGRCYaAL+AYJEsbk3k2zMrC+9/KxySZzcXLfYxh
TJRatWl3gtV2jIn9E6/Rb+ZhjMXz9U45aFnMHPITiiV+4w5wWHuAnq3nZb4G7c/+
3wbYbn20rmATPgusxg41
=B0V/
-----END PGP SIGNATURE-----