Mail Attachment Downloader on Linux

I’ve been looking for a way to download all attachments from gmail. I tried the Attachment Extractor for Thunderbird, but it apparently isn’t being maintained, and kept throwing error messages. I then found Mail Attachment Downloader for Windows. As of v. 3.1, this needs .NET 4.5 or higher. I naturally checked the AppDB at WineHQ and found a good how-to by scrolling down.

The key to successfully installing the .NET framework is to use Winetricks. However, to make this work on a 64-bit machine, you need to set up a 32-bit Wine environment, called a Wine prefix. Since I had some apps installed on the original 64-bit environment, I needed to set up a separate 32-bit environment. So if you need this, in a terminal window (adjusting your path appropriately):

$ WINEARCH=win32 WINEPREFIX=/home/akn/.wine32 winecfg

Then get Winetricks:

­$ wget

…and use it to install the framework and a core fonts package.

$ WINEARCH=win32 WINEPREFIX=/home/akn/.wine32 bash winetricks dotnet452 corefonts

Note: the installer will ask if you want to install the .NET framework. I initially hit ‘cancel,’ figuring that Winetricks would work its own magic. But I discovered that indeed this is the mechanism for installing the framework, so make sure you let the installer also install the .NET framework.

An important note here is that Wine must use the correct Wine prefix (It needs to be 32-bit.). Hence, the WINEARCH and WINEPREFIX variables on each command.

Now cd to the directory where you’ve downloaded the goal of this endeavor, and execute the following:

WINEPREFIX=/home/akn/.wine32 wine MailAttachmentDownloaderInstall.exe

I’m assuming that you will need to specify the WINEPREFIX each time, so I will set up a new shortcut for this eventually.

I’m testing this on a Linux Mint 17.1, 64-bit machine.

About anisly

This is Yet Another Tech Blog--my attempt at propagating some of what I've gleaned in trying to solve tech problems. YMMV, but enjoy
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s