General

Adding Local Folders in Thunderbird

Posted in General on December 5th, 2009 by Johan Huysmans – Be the first to comment

Thunderbird has something called “Local Folders”.
What Local Folders are is described here: http://kb.mozillazine.org/Local_Folders

This webpage however doesn’t explain how to add an extra set of Local Folders.
This is how you can create them.

Open prefs.js with your favorite editor. This file is located inside the profile directory in you thunderbird hidden directory.
Don’t change this file when thunderbird is running.
the serverX and accountX must be unique and could be different on your system

Search for the section defining the existing “Local Folders”, this looks something like this:
user_pref("mail.server.server3.directory", "/home/johan/.thunderbird/pd19vach.default/Mail/Local Folders");
user_pref("mail.server.server3.directory-rel", "[ProfD]Mail/Local Folders");
user_pref("mail.server.server3.hostname", "Local Folders");
user_pref("mail.server.server3.name", "Local Folders");
user_pref("mail.server.server3.type", "none");
user_pref("mail.server.server3.userName", "nobody");

Copy those lines and edit them to your needs:
user_pref("mail.server.server4.directory", "/home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders");
user_pref("mail.server.server4.directory-rel", "[ProfD]Mail/new_local_folders");
user_pref("mail.server.server4.hostname", "New Local Folders");
user_pref("mail.server.server4.name", "New Local Folders");
user_pref("mail.server.server4.type", "none");
user_pref("mail.server.server4.userName", "nobody");

Also add following line:
user_pref("mail.account.account4.server", "server4");

And edit following line:
user_pref("mail.accountmanager.accounts", "account1,account2,account3,account4");

When the changes are made in the prefs.js you can create the new defined local folders. A subdirectory has to be created otherwise it won’t show up in Thunderbird.
mkdir /home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders
mkdir /home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders/Inbox
touch /home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders/Inbox.msf

If everything goes well the new defined local folders directory appears when you open thunderbird.

mv inuits pinuits

Posted in General on April 1st, 2009 by Johan Huysmans – 1 Comment

Today is announced that Inuits is rebranded to Pinuits.

This change happened to line up with other MySQL consultancy companies, but the P also points to strong focus on Puppet, aPache, Php, Perl, Python, druPal and many other Open-Source Tools.

More information can be found on: http://www.pinuits.be

Shell History Meme

Posted in Fedora, General, Linux SysAdmin on April 10th, 2008 by Johan Huysmans – Be the first to comment

There is a Shell history meme going on on planet Fedora; Let’s join.

[johan@laptop ~]$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -nr|head
201 ls
108 ssh
108 cd
98 sh
81 su
29 vi
24 rpm
24 ping
23 rm
20 mv

[johan@workstation ~]$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -nr|head
149 ls
128 cd
125 cvs
93 diff
71 echo
54 ssh
45 for
28 mkdir
26 md5sum
24 reset

My previous post of my Top 10 used commands was more than 1 year ago.

Hello planet.grep.be World

Posted in General on January 9th, 2008 by Johan Huysmans – Be the first to comment

Welkom to all planet.grep.be readers!

The RSS feed of my blog has been added to the list of Belgian bloggers who are involved with Open Source projects or are actively using them.

You can visit the planet on http://planet.grep.be or add the feed to your favorite RSS reader.

Sorting files with version numbers

Posted in General on November 8th, 2007 by Johan Huysmans – Be the first to comment

It can be quite annoying that when you perform a ls all your files are sorted alphabetically which give such result:
[johan@raskas versions]$ ls
a_file_name-1.0.1-10
a_file_name-1.0.1-11
a_file_name-1.0.1-2
a_file_name-1.0.1-3
a_file_name-1.0.1-4
a_file_name-1.0.1-9
some_other_file-2.0.10-1
some_other_file-2.0.9-1

Of course you want your file not sorted like that, but sorted per revision. Meaning that version 9 of the file comes before 10.
The ls-option –sort=version will do this for you.
The same files are now correctly sorted:
[johan@raskas-jhu versions]$ ls --sort=version
a_file_name-1.0.1-2
a_file_name-1.0.1-3
a_file_name-1.0.1-4
a_file_name-1.0.1-9
a_file_name-1.0.1-10
a_file_name-1.0.1-11
some_other_file-2.0.9-1
some_other_file-2.0.10-1

It is not rocket science, but it is a less known option which can come in very handy some times!

New domain name

Posted in General on August 24th, 2007 by Johan Huysmans – Be the first to comment

My personal domain name raskas.be has just been activated!

This means that all my websites are move to http://www.raskas.be.
The specific url for my blog is: http://www.raskas.be/blog
The RSS of my blog is now: feed:http://www.raskas.be/blog/feed/

Please update all your bookmarks and rss feed readers to point to the correct url!

With some mod_rewrite magic you can still browse to the old url but you will be automatically redirected to my new domain name.

RewriteEngine on
RewriteRule ^(.*)$ http://www.raskas.be/$1

On http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/ i found some nice cheat sheet about apache’s mod_rewrite.

Hackergotchi

Posted in General on July 2nd, 2007 by Johan Huysmans – Be the first to comment

I recently learned a new word ;)

Hackergotchi

A hackergotchi is a picture of a writer used as an avatar to identify the author of a given RSS feed in blog aggregators.

http://en.wikipedia.org/wiki/Hackergotchi

You can see the Hackergotchi of each X-Tend blogger, including mine, on http://planet.x-tend.be

Hello world!

Posted in General on February 3rd, 2006 by Johan Huysmans – Be the first to comment

This is the first of many posts in my new wordpress blog.
I will try to write my impressions of many things, solutions to problems I’ve countered and many many more.