Yearly Archives: 2013

IMAP, Sent mail, Apple Mail and Mavericks

This is one of those posts that’s chiefly intended for those Googling for a particular problem. It might still make gripping reading, though, for those of you interested in the internals of email protocols…

Most email programs nowadays allow you to specify the folder in which you want to save your outgoing messages, and choose whether that should be stored locally or on your email server. (Assuming you’re using IMAP to fetch your mail, that is. If you’re still using POP, you should get another mail provider. And if you’re using Exchange… well, you have my sympathy…)

But different apps have traditionally had different names for this folder: some call it ‘Sent’, others ‘Sent Items’ or ‘Sent Messages’ and some will use a folder with one name and display it as something else to the user. (The same is sometimes true of ‘Drafts’, ‘Trash’, and ‘Junk Mail/Spam’). So, over the years, I’ve tended to standardise on ‘Sent’, and when I set up a new mail app or a new machine, I configure it to use that folder.

But recently, that setting didn’t always seem to be stick, and I found some of my mail would end up in different folders when sent from some devices. Still, I persevered, until I installed Mavericks on my Mac, and found that the setting wasn’t even available on Apple Mail, at least, not for my main account – it was greyed out! What could be going on?

Screen Shot 2013-11-16 at 08.37.45

So I started to investigate. I dug into the file that Mail uses to store information about its accounts (currently ~/Library/Mail/V2/MailData/Accounts.plist) and I came across a setting which gave me a clue: it was called HasServerDefinedSentMailbox, and for this account it was set to YES. Mmm…

In the past, IMAP basically just provided you with a smart filing system for your mail, and it’s proved a remarkably resilient one, when compared to other formats. As an aside, I felt very old recently when I told a colleague in the lab that I had used the same method for storing my mail for ages, and had emails from 1991/92 in there that were just as accessible now as they had been then. He laughed, and said, “That’s the year I was born!”. Sigh… Still, compare that to data stored n tapes and floppies.

Anyway, a few extra features have been added since then, and one of these came just a couple of years ago. RFC 6154 describes ‘new optional mailbox attributes that a server may include in IMAP LIST command responses, to identify special-use mailboxes to the client, easing configuration’. In other words, the server can tell your app which folders to use for these key functions. This makes a lot of sense, particularly when your email provider also has a webmail interface, for example. I use Fastmail, which has a really good one, and, of course, it needs to know what you want to use for sent mail, drafts, etc when you’re using it via the web. Fastmail reflect these folder choices in the IMAP protocol, to keep everything consistent. Which is fine by me: I now simply stick to using the ‘Sent Items’ folder that the server recommends, and all is well on all my devices.

Anyway, all of that is a long way of explaining why you may find the ‘Use this mailbox for’ menu items are greyed out, and why on iOS devices you may try changing the ‘Sent Mailbox’, only to find that your new setting doesn’t stick. If your server is specific about which folders should be used, Apple will take that setting seriously, which I think makes sense, but they aren’t yet very clear in the UI about why you can’t then change it yourself.

Hope that’s useful to somebody!

Segway-lite?

Continuing the electric bike theme…

http://www.youtube.com/watch?v=t6StgpukFNk

The invisible bicycle helmet

My friend Hap sent me a link to this video.

A nice idea. But it didn’t really say much, so I presumed it was just a design concept, perhaps with a patent or two just in case.

However, if you go to this site, you can apparently buy one. As someone who detests wearing a helmet and feels guilty for not doing so, this is intriguing…

Mourning, recycling and reincarnation

A poignant message, I felt, spotted in a country churchyard.

20131101-17152515

Down to the waterline

Byron's Pool, Grantchester, Cambridge

Lord Byron used to swim just near here, they say. But not, I suspect, at this time of year.

20131104-17012308

Byron’s Pool, near Grantchester

A partial convert speaks…

Today I took my car in for a service, and, since the dealer is on the far side of town and I couldn’t face the hassle of loading and unloading a bike, I’d booked a courtesy car for the day. But as I walked into the showroom, there was a sign saying “Ask about our electric loan bikes.” So I did. And a little while later I was cruising home on a very nicely-built machine from A2B. Not sure of the exact model, but it was pretty similar to this:

a2bhybrid

Now, I’ve always been pretty skeptical about battery-boosted bicycles, thinking they were really for the elderly or lazy. But having done ten miles or so on one today, I’ve largely changed my mind. Here’s why:

  • It was a substantial bike: big tyres, good suspension, solidly made, with all the accessories. Because of its weight, you wouldn’t want to cycle it very far without the battery assistance. But with the power boost, it was an easy cycle, even up slopes, and gives you the benefits of more robust engineering: really good disk brakes, a solid carrier, a decent kickstand and large tyres which took kerbs, potholes and slippery patches in their stride. There was also plenty of battery power for some good lights, and a trip computer telling you various interesting bits of info as you went along.
  • You have to keep pedalling. Not very hard, I grant you, but this isn’t a motorbike: you do get some exercise – in fact, the battery only pushes you along when you are doing so. It’s not nearly the exercise you’d get from a regular bicycle, but remember, I had chosen to use this instead of a car, not instead of a bike. And a car would have given me no exercise at all. You can, of course, pedal harder if you want to, or turn down the level of assistance that the battery gives, if you feel the need to be more virtuous.
  • It was fast, even in the rain. What do I mean by that? Well, these things are normally limited to 15mph – not record-breaking by any means, but it’s a pretty good cycling speed when pottering around town. And the ease of getting up to that speed, and maintaining it, and resuming it when slowed down, meant that I actually moved from one place to another much faster than I would have done on my normal bike, unless I were really looking for a work-out. I was moving with the traffic, rather than having it whizz past me. And then, on the way back this evening, I was caught in a downpour. I realised that, had I been wearing full waterproofs, trousers and all, on my regular bike, I would have arrived at my destination sweating profusely. On this, I was really quite comfortable.

So, add all of that to that the fact that it was really rather fun, and I find myself looking at electric bikes in a new light. I genuinely believe I would use two wheels, rather than four, in many more situations if I had one of these. I would get less exercise than when I took my normal bike, but I’d get it much more often. And I’d be more willing to carry heavily-loaded panniers, and to cycle in inclement weather, than I am now.

All of which is good… but these things don’t come cheap. The one I used was somewhere in the £1500-2000 range, so I’m unlikely just to rush out and buy one. But I’m a lot more tempted now than I was before I tried it…

Time, the final frontier

Here’s a list of actors, who have something in common:

  • Charles Seel
  • Judith Anderson
  • Morgan Farley
  • Richard Hale
  • Anthony Jochim
  • Felix Locher
  • Celia Lovsky
  • Leonard Mudie
  • Abraham Sofaer
  • John Warburton
  • Ian Wolfe

What ties them together?

They all acted in Star Trek.

And they were all born in the 19th century.

I think that’s quite cool.

Thanks to this page for the info.

Security and Email

If you want to understand the basics of how encrypted communication works on computers, and why it should be easy to secure all your emails but often isn’t, it’s hard to find a better introduction than Bart Busschot’s on this episode of the Nosillacast. It starts at about 47 minutes.

Crackling

20131102-09135418

Mmm. I guess that particular (plain white) plate shouldn’t have gone into the microwave after all…

Behind the bike sheds

20131028-21133031

(We have hi-tech bike sheds at the Computer Lab.)

The calm before the storm?

20131024-07352104

Autumn is definitely here.

Wacky races?

Today I went go-karting at Rye House. This is something I’ve done before, once, almost exactly a third of a century ago. I remember the year because my older step-brothers had to lie about my age to get me in to the track!

I’ve been karting a few times in the intervening years, but never in weather conditions which were as bad – that is to say, as much fun – as today! I think I’ve been on windsurfing trips which involved less water. We all got completely soaked and had a wonderful time.

Oh, and it made for some nice photos, too!

20131020-152118232

20131020-144221131

20131020-143755105

20131020-14374598

20131020-153850334

Many thanks to Ray Gordon for organising the trip.

© Copyright Quentin Stafford-Fraser