Category Archives: General

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!

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.

Reviewing peer review

Those of us with a firm belief in the scientific method need to read this Economist article about how easily it can fall short of its ideals.

The good news is that this is being brought to light… In fact, I would propose the term Metascience, if nobody has already coined it, to describe this kind of work: the application of the scientific method to the scientific method!

Atomkraft? Ja, bitte.

I’m sitting in a traffic jam behind a car bearing a sticker, “Atomkraft? Nein danke.” (Nuclear power? No thanks!)

I’ve always liked this design, which has been around for some time – the sun with the smiley face makes it into a nice, happy, positive statement. It’s a clever bit of marketing.

However, the sun is, of course, powered by… ?

How DO you make good coffee?

Seth Brown has been doing some experiments. There are still many unanswered questions, but it’s a more rigorous approach than most of us have ever tried!

Nicely done!

Thanks to Hap for the link.

1984 – 30 years on?

I’m not very good at keeping up with politics and current affairs in general at present, and one treat I always allow myself on holiday is the shedding of even the limited news-reading and Today-programme-listening that I normally do.

And so the Snowden affair, which started while I was away, largely passed me by: when I got back they were discussing intricacies of conspiracy theories and extradition orders and it was a bit like trying to pick up a TV mini-series by starting on the third or fourth episode. I’ll save learning about it for when the movie version comes out.

But I did think John Lanchester’s article in yesterday’s Guardian was a pretty sane discussion of the issues, even for those of us who missed the opening chapters.

Nice extract:

I call this the “knowing you’re gay” test. Most of us know someone who has plucked up the courage to reveal their homosexuality, only to be cheerfully told by friends and family, “oh, we’ve known that for years”.

Now, though, search engines know facts about people’s thoughts and fantasies long before anyone else does. To put it crudely, Google doesn’t just know you’re gay before you tell your mum; it knows you’re gay before you do. And now GCHQ does too.

Flushing out the answer

Here at Status-Q headquarters, we’re having a new bathroom fitted, which means we’re getting all these newfangled gadgets that you youngsters just take for granted. Things like mixer taps, which our international friends are amused that we didn’t adopt about 50 years ago. I tell them that British plumbing is like the weather: it’s unpredictable, and we like it that way, because it gives us something to make polite conversation about when inspiration is otherwise lacking.

Anyway, we now have a cistern with one of these dashed clever dual-flush buttons. You know, with a small difficult-to-press button embedded in a large crescent. I think it’s a kind of Islamic yin/yang symbol. But the real mystery is that nobody seems to know quite how it works. It didn’t come with a manual, and even our plumber couldn’t answer some of my questions. Here are a few – perhaps the readers of Status-Q have greater lavatorial expertise than we do:

  • It appears from visual inspection that the small button provides a smaller flush than the big one (these things are difficult to measure, but that seems sensible). But what happens if you press both, which is the easiest thing for my chunky fingers? Are they additive in some way, producing a megaflush? Or is that the same as the big button alone?
  • If the authorities really want us to save water, shouldn’t the big easy-to-press button be the one that does the smaller flush, leaving you to add on the side button for the full monty?
  • In any of the above combinations, does a press-and-hold give you any more than a brief press?
  • Is there an international standard for flush-button-operation, or might all of the above vary by manufacturer?
  • How many unnecessary gallons of water are used around the world each day by people like me who, in the absence of such vital information, always press the biggest combination of buttons for the longest amount of time? Can Status-Q make a significant impact on world water consumption?

All enlightenment most welcome! Or failing that, I’ve at least given you something to ponder next time you’re sitting there…

A Brief History of Hawking

This is, I think, a lovely introduction to Stephen Hawking’s big ideas, in a two-minute animation commissioned by The Guardian.

The fact that it’s substantially the creation of my nephew Matt Kemp, who works at Scriberia, makes me like it even more! ๐Ÿ™‚

Packing a punch

One thing I haven’t generally had to pack when going for walks in the countryside – until I went to Montana – is bear repellent.

20130904-211728320

These are standard issue in that part of the world – you can buy them everywhere.

To an Englishman, an aerosol seems more appropriate for dealing with a small insect than a charging grizzly, but since the usual alternative advice is to lie down and play dead in this situation (which may cause the grizzly to ignore you), I can see why these are popular travel accessories.

Suspicion ’bout fishin’

I have a theory. A hypothesis, if you will. It’s still in embryonic form, but I think it could have considerable impact, because it relates to a global conspiracy to create a mass delusion affecting hundreds of thousands of people worldwide.

I am referring, of course, to fishing.

It’s a subject on which I am far from an expert, having only held a fishing rod in my hands twice in my life. Naturally, therefore, I didn’t catch anything on either occasion. But what was more surprising was that on both occasions I was accompanied by somebody much more experienced โ€“ in the first case, a Norwegian, in the second, an American. We were in good locations with lots of fish. And yet, after a day of staring at small things bobbing on the water, they hadn’t caught anything either.

Not a large statistical sample, I grant you, but it made me start to wonder. And I realised that throughout my life I have been walking on the banks of rivers, or sailing or paddling on lakes, and have seen vast numbers of fisherman sitting looking dejectedly at their lines, but never have I seen anybody actually catch a fish! Doesn’t that seem a bit strange, in forty-six years? Yes, you hear stories of people who claim to have caught them, and accounts from others of the ones they almost caught, but I feel that solid evidence is somewhat lacking. I’ve never seen it with my own eyes.

Except once.

I was in Nottingham, walking my dog along the river, and there was the usual collection of figures squatting by the water. Perched there, you might say. And then, suddenly, one of them jumped up with a cry, and started reeling in what turned out to be a reasonably sizeable aquatic beast. But it was the reaction of all his co-hobbyists that was impressive – they all crowded around with such excitement that I was persuaded that they, too, viewed this as something of a miracle.

Now, I do know that there are fish in the sea, and I have eaten quite a few of them, so somebody must catch them. These trawlers seem rather good at it. And I have even caught fish myself, using the rather trivial technique of stretching a net halfway across a quiet fjord one night and pulling it in again the following morning. That’s not what I’m talking about here. No, I mean the process of leaving your wife and family, gathering large amounts of expensive equipment, and sitting for hours beside, or on, a river, looking at a gently bobbing thing, when you could be enjoying the view, going for a nice walk, or, if you like sitting by the river, reading a book. This is clearly not something that rational people would do unless they had been seduced into it by the promise of some great reward.

It’s a bit like making pilgrimages to Lourdes, or buying lottery tickets. These also sustain major industries on the basis of future rewards almost never actually experienced by the participants, so you need to make sure that, when the rare miracle occurs, it is well-publicised. Hence those pictures of Hemingway next to an enormous marlin, or the stuffed pike over the rural hotel mantelpiece. They say, “Look! It can happen! Someone caught one once! This could happen to you too!”

And so I rather suspect that the chap I saw in Nottingham was a plant by one of the local manufacturers or vendors of outdoor equipment. He probably kept this fish in a tank and, once the gig was done, would move elsewhere on the river, slip it back on the hook, and chuck it in again. That seems the most plausible to me.

Think about it, dear reader. You know it makes sense. The conspiracy is now exposed. And fortunately, you and I have not swallowed the bait…

Beauty and the beasts

We’re in Montana, and it’s beautiful.

20130904-212513334

No, I mean really beautiful.

Shadow Lake, Glacier National Park, Montana

We made some friends amongst the natives.

20130904-203245285

20130904-202959281

20130904-204355296

20130904-234603475

20130905-002152517

The humans are friendly too. All in all, a lovely spot.

20130905-005841541

More pictures are sure to follow soon…

A taste of their own medicine…

This was a lovely story, featured on the BBC this morning. A Russian man, before signing a contract with his bank, altered the small print, signed it, and sent it back to them. They signed it, not noticing that they were then obliged to provide interest-free loans, no management charges, and would pay a substantial penalty if they wished to get out of the contract…

Fabulous idea.

I’ve done nothing as cunning as that, but often when I call some institution and get an automated voice saying “This call may be recorded…”, I say “Thank you!”, and click the record button…

That’ll show ’em.

© Copyright Quentin Stafford-Fraser