transferring some email between Gmail accounts using Thunderbird

I have several Gmail accounts for various reasons.  Occasionally I have the need to transfer emails between the accounts.  The only way to transfer just some email between Gmail accounts is to use a desktop email client, like Thunderbird, Evolution, or KMail.  Unfortunately, the process isn’t all that straightforward and can be quite confusing at times.  I prefer using Thunderbird for transferring emails between Gmail accounts, so I’m going to show how to do this using Thunderbird.

To begin with, you need to enable IMAP support in your Gmail accounts.  You can see how to do that here.

Next, you need to set up at least two Gmail accounts in Thunderbird (I’m assuming you have it installed, if not, install it).  Thunderbird now makes this very straightforward.  When you first open Thunderbird, it will ask you to set up an account.  You can fill in your username and password at that time or do it later.  If you need to set it up later, you click on File -> New -> Existing Mail Account:

You’ll get this window.

Fill in your information and Thunderbird will take care of the rest.

Once you’ve got your accounts set up in Thunderbird, you need to let Thunderbird download the emails in the various accounts before you can start transferring.  To get this process started, click on “All Mail” in each of the accounts you are using and Thunderbird will start downloading the relevant data it needs to manage the emails.

Depending on how many emails you have, this may take a while.  Go get a snack or read a book.

Once Thunderbird has downloaded all the emails, you can begin transferring the emails between accounts.  However, here’s where things get tricky.  I’ve fiddled around with lots of different ways to make the transfer work, and the only one that seems to reliably work is weird.

First, open the Gmail account you are transferring files from [Gmail Account #1] in a browser (not in Thunderbird) and empty your trash.

Don’t try to empty your trash in Thunderbird as it doesn’t do anything. And you really want your trash empty for what we are about to do.

[NOTE: Scroll down to the section on the Large Email Problem before you continue.  No, really, go read that section right now as it will save you a lot of time later.]

Now, go back to Thunderbird. Select the emails you want to move in [Gmail Account #1] and, I know this is a little scary but, drag them to the trash in Thunderbird.

Once you drag them to the trash, they will no longer show up in All Mail, but they are not deleted, they are just in the trash (they have been labeled with the tag “trash”).  Once they are in the trash, select all the ones you want to move and drag them to the All Mail folder in the receiving account – [Gmail Account #2].

In the bottom bar in Thunderbird you’ll see a status update which will tell you how many files have transferred.

Once they have copied, you can check to see if they are in the receiving account [Gmail Account #2] by opening that account in a browser and using the search function to find those emails.  Once you’re positive that they have transferred, you can then go back to [Gmail Account #1] in your browser, open your trash, and empty your trash.  The emails are now in [Gmail Account #2] and are no longer in [Gmail Account #1].


Well, sort of.  There are a couple of issues you may run into.  First, it’s probably not a good idea to try transferring more than a few hundred to maybe a 1,000 emails at a time as the Gmail accounts have some limits on things like this.  Also, emails that are larger than about 5mb in size won’t transfer.  I don’t know why, but they won’t. other things you need to know before you try the above.

How to solve the Large Email Problem

There is a problem transferring large emails using this process.  The problem is attachments that are above 5mb in size won’t transfer between the accounts.  So, you can either forward those emails manually or delete the attachments.  Here’s how you find the attachments in Thunderbird:

Click on Tools -> Message Filters.

Once the Message Filters window comes up, click on New.

You’ll then get a new window, the Filter Rules window.  You need to name your Filter.  I called mine “large attachments.”  You’ll also need to indicate when you want the filter to run.  I set mine to manual only (see screenshot below).

Next are the filter rules.  What we’re looking for are attachments that are above 5mb in size.  Here’s how I set up my filter.  I wanted Thunderbird to first find all the emails that have attachments, so I added the following filter (note, this is probably unnecessary as the second filter will find these anyway):

Attachment Status = is = Has Attachments

I then wanted only emails that were above a certain size.  Since the offending emails are 5mb in size, I looked for all emails above 4000KB in size with the following filter:

Size (KB) = is greater than = 4000


Finally, I was interested in emails from just a specific date range, so I used a filter to only select emails before a certain date:

Date = is before = 01/01/2011

With the filter options in place, we need to tell the filter what to do with the emails that fit the criteria.  I tagged them with a tag I don’t use for anything else using the following in the “Perform these actions:” section of the Filter Rules window:

Tag Message = Later


Once you’ve got your filter set up, select OK.  You can then close the Message Filters window.  When you’re ready to run the filter, go back up to Tools -> Run Filters on Folder:

The filter will run and tag all the offending emails.  Then, from the top of Thunderbird, you can do a quick filter on the emails that you have in that folder by selecting on the “Tags” option and all the offending emails will filtered:

You can then decide if you want to delete the emails or forward them directly to the other gmail account (which means the date will be changed to the current date rather than keeping the original date, which bugs me).  Alternatively, you can just delete the attachment, which is done at the very bottom of Thunderbird:

NOTE: If you delete the attachment in Thunderbird, it doesn’t actually end up deleting the email.  It creates a copy without the attachment but leaves the email with the attachment.  You’ll then need to delete the email with the attachment before you transfer the files.



Android: Wink Hub and Sprint’s Data Optimizer

I reformatted my Android phone (LG G3 with Android 5.0.1, software version LS990ZVG) the other day to address a problem I was having.  After reformatting, I reinstalled all of my apps and everything seemed to be working fine until I tried to log into the Wink Hub app to adjust the settings for some of the lights in my house.  When I tried to log in, I got the following error:

looks like we encountered an error on the server; please try again later

I figured that Wink’s servers might be down, so I gave it a little bit of time and tried again.  An hour later, I got the same message.  Thinking it might be a real outage, I googled to see if Wink was reporting anything and didn’t see anything, though it did happen to coincide with Amazon’s AWS service going down, so I thought it might be related.  The light situation wasn’t that urgent, so I didn’t think much of it until the next day when I had the same light issue and wanted to adjust the settings of the Wink Hub on my phone again.  I tried to log in and got the same error, again.  This time I figured something must be wrong.  I tried a few things before I found out the real problem.

First, I tried clicking on “I forgot my password” to have my password reset, but I got the same error.  That meant I couldn’t reset my password and there was definitely something wrong.

I tried uninstalling and reinstalling the Wink Hub app, but got the same error after reinstalling the app.

Then I started googling.  In one forum buried deep in the recesses of the internet, I found a hint at what might be the problem.  And, not surprisingly, it’s the same piece of software that has plagued me for years: Sprint’s stupid Data Optimizer app.  I’ve had issues with this app in the past as it slowed and killed my data connection.  I routinely turn it off immediately after I reformat my phone because it is so worthless.  As it turns out, it was the culprit with this problem as well since I had forgotten to turn it off.

You can find the app in your list of apps under Optimize & Protect (see the screenshot):

Sprint Data Optimizer

When you open the app, you’ll see the following two options:

Sprint Data Optimizer

Click on Data Optimizer and you’ll see this screen:

Sprint Data Optimizer

Turn the Data Optimizer off and you can now log into the Wink Hub app.

I don’t know exactly what the problem is, but I’m guessing it has to do with how the Sprint Data Optimizer manages data.  It likely is compressing it and the Wink Hub app may not allow login credentials to be sent that way to the server.  Regardless of the problem, as soon as I turned this terrible piece of software off, I was able to log into the Wink Hub app and adjust my lighting settings.

Linux: Installing Redshift

There is a growing body of research suggesting that blue light before bedtime can be associated with sleep problems.  I’ve known about this for a while, but have just recently started having sleep problems.  I decided to try some of the programs that make changes to the color of your monitors to see if it helps.  On Android, I installed Twilight.  On Linux, I went with Redshift.  There was a minor complication in installing Redshift, so I figured I’d detail how to install the software and get it working on here for anyone else who wants to give it a try.

First, there are two software packages you need to install: redshift and geoclue-2.0.  If you don’t install geoclue-2.0, redshift won’t know your location and won’t be able to adjust your screen relative to the amount of light outside and to sunrise and sunset.  I originally tried launching Redshift without geoclue-2.0 installed and it gave me an error.  Make sure you install it.  If you want to have redshift as a widget in KDE, you can also install: plasma-widget-redshift and plasma-applet-redshift-control.  And for a GUI: redshift-gtk.

From the commandline:

sudo apt-get install redshift geoclue-2.0 plasma-widget-redshift plasma-applet-redshift-control redshift gtk

Or in Synaptic:

Screenshots for Redshift Tutorial

Screenshots for Redshift Tutorial

Once you’ve installed these packages, you can launch Redshift from the application launcher.

Screenshots for Redshift Tutorial

With the GTK option, you’ll get this little icon in your System Tray:

Screenshots for Redshift Tutorial

The System Tray icon allows you to turn Redshift on and off (right-click).  It also provides some information about current settings.

Once it’s installed, Redshift gets right to work, adjusting the color of your monitor and slowly shifting the color throughout the day.

If you’d like Redshift to start automatically when you boot the computer, make sure that you enable it in the Autostart options in System Settings:

Redshift autostart

If you need to adjust any settings, you can do so by using the command line and a configuration file, detailed here.

Kubuntu: How to Map Windows Network Share

My workplace is largely a Windows based institution.  Due to a collaborative project, I was recently asked to access some documents on a Windows Network Drive.  I was sent directions for how to add that drive in Windows.  Those directions were not that helpful as I, of course, run Linux.  As perhaps the only Linux user on my campus, this meant that I had to figure out how to map the Windows Network share to my computer on my own.  No problem.  I got this.

After a little googling, I figured out I needed to do the following:

(1) Install the packages “samba” and “cifs-util.”  You can do this using synaptic or from the command line (sudo apt-get install samba cifs-util).

(Installing the software from synaptic.)
(Installing the software from synaptic.)

(2) Once those packages are installed, it’s a good idea to restart your computer.

(3) Now, create a directory where you want to mount the mapped network drive.  I put the network drive on my desktop just to test this.  I may change that later.

(4) Open a command prompt (e.g., Konsole) and now it’s time to mount the drive to the newly created folder.  Here’s the command:

sudo mount -t cifs -o username=[your.username] //[]/[name.of.specific.folder] /home/[your.username]/Desktop/[]


(5) After you hit enter, you’ll be asked for your password for the network drive.  Assuming you didn’t have any typos, you should now have the Windows Network Drive mounted to the folder you created and should have access to all the files inside.


(6) NOTE: This is a temporary mapping of the Windows Network Share.  Since I only need to access this Windows Network Share Drive occasionally, I don’t want to set up my computer to map it every time I boot it up.  There is a different process for mapping the drive permanently.

(I found the most helpful directions for this here.)

(NOTE: On LinuxMint 18.0, I was unable to get this to work.  Every time I tried to map the drive using the command above I would get the error: “mount error: could not resolve address for []: Unknown error”.  It turns out, for some reason Linux doesn’t play well with Windows share names.  However, when I swapped out the name of the drive for the IP address, everything worked great.  Try using the IP address instead of the name of the Windows share if you get this error.)

(SECOND NOTE: A way around the above error (kind of) is to associate the Windows share name with the IP address in your /etc/hosts file.  Using a console, type: sudo nano /etc/hosts.  When the file comes up, add the IP address followed by the share name (e.g.,   [share_name]).  That will associate the IP address with the share name and you’ll then be able to mount the Windows share with the name and not the IP address.)

KDE – Adjusting the Look and Feel of the Desktop and Application Windows

I love how configurable KDE is as a desktop.  However, adjusting the look of the desktop is something of a nightmare.  There are five different options to adjust different aspects of the desktop and application windows, each of which does different things, but the labels given to these don’t always reflect what the customizations will be.  Here’s my best attempt to explain what each of these does.

When you open “System Settings,” at the very top is a set of five icons under the label “Appearance.”  These icons are titled: “Workspace Theme,” “Color,” “Font,” “Icons,” and “Application Style.”


Workspace Theme

If you click on “Workspace Theme,” you’ll get the following options: “Look And Feel,” “Desktop Theme,” “Cursor Theme,” and “Splash Screen.”  Here’s what each of these settings adjusts.

Look and Feel

Up until Kubuntu 16.04 (my preferred Linux distribution at the moment), there was always just one option in here – the default “Breeze” option.  However, the latest version ships with two options: Breeze and Breeze Dark.  Basically, Look and Feel is kind of a one-click change to the entire theme of your desktop.  From this color scheme in Breeze:


To this color scheme in Breeze Dark:


This one-click option for changing the color scheme is nice for simplicity, but it doesn’t allow for detailed customizations of the various aspects of your desktop environment.  There also isn’t a way to add new options here, which is kind of disappointing as it would be nice to have additional one-click options for changing the entire look and feel of the desktop environment.  For now, we’re stuck with two options.

Desktop Theme

Here’s what you’ll see when you first click on “Desktop Theme”:


The options in here primarily just change the KDE panel color scheme and look.  The panel with the default theme, Breeze, applied, looks like this:


Clicking one of the alternatives here, like “Oxygen” leads to this look:


Basically, this allows you to customize the panels and the KDE windows as well as the quick start window (Alt-F2).  There is the option to “Get New Themes,” which is nice here as there are many to choose from.  But keep in mind that this is basically just for adjusting themes on the desktop (the panel and those items attached to the panel), but this will not change the color schemes of the applications windows (e.g., Dolphin, or the various other programs).

Cursor Theme

This is actually an option that is pretty clear – you can adjust your cursor options here.  I’m not very particular with my cursor, so I don’t usually mess with the default options.  But Kubuntu 16.04 ships with three options as you can see on this screenshot:


You also have the option of downloading additional cursor themes.

Splash Screen

The last option within Workspace Theme settings is the Splash Screen.  At present, you can either have the Breeze theme or None.


Not a lot of options and no way to add additional ones at this point.  Granted, this is something you look at while your OS boots, and if your OS boots quickly, what’s the point?  But it would be nice to have more than one option here and the ability to add other options.



Scheme is where you can change the colors of the application windows (at least those that use the Plasma desktop environment settings, which isn’t all the programs that you might run).  Here’s what you’ll see when you open these system settings:


The default Scheme is “Breeze” again, which looks like this with Dolphin:


Here’s how it changes when you apply the Obsidian Coast theme:


There are a number of themes available and more can be downloaded.  But the important thing to remember here is that the themes in this system setting only affect application windows that utilize the Plasma desktop environment.  Some applications, like Google Chrome, don’t change at all with these settings. Other applications that use the Plasma desktop environment will, like Kate, Konsole, and even LibreOffice 5, as seen here:

Kate with the Breeze application window theme.
Kate with the Obsidian Coast theme.
Kate with the Obsidian Coast theme.

There are three other tabs under the Application Color Scheme: Options, Colors, and Disabled.  These allow for more fine tuning of the application windows.


Font is also pretty self-explanatory – here is where you can adjust your fonts.


The Fonts set of options are where you adjust your system wide set of fonts – those that appear at the top of windows, in menus, etc.  Again, this isn’t something that matters all that much to me, but it is nice to have these options:


Font Management

In Font Management you can add and delete the available fonts on your system.  I do occasionally adjust this when I’m editing images and need specific fonts (’cause everyone should have a Star Wars font installed on their system).  But, again, this is pretty self-explanatory:



The next set of system options for adjusting the appearance of your desktop environment are for icons and emoticons.


There are a number of options in the Icons window that ship with the stock version of Kubuntu, as you can see here:


Here is how the Breeze icons look in Dolphin:


And here is how the Oxygen icons look in Dolphin:


There is the option of installing additional themes for icons as well.  These settings change the icons in Dolphin and in the KDE panel.


The emoticons are used for the built in chat software that ships with KDE.  Since I don’t use it, I won’t spend much time on this.  Basically, you can adjust the default emoticons and install new ones:


Application Style

The final set of options, Application Style, have a somewhat confusing title.  If you recall, to adjust the color of application windows, you do that by going to Color->Scheme (not at all intuitive).  In Application Style, you don’t adjust the color of application windows, you adjust the shapes, angles, transparency, etc.  Here’s what you see when you first open this option:


Widget Style

Under Widget Style, you adjust the overall “look” of application windows by adjusting lines, radio buttons, boxes, etc.  There are a number of pre-installed “Widget styles”.  Here’s what application windows look like with the default style, Breeze, applied (again, using Dolphin to demonstrate):


And here is what Dolphin looks like with MS Windows 9x applied:

(FWIW, what an awful Widget style. So glad it’s not 1998 anymore.)

Window Decorations

In Window Decorations, you can adjust the coloring of active and inactive windows as well as the maximize, minimize, and close buttons for application windows.  Here’s how Dolphin looks with the default Theme, Breeze, installed:


And here is how it looks with the Plastik theme applied:


This is another system setting where you can download a whole bunch of additional themes.  Also, on the second tab, “Buttons,” you can customize the buttons that appear on each application window.  One that I like adding is “Keep above,” as I use that regularly.

GNOME Application Style

The last appearance option you can adjust is the GNOME Application Style menu.  Basically, this determines the styling for GNOME desktop environment applications that do not utilize the Plasma desktop environment.  I don’t use a lot of GNOME applications, but one I like is gprename, a batch renamer that comes from the GNOME desktop environment.  Here’s how it looks with the default style, Breeze, applied:


And here is how it looks with the Breeze-Dark theme applied:


This is another setting that includes the option of downloading additional themes.


The reason why I put this list together was primarily because there are (1) so many options for customizing your workspace in KDE and (2) the names of the various options aren’t always that intuitive.  Hopefully these descriptions will make it easier for you to customize your workspace how you want it in the future.  For me, I prefer a darker themed desktop environment as it seems to be a little friendlier on the eyes.  The rest of the options are less important to me.  But one of the great advantages of running KDE (and some other Linux desktop environments) is the amazing amount of customizability that is included right out of the box.  Have fun modding!