When The Text And Html Disagree

   
Recent changes
Table of contents
Links to this page
FRONT PAGE / INDEX

Subscribe!
@ColinTheMathmo

My latest posts can be found here:
Previous blog posts:
Additionally, some earlier writings:

The email was missing ...

Second Saturday of the month, and that means the Farmers' Market is on. Even in this second lockdown it will be running, with a one-way system and limited numbers permitted inside at any one time.

But is it at the usual time? Let's check the email. Oh, I seem to have deleted it.

Never mind, there will be a backup in the spam filtering system, so let's just open that up and have a look.

Hmm, OK, it was in the last week or so, and it has "Wirral" and "Farmer" in the subject, or in the "From" field, or something, so let's have a quick look:

 
   grep -il "Wirral.*farmer" $( find Data -type f -mtime -8 )

Output: Data/good_confirmed/20201209101801_0141

Excellent, we'll have a look at that:

 
   ** Next Market - Saturday 10th February 2018 9.00 am - 1.00 pm

OK, so it starts at 9am. No, wait ... what? February?

2018 ??

Finding the right information ...

Digging a little and the mystery deepens. The email from last month says the same thing.

Oh, wait, that's the plain text section of the email, but it uses MIME and has an HTML section ... what does that say?

And there we are ...

 
    Next Market - Saturday 12th December 9.00 am - 1.00 pm

Yup, the text in the HTML section bears absolutely no relation to the content of the text section.

When the code and comments disagree ...

There is an old saying in computing:

  • When code and comments disagree,
    both are probably wrong.

So what do you do when the plain-text and html sections of an email disagree? I have no answer to that, it's entirely up to you to work out which section has the information you need or want.

Not sure what lesson(s) to take from this.

If any.


<<<< Prev <<<<
Recursion Revisited
:
>>>> Next >>>>
The Parity Of Zero ...


https://mathstodon.xyz/@ColinTheMathmo You can follow me on Mathstodon.



Of course, you can also
follow me on twitter:

@ColinTheMathmo


Send us a comment ...

You can send us a message here. It doesn't get published, it just sends us an email, and is an easy way to ask any questions, or make any comments, without having to send a separate email. So just fill in the boxes and then

Your name :
Email :
Message :


Contents

 

Links on this page

 
Site hosted by Colin and Rachel Wright:
  • Maths, Design, Juggling, Computing,
  • Embroidery, Proof-reading,
  • and other clever stuff.

Suggest a change ( <-- What does this mean?) / Send me email
Front Page / All pages by date / Site overview / Top of page

Universally Browser Friendly     Quotation from
Tim Berners-Lee
    Valid HTML 3.2!