Tag Archive for 'kde'

How-to import a Maildir++ folder to Kmail

Let’s say you have a local copy a mail folder you want to browse with Kmail. This folder is normally found on a dedicated mail server and you access it through the IMAP protocol. I was in this situation some days ago and I will tell you how I’ve done it.

Instinctively, I assumed that my folder was of the Maildir format, and Kmail local mails too. So I tried to copy my ~/Maildir folder from the mail server to my local machine (~/.kde/share/apps/kmail/mail/). And that was the result in Kmail:

kmail-no-sub-folders.png

It looks good but it’s not: there is no sub-folders !

After some googling, I found what was wrong: my ~/Maildir folder is not a Maildir, but a Maildir++ folder. This kind of folder is handle by popular IMAP MTA like qmail, Dovecot and courier-imap (which was used on the mail server where my ~/Maildir come from). There is some advantages of using the “++” flavor of Maildir over the classic one, like quotas and sub-folders. Unfortunately Kmail is not able to read the Maildir++ folder structure.

To fix this, I’ve created a tiny python script to migrate a Maildir++ folder to Kmail.

How-to use it ? Simply:

  1. Download it to your disk,
  2. Edit it and change the MAILDIR_SOURCE and KMAILDIR_DEST variables to match your local configuration,
  3. Give it execution privileges,
  4. Run it !

I advise you to try it first in a safe environment (like under a temporary user account). And don’t forget to backup everything before playing with it: because this script work for me doesn’t mean that it will work for you ! ;)

Amarok 1.4.7 for Mandriva 2007.1

Amarok 1.4.7 for Mandriva 2007.1I’ve just backported Amarok 1.4.7 from cooker to Mandriva 2007.1 (aka “Spring” edition).

Packages are downloadable from my RPM repository for i586 and x86_64 architecture and both build support SQLite, MySQL and Postgresql as database backend.

Amarok 1.4.6 for Mandriva 2007.1

Amarok 1.4.6 Logo Amarok 1.4.6 was released two weeks ago. Even if this version is available in Mandriva 2007.1 official backports, it doesn’t support MySQL and PostgreSQL databases. My RPMs of Amarok 1.4.6 does. They can be found in my Mandriva 2007.1 repository, which now include a sub repository for the 64 bit flavous of Mandriva.

How-to launch a KDE Application in Another Language

This is a old discussion I had at least 9 months ago with people from the #kde IRC channel.

I was looking for a way to get an error message in english instead of french. After reading the following discussion, the solution is quite obvious, but at that time I was probably too tired to think efficiently… :)

<kev1> Hi ! I use amarok in french and I would like to run it in english. How can I do ?
<kev1> Things like “env LANG=en amarok” doesn’t work…
<shining> kev1: LANG=C amarok
<shining> ho no
<shining> kde apps don’t use the locale env, do they? they use kde-i18n stuff
<Blissex> kev1: download the package with the amaroK english messages if your distro makes it a separate one. Else download the general KDE english stuff.
<Blissex> shining: they use both. They need the right package to get the actual messages/names, and then the env variable to select among them.
<kev1> Shining: doesn’t work either…
<shining> Blissex: ho I see
<Blissex> shining: problem is, they all use the language set when KDE started :-)
<kev1> Blissex: ok I see…
<shining> kev1: why do you want that though? it’s a bit strange
<Blissex> kev1: it may be possible to run some KDE apps in one locale and others in another locale, but I would be surprised.
<kev1> Shining: I have some error messages in amarok but they are translated in french. I need the english version to search on google and/or make a bug report if necessary
<kev1> (I use amarok 1.4.2-beta1)
<Ardonik> kev1: kcontrol -> Accessibility -> Country
<kev1> Ardonik: ok, let me try it
<shining> kev1: ha yes, I had the same problem for other apps, where LANG=C worked fine :)
<kev1> Ardonik: thanks ! it work perfectly and immediatly ! Quite impressive
<Ardonik> No problem
<Blissex> kev1: what you can do is to change the locale in ‘Regional&Accessibility’, start amaroK, and then change it back.
<kev1> Blissex: yes, that’s what Ardonik suggest me and it work perfectly.

How-to Block Ads in Konqueror

Starting from version 3.5, Konqueror feature an ad blocker mechanism based on regular expressions. Here is a little how-to to help you install an efficient filter set.

Konqueror AdBlocks filter configuration panel

  1. Dowload the latest Filterset.G regexp set. The file which contain all rules is located at http://www.pierceive.com/filtersetg/ under the name YYYY-MM-DD.txt.
  2. Go to Settings > Configure Konqueror... menu.
  3. Then go to AdBlock Filters panel (the one on the screenshot).
  4. Check both Enable filters and Hide filtered images options.
  5. Use the Import... button to load the “Filterset.G” file you previoulsy downloaded
  6. Enjoy ad-free web sites !

By the way, I hope to see the feature suggested by Andreas Frische to get some attention by the Konqueror community: it would be nice to have an integrated auto-updater of filter set in Konqueror (and make this how-to deprecated).