ewx: (red robot (waving arms))
Richard Kettlewell ([personal profile] ewx) wrote2012-05-19 10:16 am
Entry tags:

Learn The Words

  From: ocado@ocado.com
  To: (me)
  Subject: Your receipt for today's Ocado delivery
  MIME-Version: 1.0
  Content-Type: multipart/alternative;
	  boundary="----=_Part_391555_1305389411.1337407149222"

That means “This message contains the same thing several times rendered in different ways”.

  ------=_Part_391555_1305389411.1337407149222
  Content-Type: text/plain; charset=us-ascii
  Content-Transfer-Encoding: 7bit

  Hi Mr Kettlewell,

  Your paperless receipt for today's Ocado delivery is attached to this email.

So far so good.

  ------=_Part_391555_1305389411.1337407149222
  Content-Type: text/html; charset=us-ascii
  Content-Transfer-Encoding: 7bit

  <html>
  <body bgcolor="#EFE9E5">

The same thing in HTML. No problem there.

  ------=_Part_391555_1305389411.1337407149222
  Content-Type: application/pdf; name=receipt.pdf
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment; filename=receipt.pdf

  JVBERi0xLjQKJaqrrK0KNCAwIG9iago8PAovUHJvZHVjZXIgKEFwYWNoZSBGT1AgVmVyc2lvbiAw

Something completely different as a PDF. No, that makes no sense whatsoever.

Thunderbird displays the HTML part and offers the PDF as an attachment. That’s probably what they had in mind, but if you try and save the attachment it says it has zero length and gives up. That’s obviously a bug but it is trying to deal with a nonsensical situation.

Apple Mail displays only the PDF.

I don’t think this can have been tested very thoroughly…

lnr: Halloween 2023 (Default)

[personal profile] lnr 2012-05-19 11:13 am (UTC)(link)
D'oh! Have you also told them?

It's also particularly silly calling it a paperless receipt though - given they're still handing out the paper ones! Or in my case this week they handed me someone else's - and I didn't notice until later. Oops.

[identity profile] mobbsy.livejournal.com 2012-05-19 03:23 pm (UTC)(link)
I bet it works in Outlook.

[identity profile] twigletzone.livejournal.com 2012-05-20 04:02 pm (UTC)(link)
Speaking as a publicity robot for the John Lewis Partnership - moan at them. I don't think Waitrose would be happy that one of our outlets is doing sumb shit like this...

[identity profile] twigletzone.livejournal.com 2012-05-20 04:02 pm (UTC)(link)
Dumb. *headdesk*

[identity profile] wellinghall.livejournal.com 2012-05-20 06:02 pm (UTC)(link)
In case you (a) don't know already, and (b) care, you appear to have made an unlocked post with your real surname in.
ext_8103: (Default)

[identity profile] ewx.livejournal.com 2012-05-20 06:10 pm (UTC)(link)
Thanks, but I am onymous online. l-)