Import from http://sourceforge.net/projects/davical-cmdlnut/