Update mail extension and cleanup shell scripts.