extracted imapsync-script from source and applied patch for authenticating as gw-trustedapp