EWS: Add ability to change User-Agent in "Create account" window
Reasons
- Sometimes there are rules on mail servers' firewalls not smart enough rejecting everything they don't know (ex. curl, libews)
- Sometimes there are restricting rules to use anything but particular enterprise mail agent/mobile client.
Possible Solution
In most cases overwriting User-Agent header is more then enough.
And Evolution has this option, unlike GOA has no way to change it and make thing go right from the beginning.
So it will be very great to:
- Add new params in struct
AddAccountData
, ex. user_agent and user_agent_checkbox - Add to expander rows with checkbox and User-Agent field (like in Evolution, use checkbox as verifier to avoid misunderstanding necessity of filling User-Agent field)
- Pass it to
ews_client_create_msg_for_url
- And if everything is ok save this value, and make Evolution to use it.