Several options are added to help integrating it into desktop environments

It's been a while since you last updated it but this change allows me to open .msg files seamesly on my desktop. I hope you find it worthy to be added to upstream script.