Using Thunderbird with Gmail and OAuth2

I’ve been using the Mozilla Thunderbird e-mail client for … a long time. Google has had a “Less secure apps” policy, where you explicitly have to enable a setting to allow external access to things like e-mail over IMAP, and so on. Google has also been warning their users about upcoming changes, where clients that cannot authenticate using “secure methods” (such as OAuth2), will no longer be able to access things like e-mail over IMAP.

Fortunately (for me), Mozilla Thunderbird can handle this just fine 🙂

Incoming settings

Make sure you are using IMAP and not POP3. Go to your account settings. Go to server settings. You should see the IMAP settings (, etc). Make sure connection security is set to SSL/TLS. Set the authentication method to OAuth2 and re-start Thunderbird. You will be prompted with a Google Login Page. Enter your credentials for the account. Once Google has successfully verified the credentials, it will tell you that Thunderbird wants to access certain things. Allow this, and … you’re done. To verify that everything worked out as it should, re-start Thunderbird once more. You should not be getting any prompts this time.

Outgoing settings

To access settings for outbound e-mail using Gmail, click on the account name in the list to the left of the Account settings window. At the bottom, to the right, you will see Outoing Server (SMTP). Choose to Edit SMTP Server. Again, check your settings to be (587), STARTTLS, and set the Authentication method to OAuth2, just like you did for IMAP. Re-start Thunderbird.

Repeat this procedure for all your Gmail accounts configured in Thunderbird.

What’s My IP / Dynamic DNS / DDNS / DynDNS

There are a number of ways to figure out your current public IP address automatically, which can be extremely useful for Dynamic DNS (DDNS) situations or other automation ventures, here are some of them.


dig +short ANY

If the above doesn’t work, you may want to try this:

dig +short





dig @ ch txt whoami.cloudflare +short


dig TXT +short

Your “cookie disclaimer” is not enough

With various legal directives in place throughout the world, website owners are “off the hook” by providing a cookie disclaimer and the possibility for the visitor to “opt out”. Some websites have a rather odd approach where they refer you to a page with a vast amount of information abou their “data partners” and invite you to “opt out” on their partners’ page(s). It goes without saying that many people don’t bother because it’s just too much work (which is exactly the purpose).

But when your website designer relies on “web fonts” and/or resources from a content distribution network (CDN) like Javascript libraries, you are also, indirectly leaking some visitor data to the companies hosting such resources. Granted, you’re not “leaking as much data”, but with analytical AI and the huge amounts of data many of these “analytical companies” already have on your visitors, you’re simply providing one more piece of the puzzle to them. Free of charge.

The cost of free is perhaps hard to measure for you and me, but Google and others know exactly how much the data about your visitors is worth.

Ain’t that something.

New Cookie Disclaimer-proposal:

“By continuing to our site, you are agreeing to the collection of data about yourself beyond your wildest imagination and possible comprehension. We could explain it, but you wouldn’t get it anyway.  [OK]”

PS. Hosting external libraries and web fonts on CDN is not always such a grand idea when it comes to website performance. For each and every different such external “site address”, a new session handshake (SSL/TLS/etc) between the visitor’s web browser and the CDN is required.

The tip of the iceberg: Cambridge Analytica and Facebook

The short version of this post: Wake the fuck up and smell the maple nut crunch!

The somewhat longer version follows.

The Netflix “documentary”, “The Great Hack”, is a great beginning of something that will take years to be argued, debated, and (mis)understood. Thinking that Cambridge Analytica is the “bad guy”, and “it’s going to be alright now that we know” is all too comfortable (and all too easy).

One serious issue with this and the people that are in charge of making sure it doesn’t happen is that they don’t understand, don’t want to understand, or are actually paid by people who have as their prime interest that they do not understand.

How the United Nations (UN) and other organizations cannot consider ownership of personal information to be a basic and fundamental human right is beyond me, but it also goes to show how slowly the “democratic” machinery works and how easily the system is manipulated by those who understand.

Getting clowns elected as “the ruler” of a nation, or deeply influencing referendums one way or the other, while sinister and non-democratic, is arguably, less dangerous than standing in the way of science in, perhaps, the most important question of our time; the climate debate.

When “data points” can be used to, in the best interest of fossil energy companies, manipulate people and nations to prevent science, common sense, and logic to have its way … we’re truly skating on thin ice; and, it’s melting.

Oh, and you seriously don’t think Google (and others) aren’t doing the same thing? Bwahahaha … that’s good comedy right there.

“War Pigs” and “The Dogs of War” (look them up) have more truth to them than we’d like to think.

The Great Hack (Netflix), IMDB:

Filmjölk, Google Translate och Machine Learning

Det pratas mycket om machine learning och deep learning inom IT.

Ibland har man lite otur när man tänker 🙄🤔

Deep learning i sitt esse hos Google Translate:

Filmjölk -> Sour milk
Sour milk -> Surmjölk
Surmjölk -> Sour
Sour -> Sur

Vilket kanske mer poängterar att vi ibland måste tänka lite extra när vi uttrycker oss i “självklara termer”.

Saker som vi upplever som självklarheter kan lätt misstolkas av mottagaren och ge helt andra signaler än de vi tänkt oss.

Google owns your content, so by all means, use Google Drive

Your content in our Services

“When you upload or otherwise submit content to our Services, you give Google (and those we work with) a worldwide license to use, host, store, reproduce, modify, create derivative works (such as those resulting from translations, adaptations or other changes we make so that your content works better with our Services), communicate, publish, publicly perform, publicly display and distribute such content. The rights you grant in this license are for the limited purpose of operating, promoting, and improving our Services, and to develop new ones. This license continues even if you stop using our Services (for example, for a business listing you have added to Google Maps).”

Google Terms of Service

It took Google five+ years to fail in cloning Dropbox, and they didn’t want people using Linux in combination with other operating systems to switch over apparently.

Other links:

Is Google+ for real, or just there to annoy Facebook? WTF!

Google+ already has many millions of users, possibly hundreds of millions of users by the time you read this. As with many other Google services, it’s “Still in beta”; and because it is “Still in beta”, we are supposed to forgive and accept all shortcomings. Why? Because.. “It’s still in beta”.

I’m somewhat confused at Google’s approach to launching what is probably the most serious attempt at removing Facebook from the Social Community throne. And let’s “face it” (no pun intended), Google is probably the only player that can present a threat to Facebook in the foreseeable future as far as Social Communities go.

Google has zillions of dollars (though the dollar bill may soon have the Apple logo printed on it, considering the current “net worth” of Apple), they have almost as many talented coders and co-workers, and they are not short of public exposure nor useful ideas. Google’s approach to releasing services has often been “slow and stealth-like”. First they create the whispers, then they get the media to hype it, then they release the “It’s still in beta” service, and then they improve it one step at a time until God and everyone else endorse it like the greatest thing since sliced bread.

The Google+ Android App is mediocre at best; it lacks many features found in the web version. I understand if some features don’t find their way to a “smartphone” application, but something as basic as a +1 button on a comment to a post seems rather fundamental in the Google+ concept to me. This is from the company that brought you the Android operating system and the Google search engine.

Uploading and sharing media is confusing at best. Being a casual Picasa (Photo service by Google) user, I want to share a photo from one of my albums onto my Google+ stream. All I can find is a “Google Buzz” button when I’m album browse mode. “Google Buzz”? Isn’t that the very service that Google was going to retire? Where’s the “Share on Google+” button? Sure, I can copy the public link to a photo, copy & paste it into a post on Google+, but why all the hassle .. ? And if you “upload a photo to a post”, it ends up in a Picasa album called “Photos from posts” that is by no means virtual. You can not re-organize it or move photos from it to your more “permanent” albums. If I upload a video to YouTube and then want to share it on Google+, I sometime get it working, and sometimes it simply shows the “YouTube – Broadcast Yourself.” heading from YouTube (instead of my own description of the video).

Most plugins for popular web publishing tools such as WordPress that I have checked since the “launch” of Google+ are still lacking support for sharing items on Google+, unless you count the little “+1 this” button.

Android Apps like Glympse and others still don’t have “Share this on Google+” functionality.

In a word? WTF?!

I realize Google doesn’t own the entire IT industry (yet), but I’m surprised at the lack of coordination.

While everyone was (and still are) hyping Google+ as lightyears ahead of Facebook, the Facebook team hooked up with Skype and went out and added some awesome functionality in one swift move.

I have no doubt Google+ will succeed; too many people are betting on Google+ to do it right, and too many “IT industry gurus”-wanna-be:s have put their money on Google+ for it to fail, so they will keep telling me and everyone else how great it is until we’re all zombified into agreeing. Google+ has some great potential, when it’s ready. So far, the greatest thing (IMHO) is the ability to handle Circles in a swift, easy and efficient manner to control visibility and scope of your posts. Facebook has this too, but it’s much more cumbersome and hard to use.

Yeah, I know.. it’s “Still in beta”.

Get used to it, you have no rights

It’s the classic battle of big vs small, the single user vs the large company, grassroots vs the global corporate world, David vs Goliath; you get the idea. What’s interesting about this isn’t necessarily the issue at hand, but more that we have never had so many legislative checks in place to prevent this as we do now.

What on earth am I talking about? Well, to some extent, it’s the Internet, and to some extent it’s not. The Internet angle on this is that never before have so many people been able to reach so many other people in such a short period of time. This, among other things, means that ideas travel very fast. The concept of “information wants to be free” has never been more to the point than now. What I’m trying to describe isn’t unique for the world of Internet, there are other angles, but it’s very present and obvious when we talk about the Internet.

The very same companies that earns billions of dollars due to the very existence of Internet are also the same companies that seem most afraid of it. They’re afraid of it because they cannot control it, yet. If they could, they would. And they may very well end up tightening their grip to the point where even the politicians with their heads up their creative loophole will wake up and realize something isn’t quite right (maybe only due to the fact that people aren’t voting for them). The companies are Music Record companies, TV & Broadcasting companies, Telcos/Internet Service Providers, and the Hybrid companies like Google, Apple, and M. There are of course the odd hugely successful Internet players like Facebook too.

This is not a post about a global conspiracy, they’re too big to do anything about 🙂 This is a post about some things that don’t smell right.. and we’re all helping to stockpile the bad smelling goo.